Target context when setting instance to ERROR when over quota
When conductor does the quota recheck, the instances are created
in a cell but when we update the instance and set it to ERROR state,
we were not targeting the context to the cell that the instance lives
in, which leads to an InstanceNotFound error and then the instance
is stuck in BUILD/scheduling state.
This targets the context to the cell when updating the instance.
Reviewed: https:/ /review. openstack. org/503839 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7e02f02d150 1925ddeb15266c0 5d4d95f852e21a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7e02f02d1501925 ddeb15266c05d4d 95f852e21a
Author: Matt Riedemann <email address hidden>
Date: Wed Sep 13 17:30:59 2017 -0400
Target context when setting instance to ERROR when over quota
When conductor does the quota recheck, the instances are created
in a cell but when we update the instance and set it to ERROR state,
we were not targeting the context to the cell that the instance lives
in, which leads to an InstanceNotFound error and then the instance
is stuck in BUILD/scheduling state.
This targets the context to the cell when updating the instance.
Change-Id: I45faffaba4d329 433a33cfb5e64c8 9ce4885df46
Closes-Bug: #1717000