yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #90043
[Bug 1941744] Re: Rescue of volume based instance fails silently due to wrong API version
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 <jhartkopf@xxxxxxxxx>
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 <jhartkopf@xxxxxxxxx>
Change-Id: Ic0cdfd326475882f839fd218cd7b4bfa62a2a76b
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1941744
Title:
Rescue of volume based instance fails silently due to wrong API
version
Status in OpenStack Dashboard (Horizon):
Fix Released
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1941744/+subscriptions
References