[Bug 1511726] Re: Snapshots are lacking owner attribute in Kilo
Michael Steffens
michael_steffens at posteo.de
Tue Nov 3 07:39:21 UTC 2015
I found the configuration problem of Glance, that caused glance-registry
to work in an unauthenticated context, as a consequence not to record
image owners via API v1. That means I could fix my immediate problem of
orphaned snapshots created by Nova.
Nevertheless, I think as the installation guide points to API v2, so all
end user clients are adjusted that way, Nova should also prefer Glance
v2, and make inconsistent behavior less likely.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1511726
Title:
Snapshots are lacking owner attribute in Kilo
Status in nova package in Ubuntu:
New
Bug description:
We have installed and configured Kilo according to the installation
guide, which recommends using Glance API v2:
http://docs.openstack.org/kilo/install-guide/install/apt/content
/glance-verify.html
In this configuration snaphosts created by nova end up without any
owner, however. According to glance-api.log, nova is performing image
operations via Glance API v1.
Disabling Glance API v1 in glance-api.conf prevents nova from doing
any sapshots at all. From nova-api.log indicates it's insisting on v1:
[...]
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 299, in show
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack image = self._client.call(context, version, 'get', image_id)
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 219, in call
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack return getattr(client.images, method)(*args, **kwargs)
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 126, in get
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack % urlparse.quote(str(image_id)))
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 256, in head
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack return self._request('HEAD', url, **kwargs)
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 229, in _request
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack raise exc.from_response(resp)
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack HTTPMultipleChoices: HTTPMultipleChoices (HTTP 300) Requested version of OpenStack Images API is not available.
2015-10-30 13:31:33.466 2557 TRACE nova.api.openstack
Using the glance CLI I can verify, that images created using the v2 API are ok, while those created by the v1 API are lacking the owner attribute. If the v2 API of Glance is preferred as the installation guide suggests, and also available and working properly, nova should make use of it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1511726/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list