This is where we get the VolumeNotFound because we're passing bdm.volume_id of None to volume_api.delete:
https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2316
And this is where we log that we're terminating the BDM but we're not actually since volume_id isn't set on it:
https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2342
This is where we get the VolumeNotFound because we're passing bdm.volume_id of None to volume_api.delete:
https:/ /github. com/openstack/ nova/blob/ master/ nova/compute/ manager. py#L2316
And this is where we log that we're terminating the BDM but we're not actually since volume_id isn't set on it:
https:/ /github. com/openstack/ nova/blob/ master/ nova/compute/ manager. py#L2342