Remove context from remotable call signature

This is the final step in removing the context parameter from the
signature of a remotable method.

This includes a change of most of the object hashes, without version
bumps. That's because the hashing algorithm is just looking for changes
in things like a call signature, in order to signal that a version bump is
required. Since context is in the signature, removing it triggers the
alert. However, context is not _actually_ part of the on-the-wire API,
as it is stripped out on the caller side, and re-added on the callee side
(hence why we're making this change in the first place). If the test had
been uuber-pedantic to exclude context from consideration, then the hashes
would not be changing here, but alas.

In short, the hash changes are false alarms and do not mean we need
version bumps for all the things.

Related to blueprint kilo-objects

Change-Id: I89464c0ab7e6e0d84e677b9a69a86468727b6438
This commit is contained in:
Dan Smith
2015-03-13 10:17:45 -07:00
parent 07e1ac1359
commit 8d0c41026f
4 changed files with 15 additions and 15 deletions

View File

@@ -64,7 +64,7 @@ class InstanceFault(base.NovaPersistentObject, base.NovaObject,
db_faults[instance_uuid][0])
@base.remotable
def create(self, context):
def create(self):
if self.obj_attr_is_set('id'):
raise exception.ObjectActionError(action='create',
reason='already created')