MultiAttachVolumeSwap fails or takes a long time to detach volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Medium
|
Unassigned | ||
os-brick |
New
|
Undecided
|
Unassigned | ||
tempest |
New
|
Undecided
|
Unassigned |
Bug Description
ERROR: tempest.
EXEPCTED BEHAVIOR: Volume successfully detaches and test passes.
HOW TO DUPLICATE:
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.
8f9d1-d7b7-
-------
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/opt/stack/
return f(*func_args, **func_kwargs)
File "/opt/stack/
return f(*func_args, **func_kwargs)
File "/opt/stack/
with_multiattach
waiters.
File "/opt/stack/
time.
File "/opt/stack/
raise TimeoutException()
fixtures.
Captured traceback-1:
~~~~~~~
Traceback (most recent call last):
File "/opt/stack/
raise lib_exc.
tempest.
Details: Volume a54c67b7-
In waiters.py:
373 while any(volume for volume in volumes if volume['volumeId'] == volume_id):
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
Adding Tempest.log