I don't think [3] is doing what you'd expect for cleaning up orphans since it won't return compute nodes records from the database if the API deleted them:
https://github.com/openstack/nova/blob/da98f4ba4554139b3901103aa0d26876b11e1d9a/nova/compute/manager.py#L7777
So that for loop here:
https://github.com/openstack/nova/blob/da98f4ba4554139b3901103aa0d26876b11e1d9a/nova/compute/manager.py#L7758
Could just be an empty list, right?
I don't think [3] is doing what you'd expect for cleaning up orphans since it won't return compute nodes records from the database if the API deleted them:
https:/ /github. com/openstack/ nova/blob/ da98f4ba4554139 b3901103aa0d268 76b11e1d9a/ nova/compute/ manager. py#L7777
So that for loop here:
https:/ /github. com/openstack/ nova/blob/ da98f4ba4554139 b3901103aa0d268 76b11e1d9a/ nova/compute/ manager. py#L7758
Could just be an empty list, right?