Skip to content

doc: fix syntax for removing zone from zonegroup - #65862

Merged
anthonyeleven merged 1 commit into
ceph:mainfrom
saschalucas:zonegroup_remove
Jan 31, 2026
Merged

anthonyeleven merged 1 commit into
ceph:mainfrom
saschalucas:zonegroup_remove

Conversation

@saschalucas

Copy link
Copy Markdown
Contributor

According to

{ "zonegroup remove", OPT::ZONEGROUP_REMOVE },
zonegroup remove seems to be the correct syntax to remove a zone from a zonegroup (also works for me).

@anthonyeleven anthonyeleven left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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" },
};

Comment thread doc/man/8/radosgw-admin.rst Outdated
Comment on lines 243 to 244
:command:`zonegroup remove`
Remove a zone group info.

@bluikko bluikko Oct 9, 2025 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out. Fixed as suggested. PTAL.

@saschalucas

Copy link
Copy Markdown
Contributor Author

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" },
};

Interesting. Didn't know this aliases. Just got possible commands by running:

# radosgw-admin zonegroup
ERROR: Unknown command
Expected one of the following:
  add
  create
  default
  delete
  get
  list
  modify
  placement
  remove
  rename
  set

@anthonyeleven

Copy link
Copy Markdown
Contributor

jenkins test make check

@anthonyeleven

Copy link
Copy Markdown
Contributor

jenkins test windows

@saschalucas

Copy link
Copy Markdown
Contributor Author

friendly ping

@anthonyeleven

Copy link
Copy Markdown
Contributor

This touches code so the merge criteria are a bit more strict than for pure docs updates.

@shraddhaag

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jan 31, 2026
@bluikko bluikko removed the stale label Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants