You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds support to the REST API, in a new microversion, for specifying
a destination host to unshelve server action when the server
is shelved offloaded.
This patch also supports the ability to unpin the availability_zone of an
instance that is bound to it.
Note that the functional test changes are due to those tests using the
"latest" microversion 2.91.
Implements: blueprint unshelve-to-host
Change-Id: I9e95428c208582741e6cd99bd3260d6742fcc6b7
Copy file name to clipboardExpand all lines: api-ref/source/servers-action-shelve.inc
+91-3Lines changed: 91 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -121,9 +121,65 @@ Policy defaults enable only users with the administrative role or the owner of t
121
121
122
122
**Preconditions**
123
123
124
-
The server status must be ``SHELVED`` or ``SHELVED_OFFLOADED``.
124
+
Unshelving a server without parameters requires its status to be ``SHELVED`` or ``SHELVED_OFFLOADED``.
125
+
126
+
Unshelving a server with availability_zone and/or host parameters requires its status to be only ``SHELVED_OFFLOADED`` otherwise HTTP 409 conflict response is returned.
127
+
128
+
If a server is locked, you must have administrator privileges to unshelve the server.
129
+
130
+
As of ``microversion 2.91``, you can unshelve to a specific compute node if you have PROJECT_ADMIN privileges.
131
+
This microversion also gives the ability to pin a server to an availability_zone and to unpin a server
132
+
from any availability_zone.
133
+
134
+
When a server is pinned to an availability_zone, the server move operations will keep the server in that
135
+
availability_zone. However, when the server is not pinned to any availability_zone, the move operations can
136
+
move the server to nodes in different availability_zones.
137
+
138
+
The behavior according to unshelve parameters will follow the below table.
0 commit comments