[nova] Rescuing a volume-backed instance
Hello, I am using Openstack 2024.1 and I have issues with an instance with a corrupted FS - I wanted to start it in rescue mode, but I'm getting stuck After reading nova#1926601 <https://bugs.launchpad.net/nova/+bug/1926601> , downloaded System Rescue CD and created an image with properties [otherwise it always failed with "Cannot rescue a volume-backed instance (HTTP 400)"] : openstack image create --file systemrescue-11.02-amd64.iso --disk-format iso --container-format bare --property hw_rescue_bus=virtio --property hw_rescue_device=disk systemrescuecd Then tried to rescue the instance: openstack --os-compute-api-version 2.96 server rescue --image systemrescuecd (my-instance-id) Now it fails with "Instance (my-instance-id) cannot be rescued: Driver Error: Image (my-image-id) is unacceptable: Image not in a supported format" How should I proceed? Thanks in advance -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email: francesco.dinucci@na.infn.it
Hello, Try uploading your ISO with "--property hw_rescue_device=cdrom --property hw_rescue_bus=scsi” /Tobias On 3 Dec 2024, at 10:09, Francesco Di Nucci <francesco.dinucci@na.infn.it> wrote: Hello, I am using Openstack 2024.1 and I have issues with an instance with a corrupted FS - I wanted to start it in rescue mode, but I'm getting stuck After reading nova#1926601<https://bugs.launchpad.net/nova/+bug/1926601> , downloaded System Rescue CD and created an image with properties [otherwise it always failed with "Cannot rescue a volume-backed instance (HTTP 400)"] : openstack image create --file systemrescue-11.02-amd64.iso --disk-format iso --container-format bare --property hw_rescue_bus=virtio --property hw_rescue_device=disk systemrescuecd Then tried to rescue the instance: openstack --os-compute-api-version 2.96 server rescue --image systemrescuecd (my-instance-id) Now it fails with "Instance (my-instance-id) cannot be rescued: Driver Error: Image (my-image-id) is unacceptable: Image not in a supported format" How should I proceed? Thanks in advance -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email: francesco.dinucci@na.infn.it<mailto:francesco.dinucci@na.infn.it>
Just to have that said, we have systemrescuecd with following properties set: hw_rescue_bus=virtio hw_rescue_device=disk However, disk_format is set to RAW, regardless that we're uploading an ISO image. I know it's a weird combo, but it works for us as of today on Antelope and Caracal. вт, 3 дек. 2024 г. в 14:48, Tobias Urdin - Binero IT <tobias.urdin@binero.com>:
Hello,
Try uploading your ISO with "--property hw_rescue_device=cdrom --property hw_rescue_bus=scsi”
/Tobias
On 3 Dec 2024, at 10:09, Francesco Di Nucci <francesco.dinucci@na.infn.it> wrote:
Hello,
I am using Openstack 2024.1 and I have issues with an instance with a corrupted FS - I wanted to start it in rescue mode, but I'm getting stuck
After reading nova#1926601 , downloaded System Rescue CD and created an image with properties [otherwise it always failed with "Cannot rescue a volume-backed instance (HTTP 400)"] :
openstack image create --file systemrescue-11.02-amd64.iso --disk-format iso --container-format bare --property hw_rescue_bus=virtio --property hw_rescue_device=disk systemrescuecd
Then tried to rescue the instance:
openstack --os-compute-api-version 2.96 server rescue --image systemrescuecd (my-instance-id)
Now it fails with "Instance (my-instance-id) cannot be rescued: Driver Error: Image (my-image-id) is unacceptable: Image not in a supported format"
How should I proceed?
Thanks in advance
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email: francesco.dinucci@na.infn.it
Thank you both, I tried setting "--property hw_rescue_device=cdrom --property hw_rescue_bus=scsi" but it returns the same error Uploading it as raw and using it as a disk worked, although I agree it's weird Thanks again! -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email:francesco.dinucci@na.infn.it On 03/12/24 14:17, Tobias Urdin - Binero IT wrote:
Hello,
Try uploading your ISO with "--property hw_rescue_device=cdrom --property hw_rescue_bus=scsi”
/Tobias
On 3 Dec 2024, at 10:09, Francesco Di Nucci <francesco.dinucci@na.infn.it> wrote:
Hello,
I am using Openstack 2024.1 and I have issues with an instance with a corrupted FS - I wanted to start it in rescue mode, but I'm getting stuck
After reading nova#1926601 <https://bugs.launchpad.net/nova/+bug/1926601> , downloaded System Rescue CD and created an image with properties [otherwise it always failed with "Cannot rescue a volume-backed instance (HTTP 400)"] :
openstack image create --file systemrescue-11.02-amd64.iso --disk-format iso --container-format bare --property hw_rescue_bus=virtio --property hw_rescue_device=disk systemrescuecd
Then tried to rescue the instance:
openstack --os-compute-api-version 2.96 server rescue --image systemrescuecd (my-instance-id)
Now it fails with "Instance (my-instance-id) cannot be rescued: Driver Error: Image (my-image-id) is unacceptable: Image not in a supported format"
How should I proceed?
Thanks in advance
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email: francesco.dinucci@na.infn.it
participants (3)
-
Dmitriy Rabotyagov
-
Francesco Di Nucci
-
Tobias Urdin - Binero IT