Skip to contentSkip to conversation

qapi/migration.json: fix the description for "query-migrate" output

PATCH In review [email protected] 2 participants 2 messages Aug 21, 2018 – Aug 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qapi/migration.json: fix the description for "query-migrate" output

From: jialina01 <[email protected]>

In the return for command "query-migrate", time information like "total-time", "setup-time", "downtime", is not included in ram json-object.

So fix the description in migration.json by unpacking those information from ram json-object.

---
 qapi/migration.json | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)
qapi/migration.json +12 -13
index 186e8a7303..4040728439 100644
@@ -212,13 +212,13 @@
 # -> { "execute": "query-migrate" }
 # <- { "return": {
 #         "status": "completed",
+#         "total-time":12345,
+#         "setup-time":12345,
+#         "downtime":12345,
 #         "ram":{
 #           "transferred":123,
 #           "remaining":123,
 #           "total":246,
-#           "total-time":12345,
-#           "setup-time":12345,
-#           "downtime":12345,
 #           "duplicate":123,
 #           "normal":123,
 #           "normal-bytes":123456,
@@ -238,13 +238,13 @@
 # <- {
 #       "return":{
 #          "status":"active",
+#          "total-time":12345,
+#          "setup-time":12345,
+#          "expected-downtime":12345,
 #          "ram":{
 #             "transferred":123,
 #             "remaining":123,
 #             "total":246,
-#             "total-time":12345,
-#             "setup-time":12345,
-#             "expected-downtime":12345,
 #             "duplicate":123,
 #             "normal":123,
 #             "normal-bytes":123456,
@@ -259,13 +259,13 @@
 # <- {
 #       "return":{
 #          "status":"active",
+#          "total-time":12345,
+#          "setup-time":12345,
+#          "expected-downtime":12345,
 #          "ram":{
 #             "total":1057024,
 #             "remaining":1053304,
 #             "transferred":3720,
-#             "total-time":12345,
-#             "setup-time":12345,
-#             "expected-downtime":12345,
 #             "duplicate":123,
 #             "normal":123,
 #             "normal-bytes":123456,
@@ -285,14 +285,13 @@
 # <- {
 #       "return":{
 #          "status":"active",
-#          "capabilities" : [ { "capability": "xbzrle", "state" : true } ],
+#          "total-time":12345,
+#          "setup-time":12345,
+#          "expected-downtime":12345,
 #          "ram":{
 #             "total":1057024,
 #             "remaining":1053304,
 #             "transferred":3720,
-#             "total-time":12345,
-#             "setup-time":12345,
-#             "expected-downtime":12345,
 #             "duplicate":10,
 #             "normal":3333,
 #             "normal-bytes":3412992,
Signature · 1 line
2.13.2.windows.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · <[email protected]> wrote:

From: jialina01 <[email protected]>

In the return for command "query-migrate", time information like "total-time", "setup-time", "downtime", is not included in ram json-object.

So fix the description in migration.json by unpacking those information from ram json-object.

queued