Rescue of volume based instance fails silently due to wrong API version

Bug #1941744 reported by Christian Rohmann
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Unassigned

Bug Description

Even though the feature is noted in the release notes of the Ussuri release (https://docs.openstack.org/releasenotes/nova/ussuri.html#relnotes-21-0-0-stable-ussuri) a volume based instance cannot be "rescued" (https://docs.openstack.org/nova/ussuri/user/rescue.html) via the Horizon Dashboard.
After clicking "rescue" the action silently fails and nothing happens.

I believe this is simply due to the Nova API version used not being recent enough.
According to https://github.com/openstack/nova/commit/ff3fd846362dfaa7d880dca83f1482b7a8ce80c5 at least version 2.87 is required and I was able to reproduce the issue using the CLI:

1) no version selected

# openstack server rescue --image $IMAGE_ID --password abc123 $INSTANCE_ID

Instance $INSTANCE_ID cannot be rescued: Cannot rescue a volume-backed instance (HTTP 400) (Request-ID: req-8608b9a3-2a10-40ce-a76e-21c93c3bbd8b)

2) selected API version 2.87

# openstack --os-compute-api-version 2.87 server rescue -image $IMAGE_ID --password abc123 $INSTANCE_ID

-> success.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/horizon/+/857184

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.opendev.org/c/openstack/horizon/+/857184
Committed: https://opendev.org/openstack/horizon/commit/05dd53a3cf3e1ced265d23d1c02765abd468a483
Submitter: "Zuul (22348)"
Branch: master

commit 05dd53a3cf3e1ced265d23d1c02765abd468a483
Author: Jan Hartkopf <email address hidden>
Date: Mon Sep 12 15:04:50 2022 +0200

    Fix rescue of volume-based instances

    Rescue of volume-based instances is supported since Nova
    microversion 2.87.
    However, Horizon does not use this microversion when requesting
    rescue of any instances, causing a Nova exception for volume-
    based ones.

    The patch fixes this by explicitly setting the required
    microversion.

    Closes-Bug: #1941744
    Signed-off-by: Jan Hartkopf <email address hidden>
    Change-Id: Ic0cdfd326475882f839fd218cd7b4bfa62a2a76b

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/horizon/+/862682

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/horizon/+/862683

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/horizon/+/862684

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/horizon/+/862682
Committed: https://opendev.org/openstack/horizon/commit/761e466e7a0628ae939dd654152f615732ad4f79
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 761e466e7a0628ae939dd654152f615732ad4f79
Author: Jan Hartkopf <email address hidden>
Date: Mon Sep 12 15:04:50 2022 +0200

    Fix rescue of volume-based instances

    Rescue of volume-based instances is supported since Nova
    microversion 2.87.
    However, Horizon does not use this microversion when requesting
    rescue of any instances, causing a Nova exception for volume-
    based ones.

    The patch fixes this by explicitly setting the required
    microversion.

    Closes-Bug: #1941744
    Signed-off-by: Jan Hartkopf <email address hidden>
    Change-Id: Ic0cdfd326475882f839fd218cd7b4bfa62a2a76b
    (cherry picked from commit 05dd53a3cf3e1ced265d23d1c02765abd468a483)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 23.1.0

This issue was fixed in the openstack/horizon 23.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/horizon/+/862684
Committed: https://opendev.org/openstack/horizon/commit/0498793136b2f219decafdeeefd76891ef4fee25
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 0498793136b2f219decafdeeefd76891ef4fee25
Author: Jan Hartkopf <email address hidden>
Date: Mon Sep 12 15:04:50 2022 +0200

    Fix rescue of volume-based instances

    Rescue of volume-based instances is supported since Nova
    microversion 2.87.
    However, Horizon does not use this microversion when requesting
    rescue of any instances, causing a Nova exception for volume-
    based ones.

    The patch fixes this by explicitly setting the required
    microversion.

    Closes-Bug: #1941744
    Signed-off-by: Jan Hartkopf <email address hidden>
    Change-Id: Ic0cdfd326475882f839fd218cd7b4bfa62a2a76b
    (cherry picked from commit 05dd53a3cf3e1ced265d23d1c02765abd468a483)
    (cherry picked from commit 761e466e7a0628ae939dd654152f615732ad4f79)
    (cherry picked from commit 1cd150cdc568e81eb2ead8819d5559cf3e23a296)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/horizon/+/862683
Committed: https://opendev.org/openstack/horizon/commit/1cd150cdc568e81eb2ead8819d5559cf3e23a296
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 1cd150cdc568e81eb2ead8819d5559cf3e23a296
Author: Jan Hartkopf <email address hidden>
Date: Mon Sep 12 15:04:50 2022 +0200

    Fix rescue of volume-based instances

    Rescue of volume-based instances is supported since Nova
    microversion 2.87.
    However, Horizon does not use this microversion when requesting
    rescue of any instances, causing a Nova exception for volume-
    based ones.

    The patch fixes this by explicitly setting the required
    microversion.

    Closes-Bug: #1941744
    Signed-off-by: Jan Hartkopf <email address hidden>
    Change-Id: Ic0cdfd326475882f839fd218cd7b4bfa62a2a76b
    (cherry picked from commit 05dd53a3cf3e1ced265d23d1c02765abd468a483)
    (cherry picked from commit 761e466e7a0628ae939dd654152f615732ad4f79)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 20.1.4

This issue was fixed in the openstack/horizon 20.1.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 22.1.1

This issue was fixed in the openstack/horizon 22.1.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 23.0.1

This issue was fixed in the openstack/horizon 23.0.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.