Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle RGW hosts placement during adoption of older clusters with multiple subnets #7633

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

fultonj
Copy link
Contributor

@fultonj fultonj commented Jan 16, 2025

This PR contains the following commits which patch TASK "Update the placement of radosgw hosts" in the playbook cephadm-adopt.yml.

  • Handle adoption when radosgw_address_block is comma delimited list
  • Handle radosgw hosts placement with non-default cluster name

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2339149

@fultonj
Copy link
Contributor Author

fultonj commented Jan 16, 2025

Please do not merge yet. Still testing.

In cephadm-adopt.yml TASK "Update the placement of radosgw hosts"
passes module ceph_orch_apply embedded YAML via a block scalar.
This YAML creates a Ceph spec of service_type RGW. The networks
key of this spec supports either a list or a string. Without this
patch, the networks key of the spec will only contain a string.
With this patch a string is still set for the networks key, but
if Ansible var radosgw_address_block contains commas, then var
radosgw_address_block is split by those commas into a list and
the networks key of the spec will be set to a list.

Closes: https://issues.redhat.com/browse/RHCEPH-10418

Signed-off-by: John Fulton <[email protected]>
@fultonj fultonj force-pushed the adopt_rgw_diff_name branch 2 times, most recently from 915b33c to 9b9589c Compare February 5, 2025 19:12
In cephadm-adopt.yml TASK "Update the placement of radosgw hosts"
does not handle when Ansible var cluster is something other than
"ceph", unless this patch is used.

Update module ceph_orch_apply to support optional cluster
parameter using the same style as in module ceph_config.
The command is only extended to inclue the new keyring
and config options if cluster name is not ceph.

This patch is necessary to migrate older clusters which were
deployed when custom names were supported.

Closes: https://issues.redhat.com/browse/RHCEPH-10442

Signed-off-by: John Fulton <[email protected]>
@fultonj fultonj force-pushed the adopt_rgw_diff_name branch from 9b9589c to f521b64 Compare February 5, 2025 19:58
@fultonj
Copy link
Contributor Author

fultonj commented Feb 6, 2025

This patch has passed testing and is ready to merge.

Copy link
Collaborator

@asm0deuz asm0deuz left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants