summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 1dbd73f8f..93a5e7855 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -480,6 +480,15 @@ class API(base.Base):
"""Reboot the given instance."""
self._cast_compute_message('reboot_instance', context, instance_id)
+ def rebuild(self, context, instance_id, image_id, metadata=None):
+ """Rebuild the given instance with the provided metadata."""
+ return
+ # default to an empty list
+ metadata = metadata or []
+ #TODO: validate metadata
+ self._cast_compute_message('rebuild_instance', context,
+ instance_id, metadata)
+
def revert_resize(self, context, instance_id):
"""Reverts a resize, deleting the 'new' instance in the process"""
context = context.elevated()