← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1584911] Re: Could not find resource cirros at launch instance

 

** Changed in: nova
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1584911

Title:
  Could not find resource cirros at launch instance

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  I am following the Openstack documentation
  http://docs.openstack.org/mitaka/install-guide-ubuntu/launch-instance-
  provider.html for installing Openstack on Ubuntu server 14.04., and i
  have this problem when launch an instance on the provider network.

  root@srv-controller:~# openstack server create --debug --flavor 1 --image cirros --security-group default --key-name mykey provider-instance
  START with options: ['server', 'create', '--debug', '--flavor', '1', '--image', 'cirros', '--security-group', 'default', '--key-name', 'mykey', 'provider-instance']
  options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://srv-controller:5000/v3', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', profile=None, project_domain_id='', project_domain_name='default', project_id='', project_name='demo', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='default', user_id='', username='demo', verbose_level=3, verify=None)
  defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
  cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'timing': False, u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'demo', 'project_name': 'demo', 'user_domain_name': 'default', 'auth_url': 'http://srv-controller:5000/v3', 'password': '***', 'project_domain_name': 'default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
  compute API version 2, cmd group openstack.compute.v2
  network API version 2, cmd group openstack.network.v2
  image API version 2, cmd group openstack.image.v2
  volume API version 2, cmd group openstack.volume.v2
  identity API version 3, cmd group openstack.identity.v3
  object_store API version 1, cmd group openstack.object_store.v1
  dns API version 2, cmd group openstack.dns.v2
  command: server create -> openstackclient.compute.v2.server.CreateServer
  Auth plugin password selected
  auth_type: password
  Using auth plugin: password
  Using parameters {'username': 'demo', 'project_name': 'demo', 'auth_url': 'http://srv-controller:5000/v3', 'user_domain_name': 'default', 'password': '***', 'project_domain_name': 'default'}
  Get auth_ref
  REQ: curl -g -i -X GET http://srv-controller:5000/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.6"
  Starting new HTTP connection (1): srv-controller
  "GET /v3 HTTP/1.1" 200 253
  RESP: [200] Content-Length: 253 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Mon, 23 May 2016 17:38:07 GMT x-openstack-request-id: req-a34d7305-095c-4f51-98ae-d2791b467a72 Content-Type: application/json X-Distribution: Ubuntu 
  RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://srv-controller:5000/v3/";, "rel": "self"}]}}

  Making authentication request to http://srv-controller:5000/v3/auth/tokens
  "POST /v3/auth/tokens HTTP/1.1" 201 2889
  run(Namespace(availability_zone=None, block_device_mapping=[], columns=[], config_drive=False, file=[], flavor='1', formatter='table', hint=[], image='cirros', key_name='mykey', max=1, max_width=0, min=1, nic=[], noindent=False, prefix='', property=None, security_group=['default'], server_name='provider-instance', user_data=None, variables=[], volume=None, wait=False))
  Instantiating compute client for VAPI Version Major: 2, Minor: 0
  Instantiating volume client: <class 'cinderclient.v2.client.Client'>
  Making authentication request to http://srv-controller:5000/v3/auth/tokens
  "POST /v3/auth/tokens HTTP/1.1" 201 2889
  REQ: curl -g -i -X GET http://srv-controller:8774/v2.1/0db325669da04fdf888fcf9cae953686/images/cirros -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}badb737e27ffb2f4f9fbedc1d73d287c1a0da451"
  Starting new HTTP connection (1): srv-controller
  "GET /v2.1/0db325669da04fdf888fcf9cae953686/images/cirros HTTP/1.1" 500 214
  RESP: [500] Content-Length: 214 X-Compute-Request-Id: req-9bbf01a6-8aa3-417c-823f-22656c93fbe4 Vary: X-OpenStack-Nova-API-Version Connection: keep-alive X-Openstack-Nova-Api-Version: 2.1 Date: Mon, 23 May 2016 17:39:54 GMT Content-Type: application/json; charset=UTF-8 
  RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'glanceclient.exc.HTTPInternalServerError'>", "code": 500}}

  REQ: curl -g -i -X GET http://srv-controller:8774/v2.1/0db325669da04fdf888fcf9cae953686/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}badb737e27ffb2f4f9fbedc1d73d287c1a0da451"
  "GET /v2.1/0db325669da04fdf888fcf9cae953686/images HTTP/1.1" 500 214
  RESP: [500] Content-Length: 214 X-Compute-Request-Id: req-aa059d77-d8fc-4cef-9cd4-5b88f0a791c3 Vary: X-OpenStack-Nova-API-Version Connection: keep-alive X-Openstack-Nova-Api-Version: 2.1 Date: Mon, 23 May 2016 17:41:38 GMT Content-Type: application/json; charset=UTF-8 
  RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'glanceclient.exc.HTTPInternalServerError'>", "code": 500}}

  REQ: curl -g -i -X GET http://srv-controller:8774/v2.1/0db325669da04fdf888fcf9cae953686/images/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}badb737e27ffb2f4f9fbedc1d73d287c1a0da451"
  "GET /v2.1/0db325669da04fdf888fcf9cae953686/images/detail HTTP/1.1" 500 214
  RESP: [500] Content-Length: 214 X-Compute-Request-Id: req-43c7ee4d-1f98-444c-99a2-830dfe678b46 Vary: X-OpenStack-Nova-API-Version Connection: keep-alive X-Openstack-Nova-Api-Version: 2.1 Date: Mon, 23 May 2016 17:43:19 GMT Content-Type: application/json; charset=UTF-8 
  RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'glanceclient.exc.HTTPInternalServerError'>", "code": 500}}

  Could not find resource cirros
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
      column_names, data = self.take_action(parsed_args)
    File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 378, in take_action
      parsed_args.image,
    File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 118, in find_resource
      raise exceptions.CommandError(msg)
  CommandError: Could not find resource cirros
  clean_up CreateServer: Could not find resource cirros
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 118, in run
      ret_val = super(OpenStackShell, self).run(argv)
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 255, in run
      result = self.run_subcommand(remainder)
    File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 153, in run_subcommand
      ret_value = super(OpenStackShell, self).run_subcommand(argv)
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
      column_names, data = self.take_action(parsed_args)
    File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 378, in take_action
      parsed_args.image,
    File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 118, in find_resource
      raise exceptions.CommandError(msg)
  CommandError: Could not find resource cirros

  END return value: 1

  Any solution, please

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1584911/+subscriptions


References