Cannot 'detach_volume' while instance is in task_state powering-off
Job #39446 failed for baeffba2:
We shutdown the instance before we detach vol but the detach cmd is complaining because the server task state is still powering off. i.e vol detach depending on one of the attributes of the previous command
I found a way to make it work. If we show status before detaching the vol, we can create a delay just enough for it to set the task_state to shut down. This will allow it to detach vol.
openstack server stop ed402a7f-30fc-4c65-820f-1f3a435617ab && openstack server show ed402a7f-30fc-4c65-820f-1f3a435617ab && openstack server remove volume ed402a7f-30fc-4c65-820f-1f3a435617ab 80084881-6ac0-4844-af23-da92c33020f3
It worked. https://gitlab.rc.uab.edu/rc/terraform-openstack/-/pipelines/9436
Edited by Eesaan Atluri