summaryrefslogtreecommitdiff
path: root/nova/conductor
diff options
context:
space:
mode:
authorRajat Dhasmana <rajatdhasmana@gmail.com>2021-12-03 05:20:26 -0500
committerwhoami-rajat <rajatdhasmana@gmail.com>2022-08-31 16:38:37 +0530
commit30aab9c234035b49c7e2cdc940f624a63eeffc1b (patch)
treedd61d77fa9db023c8c3dad63c045119a0dd7ea70 /nova/conductor
parent0bab2e5a882235bfd41d2bce86db9885fd0b81b2 (diff)
downloadnova-30aab9c234035b49c7e2cdc940f624a63eeffc1b.tar.gz
Add support for volume backed server rebuild
This patch adds the plumbing for rebuilding a volume backed instance in compute code. This functionality will be enabled in a subsequent patch which adds a new microversion and the external support for requesting it. The flow of the operation is as follows: 1) Create an empty attachment 2) Detach the volume 3) Request cinder to reimage the volume 4) Wait for cinder to notify success to nova (via external events) 5) Update and complete the attachment Related blueprint volume-backed-server-rebuild Change-Id: I0d889691de1af6875603a9f0f174590229e7be18
Diffstat (limited to 'nova/conductor')
-rw-r--r--nova/conductor/manager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/conductor/manager.py b/nova/conductor/manager.py
index 594c3dd61c..2d2fb2b243 100644
--- a/nova/conductor/manager.py
+++ b/nova/conductor/manager.py
@@ -1146,7 +1146,7 @@ class ComputeTaskManager:
injected_files, new_pass, orig_sys_metadata,
bdms, recreate, on_shared_storage,
preserve_ephemeral=False, host=None,
- request_spec=None):
+ request_spec=None, reimage_boot_volume=False):
# recreate=True means the instance is being evacuated from a failed
# host to a new destination host. The 'recreate' variable name is
# confusing, so rename it to evacuate here at the top, which is simpler
@@ -1343,7 +1343,8 @@ class ComputeTaskManager:
node=node,
limits=limits,
request_spec=request_spec,
- accel_uuids=accel_uuids)
+ accel_uuids=accel_uuids,
+ reimage_boot_volume=False)
def _validate_image_traits_for_rebuild(self, context, instance, image_ref):
"""Validates that the traits specified in the image can be satisfied