commit 0b4621f509b51241f5c721d3412eda8eba721b46
Author: Matt Riedemann <email address hidden>
Date: Thu Feb 15 16:01:14 2018 -0500
Add functional recreate test of deleting a BFV server pre-scheduling
This is another wrinkle for bug 1404867 where we create a
volume-backed server, create an attachment on the volume which
puts the volume in 'attaching' status, and then delete the server
before it's actually created in a cell.
In this case, the _delete_while_booting code in the compute API
finds and deletes the BuildRequest before the instance was ever
created in a cell.
The bug is that _delete_while_booting in the API doesn't also
process block device mappings and unreserve/delete attachments
on the volume, which orphans the volume and can only be fixed
with admin intervention in the block storage service.
Change-Id: Ib65acc671711eae7aee65df9cd5c6b2ccb559f5c
Related-Bug: #1404867
(cherry picked from commit 08f0f71a83ff75c5439e72f0913c5feabe2972ed)
Reviewed: https:/ /review. openstack. org/546204 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0b4621f509b 51241f5c721d341 2eda8eba721b46
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 0b4621f509b5124 1f5c721d3412eda 8eba721b46
Author: Matt Riedemann <email address hidden>
Date: Thu Feb 15 16:01:14 2018 -0500
Add functional recreate test of deleting a BFV server pre-scheduling
This is another wrinkle for bug 1404867 where we create a
volume-backed server, create an attachment on the volume which
puts the volume in 'attaching' status, and then delete the server
before it's actually created in a cell.
In this case, the _delete_ while_booting code in the compute API
finds and deletes the BuildRequest before the instance was ever
created in a cell.
The bug is that _delete_ while_booting in the API doesn't also
process block device mappings and unreserve/delete attachments
on the volume, which orphans the volume and can only be fixed
with admin intervention in the block storage service.
Change-Id: Ib65acc671711ea e7aee65df9cd5c6 b2ccb559f5c 5439e72f0913c5f eabe2972ed)
Related-Bug: #1404867
(cherry picked from commit 08f0f71a83ff75c