When instances are launched with a source group, the instance_type
is not lazy_loaded in properly.
The issue is intermittent because if another query has already loaded
the instance with a joined instance_type or the instance has not
yet been expunged from the session, then the load succeeds.
Therefore this failure only appears under heavy load. Adding an
explicit joindload fixes the issue.
Reviewed: https:/ /review. openstack. org/9642 github. com/openstack/ nova/commit/ 4d74631659b1b6e 5b29b763cd80852 8946cb3721
Committed: http://
Submitter: Jenkins
Branch: stable/essex
commit 4d74631659b1b6e 5b29b763cd80852 8946cb3721
Author: Vishvananda Ishaya <email address hidden>
Date: Tue Jul 3 14:50:11 2012 -0700
Avoid lazy-loading errors on instance_type
When instances are launched with a source group, the instance_type
is not lazy_loaded in properly.
The issue is intermittent because if another query has already loaded
the instance with a joined instance_type or the instance has not
yet been expunged from the session, then the load succeeds.
Therefore this failure only appears under heavy load. Adding an
explicit joindload fixes the issue.
fixes bug 1018721
Change-Id: I450c598c31c416 c7be341cbb8cd14 e33c6bb2aec 51aac8492269ad8 56c312dcb5)
(cherry picked from commit 2ef0dcfac784685