But because it's deleted that results in InstanceNotFound.
So we should either update the nova.objects.instance.Instance.obj_load_attr method to specifically handle the services field, or when we get the instance in the first place we should join on the services table.
This is the compute API call to get the instance.services:
https:/ /github. com/openstack/ nova/blob/ 11019fab7a2415c bca8b93e9346b21 327e79688d/ nova/compute/ api.py# L3439
Which tries to generically get the updated instance object from the database here:
https:/ /github. com/openstack/ nova/blob/ 11019fab7a2415c bca8b93e9346b21 327e79688d/ nova/objects/ instance. py#L744
But because it's deleted that results in InstanceNotFound.
So we should either update the nova.objects. instance. Instance. obj_load_ attr method to specifically handle the services field, or when we get the instance in the first place we should join on the services table.