Call to create snapshot failed in novaclient

Bug #1569220 reported by Silvan Kaiser on 2016-04-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Undecided
Unassigned

Bug Description

Some CIs fail calling Nova snapshots from Cinder with the following Error sind the end of last week:

2016-04-11 12:55:31.721 DEBUG oslo_policy.policy [req-000f0d0a-5c79-4c79-89e9-b592a0b56299 service] Reloaded policy file: /etc/cinder/policy.json _load_policy_file /usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:493
2016-04-11 12:55:31.722 DEBUG cinder.compute.nova [req-000f0d0a-5c79-4c79-89e9-b592a0b56299 service] Creating a Nova client using "nova" user novaclient /opt/stack/new/cinder/cinder/compute/nova.py:125
2016-04-11 12:55:31.732 ERROR cinder.volume.drivers.remotefs [req-000f0d0a-5c79-4c79-89e9-b592a0b56299 service] Call to Nova to create snapshot failed
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs Traceback (most recent call last):
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/opt/stack/new/cinder/cinder/volume/drivers/remotefs.py", line 1275, in _create_snapshot_online
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs connection_info)
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/opt/stack/new/cinder/cinder/compute/nova.py", line 179, in create_volume_snapshot
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs create_info=create_info)
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/contrib/assisted_volume_snapshots.py", line 43, in create
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs return self._create('/os-assisted-volume-snapshots', body, 'snapshot')
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 345, in _create
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs resp, body = self.api.client.post(url, body=body)
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 461, in post
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs return self._cs_request(url, 'POST', **kwargs)
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 414, in _cs_request
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs self.authenticate()
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 590, in authenticate
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs auth_url = self._v1_auth(auth_url)
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 638, in _v1_auth
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs raise exceptions.from_response(resp, body, url)
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs ClientException: Unknown Error (HTTP 300)
2016-04-11 12:55:31.732 6638 ERROR cinder.volume.drivers.remotefs

So far i've seen this with the Quobyte and the Scality CIs:
http://78.46.57.153:8081/refs-changes-20-303020-4/logs/screen-c-vol.log.txt
https://37.187.159.67:5443/job/cinder-sofs-validate/15566//artifact/jenkins-logs/screen-c-vol.txt.gz/*view*/

Silvan Kaiser (2-silvan) wrote :

I was able to solve via explicitely configuring DevStack instances to use v3 API. Just added:

OS_IDENTITY_API_VERSION=3

Changed in cinder:
status: New → Invalid
Silvan Kaiser (2-silvan) wrote :

Hmm, I'm re-hitting this issue in manual tests, despite the OS_IDENTITY_API_VERSION setting.
Seem's others, too, as shown here:
http://www.gossamer-threads.com/lists/openstack/dev/54997#54997

Changed in cinder:
status: Invalid → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers