devstack-plugin-ceph-tempest job failing with "KeyError: 'volume_id'" during test_volume_snapshot_backup

Bug #1796207 reported by melanie witt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cinder-tempest-plugin
Fix Released
Undecided
melanie witt

Bug Description

Recently, a change merged to remove redundant cleanups in the volume backup tests:

https://review.openstack.org/571336

but it had a bug in it where it assumed 'volume_id' and 'snapshot_id' are returned by the backup create API when they are not.

So, the devstack-plugin-ceph-tempest is failing with the following error:

Traceback (most recent call last):
  File "/opt/stack/tempest/.tox/tempest/local/lib/python2.7/site-packages/cinder_tempest_plugin/api/volume/test_volume_backup.py", line 44, in test_volume_snapshot_backup
    self.assertEqual(volume['id'], backup['volume_id'])
KeyError: 'volume_id'

We must do a GET backup in order to obtain the 'volume_id' and 'snapshot_id' for a particular backup before doing the asserts.

Revision history for this message
melanie witt (melwitt) wrote :
Changed in cinder-tempest-plugin:
status: New → In Progress
melanie witt (melwitt)
Changed in cinder-tempest-plugin:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder-tempest-plugin 0.2.0

This issue was fixed in the openstack/cinder-tempest-plugin 0.2.0 release.

Changed in cinder-tempest-plugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.