docs/COLO-FT.txt: Drop deprecated 'props' from object-add in COLO docs
PATCH 1/1 docs/COLO-FT.txt: Drop deprecated 'props' from object-add in COLO docs
From: "Rao, Lei" <[email protected]>
With the removal of deprecated 'props' from object-add in the commit of "50243407457a9fb0ed17b9a9ba9fc9aee09495b1", we also should update COLO's documents.
--- docs/COLO-FT.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
docs/COLO-FT.txt +8 -8
@@ -289,11 +289,11 @@ Wait until disk is synced, then: {'execute': 'human-monitor-command', 'arguments':{ 'command-line': 'drive_add -n buddy driver=replication,mode=primary,file.driver=nbd,file.host=127.0.0.2,file.port=9999,file.export=parent0,node-name=replication0'}} {'execute': 'x-blockdev-change', 'arguments':{ 'parent': 'colo-disk0', 'node': 'replication0' } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', 'id': 'm0', 'props': { 'netdev': 'hn0', 'queue': 'tx', 'outdev': 'mirror0' } } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire0', 'props': { 'netdev': 'hn0', 'queue': 'rx', 'indev': 'compare_out' } } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire1', 'props': { 'netdev': 'hn0', 'queue': 'rx', 'outdev': 'compare0' } } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', 'id': 'm0', 'netdev': 'hn0', 'queue': 'tx', 'outdev': 'mirror0' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire0', 'netdev': 'hn0', 'queue': 'rx', 'indev': 'compare_out' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire1', 'netdev': 'hn0', 'queue': 'rx', 'outdev': 'compare0' } } {'execute': 'object-add', 'arguments':{ 'qom-type': 'iothread', 'id': 'iothread1' } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', 'id': 'comp0', 'props': { 'primary_in': 'compare0-0', 'secondary_in': 'compare1', 'outdev': 'compare_out0', 'iothread': 'iothread1' } } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', 'id': 'comp0', 'primary_in': 'compare0-0', 'secondary_in': 'compare1', 'outdev': 'compare_out0', 'iothread': 'iothread1' } } {'execute': 'migrate-set-capabilities', 'arguments':{ 'capabilities': [ {'capability': 'x-colo', 'state': true } ] } } {'execute': 'migrate', 'arguments':{ 'uri': 'tcp:127.0.0.2:9998' } }
@@ -318,11 +318,11 @@ Wait until disk is synced, then: {'execute': 'human-monitor-command', 'arguments':{ 'command-line': 'drive_add -n buddy driver=replication,mode=primary,file.driver=nbd,file.host=127.0.0.1,file.port=9999,file.export=parent0,node-name=replication0'}} {'execute': 'x-blockdev-change', 'arguments':{ 'parent': 'colo-disk0', 'node': 'replication0' } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', 'id': 'm0', 'props': { 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'tx', 'outdev': 'mirror0' } } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire0', 'props': { 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'indev': 'compare_out' } } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire1', 'props': { 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'outdev': 'compare0' } } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', 'id': 'm0', 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'tx', 'outdev': 'mirror0' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire0', 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'indev': 'compare_out' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id': 'redire1', 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'outdev': 'compare0' } } {'execute': 'object-add', 'arguments':{ 'qom-type': 'iothread', 'id': 'iothread1' } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', 'id': 'comp0', 'props': { 'primary_in': 'compare0-0', 'secondary_in': 'compare1', 'outdev': 'compare_out0', 'iothread': 'iothread1' } } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', 'id': 'comp0', 'primary_in': 'compare0-0', 'secondary_in': 'compare1', 'outdev': 'compare_out0', 'iothread': 'iothread1' } } {'execute': 'migrate-set-capabilities', 'arguments':{ 'capabilities': [ {'capability': 'x-colo', 'state': true } ] } } {'execute': 'migrate', 'arguments':{ 'uri': 'tcp:127.0.0.1:9998' } }
Signature · 1 line
1.8.3.1
Quoted 13 lines
-----Original Message-----
From: Rao, Lei <[email protected]>
Sent: Thursday, November 18, 2021 12:17 PM
To: Zhang, Chen <[email protected]>; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Rao, Lei <[email protected]>
Subject: [PATCH]docs/COLO-FT.txt: Drop deprecated 'props' from object- add in COLO docs
Quoted 7 lines
From: "Rao, Lei" <[email protected]>
With the removal of deprecated 'props' from object-add in the commit of "
50243407457a9fb0ed17b9a9ba9fc9aee09495b1", we also should update COLO's documents.Signed-off-by Lei Rao <[email protected]>
Looks good to me.
Quoted 82 lines
--- docs/COLO-FT.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)docs/COLO-FT.txt index 8d6d53a..fd5ffcc renamed from docs/COLO-FT.txt +0
-0100644
docs/COLO-FT.txt +0
-0@@ -289,11 +289,11 @@ Wait until disk is synced, then: {'execute': 'human-monitor-command', 'arguments':{ 'command-line':'
drive_add-n buddy driver=replication,mode=primary,file.driver=nbd,file.host=127.0.0.2,file.port =9999,file.export=parent0,node-name=replication0'}}
{'execute': 'x-blockdev-change', 'arguments':{ 'parent': 'colo-disk0', 'node':
'replication0' } }-{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', 'id': 'm0', 'props': { 'netdev': 'hn0', 'queue': 'tx', 'outdev': 'mirror0' } } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id':
'redire0', 'props': { 'netdev': 'hn0', 'queue': 'rx', 'indev': 'compare_out' } } } -{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id':
'redire1', 'props': { 'netdev': 'hn0', 'queue': 'rx', 'outdev': 'compare0' } } }docs/COLO-FT.txt +8
-0+{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', +'id': 'm0', 'netdev': 'hn0', 'queue': 'tx', 'outdev': 'mirror0' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': +'filter-redirector', 'id': 'redire0', 'netdev': 'hn0', 'queue': 'rx', +'indev': 'compare_out' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': +'filter-redirector', 'id': 'redire1', 'netdev': 'hn0', 'queue': 'rx', +'outdev': 'compare0' } } {'execute': 'object-add', 'arguments':{ 'qom-type': 'iothread', 'id':'iothread1' } }
-{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', 'id':
'comp0', 'props': { 'primary_in': 'compare0-0', 'secondary_in': 'compare1', 'outdev': 'compare_out0', 'iothread': 'iothread1' } } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', +'id': 'comp0', 'primary_in': 'compare0-0', 'secondary_in': 'compare1', +'outdev': 'compare_out0', 'iothread': 'iothread1' } }{'execute': 'migrate-set-capabilities', 'arguments':{ 'capabilities': [ {'capability':
'x-colo', 'state': true } ] } }
{'execute': 'migrate', 'arguments':{ 'uri': 'tcp:127.0.0.2:9998' } } @@ -318,11
+318,11 @@ Wait until disk is synced, then:
{'execute': 'human-monitor-command', 'arguments':{ 'command-line':
'drive_add-n buddy driver=replication,mode=primary,file.driver=nbd,file.host=127.0.0.1,file.port =9999,file.export=parent0,node-name=replication0'}}
{'execute': 'x-blockdev-change', 'arguments':{ 'parent': 'colo-disk0', 'node':
'replication0' } }-{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', 'id': 'm0', 'props': { 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'tx', 'outdev': 'mirror0' } } }
-{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id':
'redire0', 'props': { 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'indev': 'compare_out' } } }
-{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-redirector', 'id':
'redire1', 'props': { 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'outdev': 'compare0' } } }docs/COLO-FT.txt +9
-0+{'execute': 'object-add', 'arguments':{ 'qom-type': 'filter-mirror', +'id': 'm0', 'insert': 'before', 'position': 'id=rew0', 'netdev': 'hn0', +'queue': 'tx', 'outdev': 'mirror0' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': +'filter-redirector', 'id': 'redire0', 'insert': 'before', 'position': +'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'indev': 'compare_out' } } +{'execute': 'object-add', 'arguments':{ 'qom-type': +'filter-redirector', 'id': 'redire1', 'insert': 'before', 'position': +'id=rew0', 'netdev': 'hn0', 'queue': 'rx', 'outdev': 'compare0' } } {'execute': 'object-add', 'arguments':{ 'qom-type': 'iothread', 'id':'iothread1' } }
-{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', 'id':
'comp0', 'props': { 'primary_in': 'compare0-0', 'secondary_in': 'compare1', 'outdev': 'compare_out0', 'iothread': 'iothread1' } } } +{'execute': 'object-add', 'arguments':{ 'qom-type': 'colo-compare', +'id': 'comp0', 'primary_in': 'compare0-0', 'secondary_in': 'compare1', +'outdev': 'compare_out0', 'iothread': 'iothread1' } }{'execute': 'migrate-set-capabilities', 'arguments':{ 'capabilities': [ {'capability':
'x-colo', 'state': true } ] } }
{'execute': 'migrate', 'arguments':{ 'uri': 'tcp:127.0.0.1:9998' } }
--
1.8.3.1
Quoted 5 lines · Lei
From: "Rao, Lei" <[email protected]>
With the removal of deprecated 'props' from object-add in the commit of "
50243407457a9fb0ed17b9a9ba9fc9aee09495b1", we also should update COLO's documents.
We should've done this right when we deprecated it. Not your fault, and better late than never.
Recommend to quote commits like
in commit 5024340745 "qapi/qom: Drop deprecated 'props' from object-add" (v6.0.0)
I have
[alias]
whatis = "!f() { git --no-pager show -s --pretty=\"tformat:%h \"%s\" (`git dc $1 | sed 's/~.*//;s/%/%%/g'`, %cd)\" --date=short $1; }; f"in my ~/.gitconfig, so I can run
$ git whatis 50243407457a9fb0ed17b9a9ba9fc9aee09495b1
5024340745 qapi/qom: Drop deprecated 'props' from object-add (v6.0.0-rc0, 2021-03-19)Quoted 1 line
Signed-off-by Lei Rao <[email protected]>
Same issue in docs/system/authz.rst, docs/throttle.txt, and docs/tools/qemu-nbd.rst. Care to fix it there as well?
Also...
docs/COLO-FT.txt Wait until disk is synced, then: · line 291
Quoted 12 lines
--- docs/COLO-FT.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)docs/COLO-FT.txt +0
-0@@ -289,11 +289,11 @@ Wait until disk is synced, then: {'execute': 'human-monitor-command', 'arguments':{ 'command-line': 'drive_add -n buddy driver=replication,mode=primary,file.driver=nbd,file.host=127.0.0.2,file.port=9999,file.export=parent0,node-name=replication0'}} {'execute': 'x-blockdev-change', 'arguments':{ 'parent': 'colo-disk0', 'node': 'replication0' } }
... I'd like us to use double quotes in examples, not single quotes. QMP supports single quotes as an extension over JSON. Best to avoid it. Separate patch, of course.
Same in docs/block-replication.txt.
[...]
Rao, Lei
Reviewed-by Markus ArmbrusterOK,all files you mentioned will be modified in the next patch.
Thanks,
Lei.
-----Original Message-----
From: Markus Armbruster <[email protected]>
Sent: Thursday, November 18, 2021 2:50 PM
To: Rao, Lei <[email protected]>
Cc: Zhang, Chen <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] docs/COLO-FT.txt: Drop deprecated 'props' from object-add in COLO docs
Quoted 5 lines · Lei
From: "Rao, Lei" <[email protected]>
With the removal of deprecated 'props' from object-add in the commit of "
50243407457a9fb0ed17b9a9ba9fc9aee09495b1", we also should update COLO's documents.
We should've done this right when we deprecated it. Not your fault, and better late than never.
Recommend to quote commits like
in commit 5024340745 "qapi/qom: Drop deprecated 'props' from object-add" (v6.0.0)
I have
[alias]
whatis = "!f() { git --no-pager show -s --pretty=\"tformat:%h \"%s\" (`git dc $1 | sed 's/~.*//;s/%/%%/g'`, %cd)\" --date=short $1; }; f"in my ~/.gitconfig, so I can run
$ git whatis 50243407457a9fb0ed17b9a9ba9fc9aee09495b1
5024340745 qapi/qom: Drop deprecated 'props' from object-add (v6.0.0-rc0, 2021-03-19)Quoted 1 line
Signed-off-by Lei Rao <[email protected]>
Same issue in docs/system/authz.rst, docs/throttle.txt, and docs/tools/qemu-nbd.rst. Care to fix it there as well?
Also...
Quoted 10 lines
--- docs/COLO-FT.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)docs/COLO-FT.txt index renamed from docs/COLO-FT.txt +0
-08d6d53a..fd5ffcc 100644
docs/COLO-FT.txt +0
-0@@ -289,11 +289,11 @@ Wait until disk is synced, then: {'execute': 'human-monitor-command', 'arguments':{ 'command-line':
Quoted 6 lines
'
drive_add-n buddy driver=replication,mode=primary,file.driver=nbd,file.host=127.0.0.2,fi le.port=9999,file.export=parent0,node-name=replication0'}}
{'execute': 'x-blockdev-change', 'arguments':{ 'parent':
'colo-disk0', 'node': 'replication0' } }
... I'd like us to use double quotes in examples, not single quotes. QMP supports single quotes as an extension over JSON. Best to avoid it. Separate patch, of course.
Same in docs/block-replication.txt.
[...]