Skip to contentSkip to conversation

Fix query-migrate documentation in qmp-commands.hx

PATCH Applied Orit Wasserman 4 participants 6 messages Aug 8, 2013 – Aug 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Fix query-migrate documentation in qmp-commands.hx

"ram" is present also when migration completes. expected-downtime, total-time and downtime are no longer part of "ram" data.

---
 qmp-commands.hx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
qmp-commands.hx +10 -10
index 2e59b0d..a22a841 100644
@@ -2626,8 +2626,8 @@ The main json-object contains the following:
 - "expected-downtime": only present while migration is active
                 total amount in ms for downtime that was calculated on
                 the last bitmap round (json-int)
-- "ram": only present if "status" is "active", it is a json-object with the
-  following RAM information:
+- "ram": only present if "status" is "active" or "complete", it is a
+         json-object with the following RAM information:
          - "transferred": amount transferred in bytes (json-int)
          - "remaining": amount remaining to transfer in bytes (json-int)
          - "total": total amount of memory in bytes (json-int)
@@ -2669,12 +2669,12 @@ Examples:
 -> { "execute": "query-migrate" }
 <- { "return": {
         "status": "completed",
+        "total-time":12345,
+        "downtime":12345,
         "ram":{
           "transferred":123,
           "remaining":123,
           "total":246,
-          "total-time":12345,
-          "downtime":12345,
           "duplicate":123,
           "normal":123,
           "normal-bytes":123456
@@ -2693,12 +2693,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "transferred":123,
             "remaining":123,
             "total":246,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2712,12 +2712,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2736,13 +2736,13 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "capabilities" : [ { "capability": "xbzrle", "state" : true } ],
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":10,
             "normal":3333,
             "normal-bytes":3412992
Signature · 1 line
1.8.1.4
Reviewed-by on v2 1/1
#1 lore raw
Quoted 7 lines · Orit Wasserman

"ram" is present also when migration completes. expected-downtime, total-time and downtime are no longer part of "ram" data.

---
 qmp-commands.hx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

Although this points out that Michael's patch that added 'setup-time' in commit ed4fbd1 is missing the corresponding documentation here (my bad for not catching that while reviewing his patch).

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#2 lore raw
Quoted 8 lines · Eric Blake
Quoted 7 lines · Orit Wasserman

"ram" is present also when migration completes. expected-downtime, total-time and downtime are no longer part of "ram" data.

---
  qmp-commands.hx | 20 ++++++++++----------
  1 file changed, 10 insertions(+), 10 deletions(-)
Quoted 6 lines

Although this points out that Michael's patch that added 'setup-time' in commit ed4fbd1 is missing the corresponding documentation here (my bad for not catching that while reviewing his patch).

Ooops. Will get a patch for that into my tree and submit it in my next series.

- Michael

#3 lore raw
In reply to Orit Wasserman
Quoted 4 lines · On Thu, 8 Aug 2013 20:05:48 +0300 Orit Wasserman <[email protected]> wrote:

"ram" is present also when migration completes. expected-downtime, total-time and downtime are no longer part of "ram" data.

Applied to the qmp branch, thanks.

Quoted 80 lines
---
 qmp-commands.hx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
qmp-commands.hx +10 -10
index 2e59b0d..a22a841 100644
@@ -2626,8 +2626,8 @@ The main json-object contains the following:
 - "expected-downtime": only present while migration is active
                 total amount in ms for downtime that was calculated on
                 the last bitmap round (json-int)
-- "ram": only present if "status" is "active", it is a json-object with the
-  following RAM information:
+- "ram": only present if "status" is "active" or "complete", it is a
+         json-object with the following RAM information:
          - "transferred": amount transferred in bytes (json-int)
          - "remaining": amount remaining to transfer in bytes (json-int)
          - "total": total amount of memory in bytes (json-int)
@@ -2669,12 +2669,12 @@ Examples:
 -> { "execute": "query-migrate" }
 <- { "return": {
         "status": "completed",
+        "total-time":12345,
+        "downtime":12345,
         "ram":{
           "transferred":123,
           "remaining":123,
           "total":246,
-          "total-time":12345,
-          "downtime":12345,
           "duplicate":123,
           "normal":123,
           "normal-bytes":123456
@@ -2693,12 +2693,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "transferred":123,
             "remaining":123,
             "total":246,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2712,12 +2712,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2736,13 +2736,13 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "capabilities" : [ { "capability": "xbzrle", "state" : true } ],
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":10,
             "normal":3333,
             "normal-bytes":3412992
#4 lore raw
Quoted 9 lines · On Mon, 12 Aug 2013 10:19:52 -0400 Luiz Capitulino <[email protected]>…
Quoted 4 lines · On Thu, 8 Aug 2013 20:05:48 +0300 Orit Wasserman <[email protected]> wrote:

"ram" is present also when migration completes. expected-downtime, total-time and downtime are no longer part of "ram" data.

Applied to the qmp branch, thanks.

This one missed the deadline for 1.6. I'm my updating my tree for 1.7, but this patch conflicts with 8f3067, which repeated for the setup-time key the mistake this patch is fixing for other keys.

We need a respin for this patch, which should also move setup-time to the main dict. Orit, I can do it myself if you want.

Quoted 82 lines
Quoted 81 lines
---
 qmp-commands.hx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
qmp-commands.hx +10 -10
index 2e59b0d..a22a841 100644
@@ -2626,8 +2626,8 @@ The main json-object contains the following:
 - "expected-downtime": only present while migration is active
                 total amount in ms for downtime that was calculated on
                 the last bitmap round (json-int)
-- "ram": only present if "status" is "active", it is a json-object with the
-  following RAM information:
+- "ram": only present if "status" is "active" or "complete", it is a
+         json-object with the following RAM information:
          - "transferred": amount transferred in bytes (json-int)
          - "remaining": amount remaining to transfer in bytes (json-int)
          - "total": total amount of memory in bytes (json-int)
@@ -2669,12 +2669,12 @@ Examples:
 -> { "execute": "query-migrate" }
 <- { "return": {
         "status": "completed",
+        "total-time":12345,
+        "downtime":12345,
         "ram":{
           "transferred":123,
           "remaining":123,
           "total":246,
-          "total-time":12345,
-          "downtime":12345,
           "duplicate":123,
           "normal":123,
           "normal-bytes":123456
@@ -2693,12 +2693,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "transferred":123,
             "remaining":123,
             "total":246,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2712,12 +2712,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2736,13 +2736,13 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "capabilities" : [ { "capability": "xbzrle", "state" : true } ],
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":10,
             "normal":3333,
             "normal-bytes":3412992
#5 lore raw
Quoted 11 lines · Luiz Capitulino
Quoted 8 lines · On Mon, 12 Aug 2013 10:19:52 -0400 Luiz Capitulino <[email protected]>…
Quoted 4 lines · On Thu, 8 Aug 2013 20:05:48 +0300 Orit Wasserman <[email protected]> wrote:

"ram" is present also when migration completes. expected-downtime, total-time and downtime are no longer part of "ram" data.

Quoted 9 lines
Quoted 1 line

Applied to the qmp branch, thanks.

This one missed the deadline for 1.6. I'm my updating my tree for 1.7, but this patch conflicts with 8f3067, which repeated for the setup-time key the mistake this patch is fixing for other keys.

We need a respin for this patch, which should also move setup-time to the main dict. Orit, I can do it myself if you want.

That will be great,
Thanks,
Orit

Quoted 83 lines
Quoted 82 lines
Quoted 81 lines
---
 qmp-commands.hx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
qmp-commands.hx +10 -10
index 2e59b0d..a22a841 100644
@@ -2626,8 +2626,8 @@ The main json-object contains the following:
 - "expected-downtime": only present while migration is active
                 total amount in ms for downtime that was calculated on
                 the last bitmap round (json-int)
-- "ram": only present if "status" is "active", it is a json-object with the
-  following RAM information:
+- "ram": only present if "status" is "active" or "complete", it is a
+         json-object with the following RAM information:
          - "transferred": amount transferred in bytes (json-int)
          - "remaining": amount remaining to transfer in bytes (json-int)
          - "total": total amount of memory in bytes (json-int)
@@ -2669,12 +2669,12 @@ Examples:
 -> { "execute": "query-migrate" }
 <- { "return": {
         "status": "completed",
+        "total-time":12345,
+        "downtime":12345,
         "ram":{
           "transferred":123,
           "remaining":123,
           "total":246,
-          "total-time":12345,
-          "downtime":12345,
           "duplicate":123,
           "normal":123,
           "normal-bytes":123456
@@ -2693,12 +2693,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "transferred":123,
             "remaining":123,
             "total":246,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2712,12 +2712,12 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":123,
             "normal":123,
             "normal-bytes":123456
@@ -2736,13 +2736,13 @@ Examples:
 <- {
       "return":{
          "status":"active",
+         "total-time":12345,
+         "expected-downtime":12345,
          "capabilities" : [ { "capability": "xbzrle", "state" : true } ],
          "ram":{
             "total":1057024,
             "remaining":1053304,
             "transferred":3720,
-            "total-time":12345,
-            "expected-downtime":12345,
             "duplicate":10,
             "normal":3333,
             "normal-bytes":3412992