summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>2023-02-01 13:12:59 +0100
committerSahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>2023-02-06 14:25:33 +0100
commit1d707a72fc58103e9cd3b9258cf0fb3958298fad (patch)
treefdd9f922d6d052b33700d16ced281496ec125d34
parent72370a188c0755bc9c864b5a5e4a972077cb8dd6 (diff)
downloadnova-1d707a72fc58103e9cd3b9258cf0fb3958298fad.tar.gz
fup: support evacuate target state
This fix minors comments that have been noticed. Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Change-Id: Iee6c224aa0f26d8550b38a8f69b28d8648b1da70
-rw-r--r--doc/api_samples/os-evacuate/v2.95/server-evacuate-find-host-req.json1
-rw-r--r--doc/api_samples/os-evacuate/v2.95/server-evacuate-req.json3
-rw-r--r--nova/api/openstack/compute/rest_api_version_history.rst5
-rw-r--r--nova/exception.py2
4 files changed, 5 insertions, 6 deletions
diff --git a/doc/api_samples/os-evacuate/v2.95/server-evacuate-find-host-req.json b/doc/api_samples/os-evacuate/v2.95/server-evacuate-find-host-req.json
index ae9fb0a67b..8ad929226e 100644
--- a/doc/api_samples/os-evacuate/v2.95/server-evacuate-find-host-req.json
+++ b/doc/api_samples/os-evacuate/v2.95/server-evacuate-find-host-req.json
@@ -1,5 +1,4 @@
{
"evacuate": {
- "targetState": "stopped"
}
}
diff --git a/doc/api_samples/os-evacuate/v2.95/server-evacuate-req.json b/doc/api_samples/os-evacuate/v2.95/server-evacuate-req.json
index a9f809c830..d192892cdc 100644
--- a/doc/api_samples/os-evacuate/v2.95/server-evacuate-req.json
+++ b/doc/api_samples/os-evacuate/v2.95/server-evacuate-req.json
@@ -1,6 +1,5 @@
{
"evacuate": {
- "host": "testHost",
- "targetState": "stopped"
+ "host": "testHost"
}
}
diff --git a/nova/api/openstack/compute/rest_api_version_history.rst b/nova/api/openstack/compute/rest_api_version_history.rst
index b34510be5c..4a922ab0e2 100644
--- a/nova/api/openstack/compute/rest_api_version_history.rst
+++ b/nova/api/openstack/compute/rest_api_version_history.rst
@@ -1243,5 +1243,6 @@ Name (FQDN).
---------------------
Any evacuated instances will be now stopped at destination. This
-requires minimun compute version 27.0.0 (antelope 2023.1). Operators
-can still use previous microversion for older behavior.
+requires minimun nova release 27.0.0, OpenStack release 2023.1
+Antelope. Operators can still use previous microversion for older
+behavior.
diff --git a/nova/exception.py b/nova/exception.py
index 20c112b628..6d4798997f 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -2513,7 +2513,7 @@ class InvalidNodeConfiguration(NovaException):
class NotSupportedComputeForEvacuateV295(NotSupported):
- msg_fmt = _("Starting to microversion 2.95, evacuate API will stop "
+ msg_fmt = _("Starting with microversion 2.95, evacuate API will stop "
"instance on destination. To evacuate before upgrades are "
"complete please use an older microversion. Required version "
"for compute %(expected), current version %(currently)s")