I think the better option here is to replace calls to _disconnect_volume with calls to block_device.detach():
https://github.com/openstack/nova/blob/e0f088c95d05e9cf32d4af4c7cfc20566b17f8e1/nova/virt/block_device.py#L469-L477
I think the better option here is to replace calls to _disconnect_volume with calls to block_device. detach( ):
https:/ /github. com/openstack/ nova/blob/ e0f088c95d05e9c f32d4af4c7cfc20 566b17f8e1/ nova/virt/ block_device. py#L469- L477