On Nova instance boot, 'glanceclient/openstack/common/apiclient/base.py' throws: "AttributeError: id"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
New
|
Undecided
|
Unassigned |
Bug Description
Description of problem
-------
Once DevStack is completed successfully, attempting to boot an instance
fails, resulting in:
$ . openrc admin
$ nova flavor-create eph 100 512 0 1 --ephemeral 10
$ nova boot --image cirros-
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-caeb0b17-
NOTE: Booting an instance with any of the default flavors fail the same
way, too.
With the n-api.log throwing this AttributeError:
[. . .]
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack raise AttributeError(k)
2015-07-29 05:34:37.551 TRACE nova.api.openstack AttributeError: id
[. . .]
This is consistently reproducible with the below DevStack commits. I
tested this on Fedora 22.
Version
-------
I'm on DevStack, with these commits:
Cinder:
b19d8e9 (Merge "Windows iSCSI: Add CHAP authentication support", 2015-07-29)
DevStack:
e0eb1a1 (Merge "Remove unused variable", 2015-07-28)
Glance:
4ec1e7d (Merge "Fix Python 3 issues in glance.tests.unit", 2015-07-28)
Keystone:
7bf9b41 (Merge "Document sample config updated automatically", 2015-07-29)
Neutron:
12aa832 (Merge "Updated from global requirements", 2015-07-28)
Nova:
3191c3e (libvirt: use log file and serial console at the same time, 2015-05-29)
requirements:
9bbc6dd (Merge "Add dnspython3 to global-
Versions of 'python-
$ pip show python-glanceclient | grep ^Version
Version: 0.19.0
$ pip show glance-store | grep ^Version
Version: 0.7.1
Actual result
-------------
Nova instance boot fails with the below error from Nova API log.
$ less -R ../data/
. . .
.Controller object at 0x7f7cbd0e0190>>' from (pid=23176) _process_stack /home/kashyapc/
2015-07-29 05:34:37.551 ERROR nova.api.openstack [req-caeb0b17-
2015-07-29 05:34:37.551 TRACE nova.api.openstack Traceback (most recent call last):
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return req.get_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack application, catch_exc_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack app_iter = application(
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return resp(environ, start_response)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack response = req.get_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack application, catch_exc_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack app_iter = application(
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return resp(environ, start_response)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return resp(environ, start_response)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack response = self.app(environ, start_response)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return resp(environ, start_response)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack content_type, body, accept)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack return method(req=request, **action_args)
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack image = self._image_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack show_deleted=
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack image = self._image_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack show_deleted=
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack include_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack include_
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/home/
2015-07-29 05:34:37.551 TRACE nova.api.openstack queued = getattr(image, 'status') == 'queued'
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack self.get()
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack new = self.manager.
2015-07-29 05:34:37.551 TRACE nova.api.openstack File "/usr/lib/
2015-07-29 05:34:37.551 TRACE nova.api.openstack raise AttributeError(k)
2015-07-29 05:34:37.551 TRACE nova.api.openstack AttributeError: id
2015-07-29 05:34:37.551 TRACE nova.api.openstack
2015-07-29 05:34:37.557 INFO nova.api.openstack [req-caeb0b17-
. . .
Expected result
---------------
Nova instance boot should be successful.
affects: | glance → python-glanceclient |
Finding same problem while using stable/kilo magnum (bay-create). This is due to glance-show <id> returning id when using (--os-image- api-version 1).
Using --os-image- api-version 2 fixes the issue.