Do not attempt volume swap when guest is stopped/suspended

A swap on a stopped or suspended instance will fail silently. Remove
these allowed instance states on swap_volume:

suspended, stopped, soft_deleted

Change-Id: Iff17f7cee7a56037b35d1a361a0b3279d0a885d6
Closes-Bug: #1673090
This commit is contained in:
Mark Giles
2017-07-24 12:46:21 -04:00
committed by Chris Dent
parent d36dcd52c2
commit b40d949b31
4 changed files with 16 additions and 2 deletions
+3
View File
@@ -137,6 +137,9 @@ Update a volume attachment
Update a volume attachment.
.. note:: This action only valid when the server is in ACTIVE, PAUSED and RESIZED state,
or a conflict(409) error will be returned.
Normal response codes: 202
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)