Ensure all image cache volumes are removed before removing the volume type
Previously the only clean up action registered when creating a new
volume type was the direct removal of that type. However this request would
silently fail in the attached volume migration scenario tests if the
backends being used had their image volume cache enabled.
This was due to the image volume cache still containing volumes
associated to the given volume type when attempts were made to delete
the volume type. To avoid this these image volume cache volumes must be
manually removed by an admin user before deleting the volume type.
Reviewed: https:/ /review. openstack. org/651238 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=be64e1ae7cf aea2a208ba42bbb f66fe4a5dee0e9
Committed: https:/
Submitter: Zuul
Branch: master
commit be64e1ae7cfaea2 a208ba42bbbf66f e4a5dee0e9
Author: Lee Yarwood <email address hidden>
Date: Tue Apr 9 14:02:12 2019 +0100
Ensure all image cache volumes are removed before removing the volume type
Previously the only clean up action registered when creating a new
volume type was the direct removal of that type. However this request would
silently fail in the attached volume migration scenario tests if the
backends being used had their image volume cache enabled.
This was due to the image volume cache still containing volumes
associated to the given volume type when attempts were made to delete
the volume type. To avoid this these image volume cache volumes must be
manually removed by an admin user before deleting the volume type.
Closes-Bug: #1823880 729f9e846a6f0fa c6d393ca475
Change-Id: Ib4d82586e91037