-
Epic
-
Resolution: Done-Errata
-
Major
-
None
-
None
-
Evacuate to STOPPED
-
1
-
False
-
-
False
-
Committed
-
Committed
-
To Do
-
OSP-14490 - Large scale scheduling
-
openstack-nova-27.1.1-18.0.20230930093334.a869ab1.el9ost
-
Committed
-
Committed
-
25% To Do, 0% In Progress, 75% Done
-
-
Enhancement
-
Done
-
Automated
-
-
Problem description
The current evacuate instance API does not allow operators to set a desired target state to the evacuated instances. Restoring the original state of the instance when it was active on the source host may result in issues if the guest required a valid token to be started or prevent evacuation when using encrypted volumes.
Use Cases
- As an operator, I would like to be able to evacuate instances to a shut-off state because my tenant workloads may have specific security requirements, that do not allow them to be started by the administrator.
- As an operator, I would like to be able to evacuate VMs with encrypted volumes without making the barbican secret readable by admins and reducing the security.
- As a user, if my instance is offline due to a host outage, I don’t necessarily want an admin evacuating it and bringing it back online without my knowledge as I may have already replaced it and the zombie coming back may cause a conflict.
Proposed change
As of the bumped version, the API will force the stopped state for evacuated instances. It is expected that before the bumped version the behavior stay the same, instances with state active or stopped will keep their state at destination.
With the new microversion nova will always evacuate the instance to SHUTOFF state.
The only way to keep the instance state after the evacuation is to use an older microversion.
- links to
-
RHBA-2023:116856 Release of components for OSP 18.0
-
RHBA-2024:133297 Release of components for Red Hat OpenStack Services on OpenShift 18.0