summaryrefslogtreecommitdiff
path: root/nova/compute/manager.py
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-10-23 14:37:27 +0100
committerStephen Finucane <stephenfin@redhat.com>2020-11-17 11:42:08 +0000
commit30067be9bd77d5cb84d38931b1a9a128db6230a6 (patch)
treee32a15697eff9e09f250098c6c9695cffd9f1e82 /nova/compute/manager.py
parente13e8c8cd4994d45aba820f10f3db17614d76073 (diff)
downloadnova-30067be9bd77d5cb84d38931b1a9a128db6230a6.tar.gz
virt: Remove 'change_instance_metadata' API
This was used to propagate the metadata changes to the hypervisor. For all non-XenAPI drivers, we still allow updating instance metadata via the API (i.e. '/servers/{server_id}/metadata') but this simply changes what is exposed via the metadata API. Change-Id: Ibd0ffd9906e7d7f22a9233539091d450e8023f07 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/compute/manager.py')
-rw-r--r--nova/compute/manager.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 7bb99b800a..94b0a7591b 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -4228,13 +4228,11 @@ class ComputeManager(manager.Manager):
self.host, action=fields.NotificationAction.UNRESCUE,
phase=fields.NotificationPhase.END)
+ # TODO(stephenfin): Remove this once we bump the compute API to v6.0
@wrap_exception()
@wrap_instance_fault
def change_instance_metadata(self, context, diff, instance):
- """Update the metadata published to the instance."""
- LOG.debug("Changing instance metadata according to %r",
- diff, instance=instance)
- self.driver.change_instance_metadata(context, instance, diff)
+ raise NotImplementedError()
@wrap_exception()
@wrap_instance_event(prefix='compute')