test_encrypted_cinder_volumes_luks fails with "Volume is still attached, detach volume first."

Bug #1421895 reported by Matt Riedemann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Unassigned

Bug Description

http://logs.openstack.org/43/154143/4/gate/gate-tempest-dsvm-full/45e8fbe/console.html#_2015-02-14_00_13_11_744

2015-02-14 00:13:11.743 | traceback-1: {{{
2015-02-14 00:13:11.743 | Traceback (most recent call last):
2015-02-14 00:13:11.743 | File "tempest/scenario/manager.py", line 113, in delete_wrapper
2015-02-14 00:13:11.743 | delete_thing(*args, **kwargs)
2015-02-14 00:13:11.743 | File "tempest/services/volume/json/volumes_client.py", line 105, in delete_volume
2015-02-14 00:13:11.743 | resp, body = self.delete("volumes/%s" % str(volume_id))
2015-02-14 00:13:11.743 | File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 175, in delete
2015-02-14 00:13:11.744 | return self.request('DELETE', url, extra_headers, headers, body)
2015-02-14 00:13:11.744 | File "tempest/common/service_client.py", line 63, in request
2015-02-14 00:13:11.744 | raise exceptions.BadRequest(ex)
2015-02-14 00:13:11.744 | BadRequest: Bad request
2015-02-14 00:13:11.744 | Details: Bad request
2015-02-14 00:13:11.744 | Details: {u'code': 400, u'message': u'Volume 10ee9e35-8820-414d-ad06-5b145fc7c03f is still attached, detach volume first.'}
2015-02-14 00:13:11.744 | }}}
2015-02-14 00:13:11.744 |
2015-02-14 00:13:11.744 | traceback-2: {{{
2015-02-14 00:13:11.744 | Traceback (most recent call last):
2015-02-14 00:13:11.744 | File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 521, in wait_for_resource_deletion
2015-02-14 00:13:11.744 | raise exceptions.TimeoutException(message)
2015-02-14 00:13:11.745 | TimeoutException: Request timed out
2015-02-14 00:13:11.745 | Details: (TestEncryptedCinderVolumes:_run_cleanups) Failed to delete volume 10ee9e35-8820-414d-ad06-5b145fc7c03f within the required time (196 s).
2015-02-14 00:13:11.745 | }}}
2015-02-14 00:13:11.745 |
2015-02-14 00:13:11.745 | traceback-3: {{{
2015-02-14 00:13:11.745 | Traceback (most recent call last):
2015-02-14 00:13:11.745 | File "tempest/services/volume/json/admin/volume_types_client.py", line 92, in delete_volume_type
2015-02-14 00:13:11.745 | resp, body = self.delete("types/%s" % str(volume_id))
2015-02-14 00:13:11.745 | File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 175, in delete
2015-02-14 00:13:11.745 | return self.request('DELETE', url, extra_headers, headers, body)
2015-02-14 00:13:11.745 | File "tempest/common/service_client.py", line 63, in request
2015-02-14 00:13:11.745 | raise exceptions.BadRequest(ex)
2015-02-14 00:13:11.746 | BadRequest: Bad request
2015-02-14 00:13:11.746 | Details: Bad request
2015-02-14 00:13:11.746 | Details: {u'code': 400, u'message': u'Target volume type is still in use.'}
2015-02-14 00:13:11.746 | }}}
2015-02-14 00:13:11.746 |
2015-02-14 00:13:11.746 | Traceback (most recent call last):
2015-02-14 00:13:11.746 | File "tempest/test.py", line 109, in wrapper
2015-02-14 00:13:11.746 | return f(self, *func_args, **func_kwargs)
2015-02-14 00:13:11.746 | File "tempest/scenario/test_encrypted_cinder_volumes.py", line 56, in test_encrypted_cinder_volumes_luks
2015-02-14 00:13:11.746 | self.attach_detach_volume()
2015-02-14 00:13:11.746 | File "tempest/scenario/test_encrypted_cinder_volumes.py", line 49, in attach_detach_volume
2015-02-14 00:13:11.747 | self.nova_volume_detach()
2015-02-14 00:13:11.747 | File "tempest/scenario/manager.py", line 430, in nova_volume_detach
2015-02-14 00:13:11.747 | 'available')
2015-02-14 00:13:11.747 | File "tempest/services/volume/json/volumes_client.py", line 182, in wait_for_volume_status
2015-02-14 00:13:11.747 | raise exceptions.TimeoutException(message)
2015-02-14 00:13:11.747 | TimeoutException: Request timed out
2015-02-14 00:13:11.747 | Details: Volume 10ee9e35-8820-414d-ad06-5b145fc7c03f failed to reach available status (current: detaching) within the required time (196 s).

Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in cinder:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
John Griffith (john-griffith) wrote :
Revision history for this message
Lisa Li (lisali) wrote :

I set the bug as fixed as the bug John gave was fixed, and currently no such tempest fails.

Changed in cinder:
status: Confirmed → 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.