Comment 1 for bug 1548980

Revision history for this message
Matt Riedemann (mriedem) wrote :

This is the compute API call to get the instance.services:

https://github.com/openstack/nova/blob/11019fab7a2415cbca8b93e9346b21327e79688d/nova/compute/api.py#L3439

Which tries to generically get the updated instance object from the database here:

https://github.com/openstack/nova/blob/11019fab7a2415cbca8b93e9346b21327e79688d/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.