yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37715
[Bug 1471978] Re: test_relationships() uses subobject version instead of relationship version
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => liberty-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1471978
Title:
test_relationships() uses subobject version instead of relationship
version
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Part of test_relationships() is spent building the subobject tree of
each nova object
(http://git.openstack.org/cgit/openstack/nova/tree/nova/tests/unit/objects/test_objects.py#n1274).
In _build_tree(), a tree is built with all objects in the nova
registry, and then it finds the version of each subobject that this
object should be holding (only down 1 level). This version that it
should be holding needs to be determined by obj_relationships (or
child_versions until https://bugs.launchpad.net/nova/+bug/1470154 is
fixed).
In _build_tree(), the versions it should be holding is determined by
sub_obj_class.VERSION instead of what is in obj_relationships. This
causes the static tree used in test_relationships to be testing
against the most recent version of the subobjects instead of testing
against the subobject version held in obj_relationships.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1471978/+subscriptions
References