Remove obj_relationships from objects
In Liberty, we converted to using the manifest-based class action and backport methods, which no longer rely on these object relationship maps. They provide a full manifest of client-side versions with each call, which is far more robust than us trying to hand-edit these mappings (which we get incorrect a lot). Since we're now in Mitaka, we can drop compatibility with clients that don't make the version-manifest calls. Those have also been deprecated in oslo.versionedobjects. Change-Id: Iea8b6348e3b01aaa335ec5408f07826f1e758d20
This commit is contained in:
@@ -163,11 +163,6 @@ class AggregateList(base.ObjectListBase, base.NovaObject):
|
||||
'objects': fields.ListOfObjectsField('Aggregate'),
|
||||
}
|
||||
|
||||
# NOTE(danms): Aggregate was at 1.1 before we added this
|
||||
obj_relationships = {
|
||||
'objects': [('1.0', '1.1'), ('1.1', '1.1'), ('1.2', '1.1')],
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def _filter_db_aggregates(cls, db_aggregates, hosts):
|
||||
if not isinstance(hosts, set):
|
||||
|
||||
@@ -101,10 +101,6 @@ class InstanceFaultList(base.ObjectListBase, base.NovaObject):
|
||||
fields = {
|
||||
'objects': fields.ListOfObjectsField('InstanceFault'),
|
||||
}
|
||||
# NOTE(danms): InstanceFault was at 1.1 before we added this
|
||||
obj_relationships = {
|
||||
'objects': [('1.0', '1.1'), ('1.1', '1.2')],
|
||||
}
|
||||
|
||||
@base.remotable_classmethod
|
||||
def get_by_instance_uuids(cls, context, instance_uuids):
|
||||
|
||||
@@ -243,12 +243,6 @@ class InstanceGroupList(base.ObjectListBase, base.NovaObject):
|
||||
fields = {
|
||||
'objects': fields.ListOfObjectsField('InstanceGroup'),
|
||||
}
|
||||
# NOTE(danms): InstanceGroup was at 1.3 before we added this
|
||||
obj_relationships = {
|
||||
'objects': [('1.0', '1.3'), ('1.1', '1.4'), ('1.2', '1.5'),
|
||||
('1.3', '1.6'), ('1.4', '1.7'), ('1.5', '1.8'),
|
||||
('1.6', '1.9'), ('1.7', '1.10')],
|
||||
}
|
||||
|
||||
@base.remotable_classmethod
|
||||
def get_by_project_id(cls, context, project_id):
|
||||
|
||||
@@ -90,10 +90,6 @@ class KeyPairList(base.ObjectListBase, base.NovaObject):
|
||||
fields = {
|
||||
'objects': fields.ListOfObjectsField('KeyPair'),
|
||||
}
|
||||
# NOTE(danms): KeyPair was at 1.1 before we added this
|
||||
obj_relationships = {
|
||||
'objects': [('1.0', '1.1'), ('1.1', '1.2'), ('1.2', '1.3')],
|
||||
}
|
||||
|
||||
@base.remotable_classmethod
|
||||
def get_by_user(cls, context, user_id):
|
||||
|
||||
Reference in New Issue
Block a user