[Bug 1511726] [NEW] Snapshots are lacking owner attribute in Kilo

Michael Steffens michael_steffens at posteo.de
Fri Oct 30 13:14:52 UTC 2015


Public bug reported:

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.

** Affects: nova (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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