Repository navigation
doc: fix syntax for removing zone from zonegroup - #65862
Conversation
anthonyeleven
left a comment
There was a problem hiding this comment.
LGTM. @cbodley @mattbenjamin ?
cbodley
left a comment
There was a problem hiding this comment.
i think radosgw-admin treats 'rm' as an alias for 'remove', so would expect both to work:
static SimpleCmd::Aliases cmd_aliases = {
{ "delete", "del" },
{ "remove", "rm" },
{ "rename", "mv" },
};| :command:`zonegroup remove` | ||
| Remove a zone group info. |
There was a problem hiding this comment.
This is incorrect.
A little bit later there is already zonegroup remove:
https://github.com/ceph/ceph/blob/09b467e970cad61ea4f9626909d99c9fb050c0be/doc/man/8/radosgw-admin.rst?plain=1#L255-L256
This later definition has the correct meaning according to source:
https://github.com/ceph/ceph/blob/09b467e970cad61ea4f9626909d99c9fb050c0be/src/rgw/radosgw-admin/radosgw-admin.cc#L248
This line under discussion should be zonegroup delete according to the meaning listed in the source:
https://github.com/ceph/ceph/blob/09b467e970cad61ea4f9626909d99c9fb050c0be/src/rgw/radosgw-admin/radosgw-admin.cc#L244
This line should be:
:command:`zonegroup delete`Edit: and apologies for being blunt, wanted to get this out quickly between other ongoing things because I saw approvals already.
There was a problem hiding this comment.
Thanks for pointing out. Fixed as suggested. PTAL.
According to [1], `zonegroup remove` seems to be the correct syntax to remove a zone from a zonegroup (also works for me). [1] https://github.com/ceph/ceph/blob/aea1dd81cd6e048a5f535fb0f2b9acc2d0c794b1/src/rgw/radosgw-admin/radosgw-admin.cc#L1034 Signed-off-by: Sascha Lucas <[email protected]>
09b467e to
8c6e14f
Compare
Interesting. Didn't know this aliases. Just got possible commands by running: |
|
jenkins test make check |
|
jenkins test windows |
|
friendly ping |
|
This touches code so the merge criteria are a bit more strict than for pure docs updates. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
According to
ceph/src/rgw/radosgw-admin/radosgw-admin.cc
Line 1034 in aea1dd8
zonegroup removeseems to be the correct syntax to remove a zone from a zonegroup (also works for me).