Skip to contentSkip to conversation

Add 'setup' phase to docs for query-migrate QMP command

PATCH In review Alex Bligh 5 participants 5 messages Dec 12, 2014 – Feb 11, 2015

lore
Share & tools
lore

Alex Bligh

author
#0 lore raw

PATCH 1/1 Add 'setup' phase to docs for query-migrate QMP command

The QMP command 'query-migrate' returns the state 'setup' during the setup phase. This patch documents it.

---
 qmp-commands.hx | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
qmp-commands.hx +8 -3
index 3348782..e9cff2c 100644
@@ -3092,7 +3092,12 @@ Examples:
 -> { "execute": "query-migrate" }
 <- { "return": { "status": "failed" } }
 
-4. Migration is being performed and is not a block migration:
+4. Migration has been requested but is still in setup phase
+
+-> { "execute": "query-migrate" }
+<- { "return": { "status": "setup" } }
+
+5. Migration is being performed and is not a block migration:
 
 -> { "execute": "query-migrate" }
 <- {
@@ -3113,7 +3118,7 @@ Examples:
       }
    }
 
-5. Migration is being performed and is a block migration:
+6. Migration is being performed and is a block migration:
 
 -> { "execute": "query-migrate" }
 <- {
@@ -3139,7 +3144,7 @@ Examples:
       }
    }
 
-6. Migration is being performed and XBZRLE is active:
+7. Migration is being performed and XBZRLE is active:
 
 -> { "execute": "query-migrate" }
 <- {
Signature · 1 line
1.9.1
#1 lore raw

Copying migration maintainers.

Quoted 44 lines · Alex Bligh

The QMP command 'query-migrate' returns the state 'setup' during the setup phase. This patch documents it.

---
 qmp-commands.hx | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
qmp-commands.hx +8 -3
index 3348782..e9cff2c 100644
@@ -3092,7 +3092,12 @@ Examples:
 -> { "execute": "query-migrate" }
 <- { "return": { "status": "failed" } }
 
-4. Migration is being performed and is not a block migration:
+4. Migration has been requested but is still in setup phase
+
+-> { "execute": "query-migrate" }
+<- { "return": { "status": "setup" } }
+
+5. Migration is being performed and is not a block migration:
 
 -> { "execute": "query-migrate" }
 <- {
@@ -3113,7 +3118,7 @@ Examples:
       }
    }
 
-5. Migration is being performed and is a block migration:
+6. Migration is being performed and is a block migration:
 
 -> { "execute": "query-migrate" }
 <- {
@@ -3139,7 +3144,7 @@ Examples:
       }
    }
 
-6. Migration is being performed and XBZRLE is active:
+7. Migration is being performed and XBZRLE is active:
 
 -> { "execute": "query-migrate" }
 <- {
#2 lore raw
Quoted 1 line · Markus Armbruster

Copying migration maintainers.

Thanks, Eric, pls give this a look too.

Quoted 42 lines
Quoted 39 lines · Alex Bligh

The QMP command 'query-migrate' returns the state 'setup' during the setup phase. This patch documents it.

---
 qmp-commands.hx | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
qmp-commands.hx +7 -2
index 3348782..e9cff2c 100644
@@ -3092,7 +3092,12 @@ Examples:
 -> { "execute": "query-migrate" }
 <- { "return": { "status": "failed" } }
 
-4. Migration is being performed and is not a block migration:
+4. Migration has been requested but is still in setup phase
+
+-> { "execute": "query-migrate" }
+<- { "return": { "status": "setup" } }
+
+5. Migration is being performed and is not a block migration:
 
 -> { "execute": "query-migrate" }
 <- {
@@ -3113,7 +3118,7 @@ Examples:
       }
    }
 
-5. Migration is being performed and is a block migration:
+6. Migration is being performed and is a block migration:
 
 -> { "execute": "query-migrate" }
 <- {
@@ -3139,7 +3144,7 @@ Examples:
       }
    }
 
Quoted 5 lines

qmp-commands.hx Examples: · line 3150

Quoted 5 lines
qmp-commands.hx +1 -1
-6. Migration is being performed and XBZRLE is active:
+7. Migration is being performed and XBZRLE is active:
 
 -> { "execute": "query-migrate" }
 <- {

Amit

Reviewed-by on v1 1/1
#3 lore raw
In reply to Alex Bligh
Quoted 8 lines · Alex Bligh

The QMP command 'query-migrate' returns the state 'setup' during the setup phase. This patch documents it.

---
 qmp-commands.hx | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org