nova/releasenotes/notes/rescue-volume-based-instance-c6e3fba236d90be7.yaml
Rajesh Tailor 6eed55bf55 Fix rescue volume-based instance
As of now, when attempting to rescue a volume-based instance
using an image without the hw_rescue_device and/or hw_rescue_bus
properties set, the rescue api call fails (as non-stable rescue
for volume-based instances are not supported) leaving the instance
in error state.

This change checks for hw_rescue_device/hw_rescue_bus image
properties before attempting to rescue and if the property
is not set, then fail with proper error message, without changing
instance state.

Related-Bug: #1978958
Closes-Bug: #1926601
Change-Id: Id4c8c5f3b32985ac7d3d7c833b82e0876f7367c1
2022-08-26 12:28:00 +05:30

7 lines
193 B
YAML

---
fixes:
- |
Fix rescuing volume based instance by adding a check for 'hw_rescue_disk'
and 'hw_rescue_device' properties in image metadata before attempting
to rescue instance.