Config option default-pool-size resets the
osd_pool_default_size and rgw service picks
the replication size from osd_pool_default_size.
So ceph osd_pool_default_size should be configured first before enabling rgw so that rgw will be
created with right pool replication sizes.
Call configure ceph logic before enabling rgw.
Configure ceph only on leader unit.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Manual Testing with sunbeam
Contributor's Checklist
Please check that you have:
[x] self-reviewed the code in this PR.
[ ] added code comments, particularly in hard-to-understand areas.
[ ] updated the user documentation with corresponding changes.
[ ] added tests to verify effectiveness of this change.
Config option default-pool-size resets the osd_pool_default_size and rgw service picks the replication size from osd_pool_default_size. So ceph osd_pool_default_size should be configured first before enabling rgw so that rgw will be created with right pool replication sizes.
Call configure ceph logic before enabling rgw. Configure ceph only on leader unit.
Type of change
How Has This Been Tested?
Manual Testing with sunbeam
Contributor's Checklist
Please check that you have: