← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1562427] Re: Cannot start imported ubuntu image: Error: Unexpected API Error.

 

I see some errors in your api log that look like you should double check
your configuration (pasted below). Maybe see this bug and see if it's
relevant - https://bugs.launchpad.net/nova/+bug/1534273.

Once you've verified your config, if you still feel this is a valid bug, please update the bug with the following information and set the status to New:
1) Version of Nova (Liberty, Kilo, Mitaka, master..)
2) Steps to reproduce, specifically step-by-step how you created the image and how you attempted to launch the Ubuntu instance.

2016-03-26 23:28:47.979 38925 INFO nova.osapi_compute.wsgi.server [req-e6e6cde7-bf0c-4241-be29-b983e556f9ef 136970b581774dcaa00dc949424a3c4c 5004085c4d8842aab824321078eb0efc - - -] 192.168.0.144 "GET /v2/5004085c4d8842aab824321078eb0efc/servers/detail HTTP/1.1" status: 200 len: 211 time: 0.0435441
2016-03-26 23:31:32.384 38925 WARNING keystonemiddleware.auth_token [-] Authorization failed for token
2016-03-26 23:31:32.385 38925 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Could not find token: cb9fa4a18a22407aadfc9ca016626e91", "code": 404, "title": "Not Found"}}
2016-03-26 23:31:32.386 38925 WARNING keystonemiddleware.auth_token [-] Authorization failed for token

2016-03-27 00:00:39.836 38925 INFO nova.osapi_compute.wsgi.server [req-317ffd13-cbc5-4857-a912-107b12a8b0b6 136970b581774dcaa00dc949424a3c4c 5004085c4d8842aab824321078eb0efc - - -] 192.168.0.144 "GET /v2/5004085c4d8842aab824321078eb0efc/extensions HTTP/1.1" status: 200 len: 21880 time: 0.0812910
2016-03-27 00:00:41.734 38925 INFO nova.api.openstack.wsgi [req-742a4fbe-d3d4-41ba-af99-da46e415eaa5 010a15f69e0140a6b261ddd5bd46d328 0cee11df766745efaeb49deb1fbb1624 - - -] HTTP exception thrown: No instances found for any event
2016-03-27 00:00:41.735 38925 INFO nova.osapi_compute.wsgi.server [req-742a4fbe-d3d4-41ba-af99-da46e415eaa5 010a15f69e0140a6b261ddd5bd46d328 0cee11df766745efaeb49deb1fbb1624 - - -] 192.168.0.144 "POST /v2/0cee11df766745efaeb49deb1fbb1624/os-server-external-events HTTP/1.1" status: 404 len: 296 time: 0.1142490
2016-03-27 00:00:42.498 38925 INFO nova.api.openstack.wsgi [req-2a93a0c0-cf1a-47ed-96f2-3cc7a24e0c61 136970b581774dcaa00dc949424a3c4c 5004085c4d8842aab824321078eb0efc - - -] HTTP exception thrown: Instance 1ee18871-3516-4235-8077-5d3385fd1939 could not be found.

2016-03-27 00:01:11.870 38925 INFO nova.osapi_compute.wsgi.server [req-b84080b4-c8f6-4f3d-a553-5e5be4d727f6 136970b581774dcaa00dc949424a3c4c 5004085c4d8842aab824321078eb0efc - - -] 192.168.0.144 "GET /v2/5004085c4d8842aab824321078eb0efc/os-keypairs HTTP/1.1" status: 200 len: 734 time: 0.0069401
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions [req-39392694-67dc-4a9e-8754-a119228aeba2 136970b581774dcaa00dc949424a3c4c 5004085c4d8842aab824321078eb0efc - - -] Unexpected exception in API method
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 611, in create
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     **create_kwargs)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 149, in inner
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1581, in create
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1181, in _create_instance
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     auto_disk_config, reservation_id, max_count)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 940, in _validate_and_build_base_options
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     image_meta = objects.ImageMeta.from_dict(boot_meta)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/objects/image_meta.py", line 105, in from_dict
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     image_meta.get("properties", {}))
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/objects/image_meta.py", line 457, in from_dict
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     obj._set_attr_from_legacy_names(image_props)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/objects/image_meta.py", line 388, in _set_attr_from_legacy_names
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     setattr(self, new_key, image_props[legacy_key])
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 71, in setter
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     field_value = field.coerce(self, name, value)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 189, in coerce
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     return self._type.coerce(obj, attr, value)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/objects/fields.py", line 87, in coerce
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions     raise ValueError(msg)
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions ValueError: Architecture name '64-bit' is not valid
2016-03-27 00:01:12.227 38925 ERROR nova.api.openstack.extensions 
2016-03-27 00:01:12.231 38925 INFO nova.api.openstack.wsgi [req-39392694-67dc-4a9e-8754-a119228aeba2 136970b581774dcaa00dc949424a3c4c 5004085c4d8842aab824321078eb0efc - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'>

** Changed in: nova
       Status: New => 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/1562427

Title:
  Cannot start imported ubuntu image: Error: Unexpected API Error.

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  I am tryng to import Ubuntu image to RDO openstack installed on
  Centos7 VMWare VM:

  Steps:
  - I am using this openstack supported image:
  http://docs.openstack.org/image-guide/obtain-images.html
  - Imported ubuntu image successfully

  Expected result:
  running and accessible ubuntu instance

  Actual result:
  Ubuntu instance doesn't start and I got thi serror:

  Error: Unexpected API Error. Please report this at
  http://bugs.launchpad.net/nova/ and attach the Nova API log if
  possible. <type 'exceptions.ValueError'> (HTTP 500) (Request-ID:
  req-39392694-67dc-4a9e-8754-a119228aeba2)

  - installed RDO all-in-one openstack on centos7, using:

  service NetworkManager stop
  chkconfig NetworkManager off
  yum install -y https://rdoproject.org/repos/rdo-release.rpm
  yum update -y
  yum install -y openstack-packstack
  yum-config-manager --disable InstallMedia
  packstack --allinone

  - I got this error, right after the install:
  Error: Unable to retrieve volume limit information

  - Cannot change qutas on projects
  Error: Modified project information and members, but unable to modify project quotas.

  Error: Unable to modify project "ajn-project1".

  - Despite these errors, cirros image works fine

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


References