Skip to contentSkip to conversation

doc: add "setup" to list of migration states

PATCH Applied [email protected] 3 participants 3 messages May 16, 2014 – May 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: add "setup" to list of migration states

From: Peter Feiner <[email protected]>

On a slow VM (e.g., nested), you see the "setup" state when you query the migration status.

---
 qapi-schema.json |    2 +-
 qmp-commands.hx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
qapi-schema.json +1 -1
index 36cb964..f4ffede 100644
@@ -691,7 +691,7 @@
 # Information about current migration process.
 #
 # @status: #optional string describing the current migration status.
-#          As of 0.14.0 this can be 'active', 'completed', 'failed' or
+#          As of 0.14.0 this can be 'setup', 'active', 'completed', 'failed' or
 #          'cancelled'. If this field is not returned, no migration process
 #          has been initiated
 #
qmp-commands.hx +1 -1
index cae890e..408ae9c 100644
@@ -2937,7 +2937,7 @@ block migration status.
 The main json-object contains the following:
 
 - "status": migration status (json-string)
-     - Possible values: "active", "completed", "failed", "cancelled"
+     - Possible values: "setup", "active", "completed", "failed", "cancelled"
 - "total-time": total amount of ms since migration started.  If
                 migration has ended, it returns the total migration
                 time (json-int)
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · On 05/16/2014 08:40 AM, [email protected] wrote:

From: Peter Feiner <[email protected]>

On a slow VM (e.g., nested), you see the "setup" state when you query the migration status.

---
 qapi-schema.json |    2 +-
 qmp-commands.hx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

qapi-schema.json line 694

Quoted 11 lines
qapi-schema.json +1 -1
index 36cb964..f4ffede 100644
@@ -691,7 +691,7 @@
 # Information about current migration process.
 #
 # @status: #optional string describing the current migration status.
-#          As of 0.14.0 this can be 'active', 'completed', 'failed' or
+#          As of 0.14.0 this can be 'setup', 'active', 'completed', 'failed' or

You know, it would be even nicer to convert from an open-coded 'str' to a finite enum of valid strings; it would be self-documenting, and make it that much easier to guarantee the code doesn't add new states without documenting when they were added.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#2 lore raw
In reply to [email protected]
Quoted 6 lines · On Fri, 16 May 2014 10:40:47 -0400 [email protected] wrote:

From: Peter Feiner <[email protected]>

On a slow VM (e.g., nested), you see the "setup" state when you query the migration status.

Applied to the qmp branch, thanks.

Quoted 31 lines
---
 qapi-schema.json |    2 +-
 qmp-commands.hx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
qapi-schema.json +1 -1
index 36cb964..f4ffede 100644
@@ -691,7 +691,7 @@
 # Information about current migration process.
 #
 # @status: #optional string describing the current migration status.
-#          As of 0.14.0 this can be 'active', 'completed', 'failed' or
+#          As of 0.14.0 this can be 'setup', 'active', 'completed', 'failed' or
 #          'cancelled'. If this field is not returned, no migration process
 #          has been initiated
 #
qmp-commands.hx +1 -1
index cae890e..408ae9c 100644
@@ -2937,7 +2937,7 @@ block migration status.
 The main json-object contains the following:
 
 - "status": migration status (json-string)
-     - Possible values: "active", "completed", "failed", "cancelled"
+     - Possible values: "setup", "active", "completed", "failed", "cancelled"
 - "total-time": total amount of ms since migration started.  If
                 migration has ended, it returns the total migration
                 time (json-int)