commit | 0a84a5e52f5eb81b7a342e426efeb638148b0023 | [log] [tgz] |
---|---|---|
author | yatin <ykarel@redhat.com> | Tue Mar 27 14:49:36 2018 +0530 |
committer | Oleksandr Kononenko <okononenko@mirantis.com> | Tue Dec 27 12:48:29 2022 +0200 |
tree | 477e4474404b992d3c65a3ffd24d0583bd58e2c5 | |
parent | 914798a0037e402aa84b2cdabd10b676ec31edd3 [diff] |
Use addCleanup to detach volume instead of explicit detach Cinder volume delete [1] is executed during resource cleanup. So, if test fails due to some reason then it tries to delete a volume which is "in-use" state. Detach volume should be executed before trying to delete the volume. This patch adds nova_detach volume as a cleanup task. [1] https://github.com/openstack/barbican-tempest-plugin/blob/a6d945d8e677dedf73ccb7b2f7271e8fc96836be/barbican_tempest_plugin/tests/scenario/manager.py#L229 Related-Prod: PRODX-28744 Change-Id: I3457bb6fc22a7bb6a32c8d6f4ea5879aeb8d43c5 Related-Bug: #1755485