ERROR: tempest.api.compute.admin.test_volume_swap.TestMultiAttachVolumeSwap.test_volume_swap_with_multiattach fails during tempest iSCSI tests due volume taking a long time to detach or failing to detach from instance. The logs herein show an example of a failure to detach.
EXEPCTED BEHAVIOR: Volume successfully detaches and test passes.
HOW TO DUPLICATE:
Run: tox -e all -- tempest.api.compute.admin.test_volume_swap.TestMultiAttachVolumeSwap.test_volume_swap_with_multiattach | tee -a console.log.out
File "/opt/stack/tempest/tempest/lib/decorators.py", line 81, in wrapper
return f(*func_args, **func_kwargs)
File "/opt/stack/tempest/tempest/common/utils/__init__.py", line 70, in wrapper
return f(*func_args, **func_kwargs)
File "/opt/stack/tempest/tempest/api/compute/admin/test_volume_swap.py", line 245, in test_volume_swap_
with_multiattach
waiters.wait_for_volume_resource_status(self.volumes_client,
File "/opt/stack/tempest/tempest/common/waiters.py", line 301, in wait_for_volume_resource_status
time.sleep(client.build_interval)
File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/fixtures/_fixtures/timeout.py", line 52, in signal_handler
raise TimeoutException()
File "/opt/stack/tempest/tempest/common/waiters.py", line 385, in wait_for_volume_attachment_remove_from_server
raise lib_exc.TimeoutException(message)
tempest.lib.exceptions.TimeoutException: Request timed out
Details: Volume a54c67b7-786e-4ba7-94ea-d1e0a722424a failed to detach from server 986b2dd5-542a-4344-a929-9ac7bbf35d7c within the required time (3600 s) from the compute API perspective
In waiters.py:
373 while any(volume for volume in volumes if volume['volumeId'] == volume_id):
374 time.sleep(client.build_interval)
375
376 timed_out = int(time.time()) - start >= client.build_timeout
377 if timed_out:
378 console_output = client.get_console_output(server_id)['output']
379 LOG.debug('Console output for %s\nbody=\n%s',
380 server_id, console_output)
381 message = ('Volume %s failed to detach from server %s within '
382 'the required time (%s s) from the compute API '
383 'perspective' %
384 (volume_id, server_id, client.build_timeout))
385 raise lib_exc.TimeoutException(message)
386 try:
387 volumes = client.list_volume_attachments(
388 server_id)['volumeAttachments']
389 except lib_exc.NotFound:
390 # Ignore 404s on detach in case the server is deleted or the volume
391 # is already detached.
392 return
393 return
ERROR: tempest. api.compute. admin.test_ volume_ swap.TestMultiA ttachVolumeSwap .test_volume_ swap_with_ multiattach fails during tempest iSCSI tests due volume taking a long time to detach or failing to detach from instance. The logs herein show an example of a failure to detach.
EXEPCTED BEHAVIOR: Volume successfully detaches and test passes.
HOW TO DUPLICATE: api.compute. admin.test_ volume_ swap.TestMultiA ttachVolumeSwap .test_volume_ swap_with_ multiattach | tee -a console.log.out
Run: tox -e all -- tempest.
CONFIG:
- DevStack Zed Release
- Single node using iSCSI
- Host OS: Ubuntu 20.04
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
From tempest console.log:
tempest. api.compute. admin.test_ volume_ swap.TestMultiA ttachVolumeSwap .test_volume_ swap_with_ multiattach[ id-e8f 4cd2-8213- ab85ef697b6e, slow,volume] ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- ------- ------- ------- ------- ------- ----
8f9d1-d7b7-
-------
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/opt/stack/ tempest/ tempest/ lib/decorators. py", line 81, in wrapper
return f(*func_args, **func_kwargs)
File "/opt/stack/ tempest/ tempest/ common/ utils/_ _init__ .py", line 70, in wrapper
return f(*func_args, **func_kwargs)
File "/opt/stack/ tempest/ tempest/ api/compute/ admin/test_ volume_ swap.py" , line 245, in test_volume_swap_ wait_for_ volume_ resource_ status( self.volumes_ client,
with_multiattach
waiters.
File "/opt/stack/ tempest/ tempest/ common/ waiters. py", line 301, in wait_for_ volume_ resource_ status sleep(client. build_interval)
time.
File "/opt/stack/ tempest/ .tox/tempest/ lib/python3. 8/site- packages/ fixtures/ _fixtures/ timeout. py", line 52, in signal_handler
raise TimeoutException()
fixtures. _fixtures. timeout. TimeoutExceptio n
Captured traceback-1: ~~~~~~~ ~~~~~~~
~~~~~~~
Traceback (most recent call last):
File "/opt/stack/ tempest/ tempest/ common/ waiters. py", line 385, in wait_for_ volume_ attachment_ remove_ from_server TimeoutExceptio n(message)
raise lib_exc.
tempest. lib.exceptions. TimeoutExceptio n: Request timed out 786e-4ba7- 94ea-d1e0a72242 4a failed to detach from server 986b2dd5- 542a-4344- a929-9ac7bbf35d 7c within the required time (3600 s) from the compute API perspective
Details: Volume a54c67b7-
In waiters.py:
373 while any(volume for volume in volumes if volume['volumeId'] == volume_id): client. build_interval) build_timeout get_console_ output( server_ id)['output' ] build_timeout) ) TimeoutExceptio n(message) list_volume_ attachments( id)['volumeAtta chments' ]
374 time.sleep(
375
376 timed_out = int(time.time()) - start >= client.
377 if timed_out:
378 console_output = client.
379 LOG.debug('Console output for %s\nbody=\n%s',
380 server_id, console_output)
381 message = ('Volume %s failed to detach from server %s within '
382 'the required time (%s s) from the compute API '
383 'perspective' %
384 (volume_id, server_id, client.
385 raise lib_exc.
386 try:
387 volumes = client.
388 server_
389 except lib_exc.NotFound:
390 # Ignore 404s on detach in case the server is deleted or the volume
391 # is already detached.
392 return
393 return