Description of problem: ======================= "ceph rgw realm bootstrap" command generates error "Error EINVAL:" when executed multiple times. Note - realm, zone and zonegroup gets created successfully, just the command fails. Version-Release number of selected component (if applicable): ========================================================= 19.1.0-18.el9cp How reproducible: =================== Always Steps to Reproduce: 1. Deploy a ceph cluster where NO rgw service is running 2. Create a new rgw service using the RGW module's bootstrap command. 3. Run the RGW module's bootstrap command again to create a new realm, zone and zonegroup. Please check https://bugzilla.redhat.com/show_bug.cgi?id=2249537#c7 and https://bugzilla.redhat.com/show_bug.cgi?id=2249537#c8 for more details. Actual results: =================== Bootstrap command passes on running for the first time - # ceph rgw realm bootstrap -i /var/lib/ceph/mon/new_rgw.yaml --start-radosgw Realm(s) created correctly. Please, use 'ceph rgw realm tokens' to get the token. On running the bootstrap command second time/multiple times, it fails - # ceph rgw realm bootstrap -i /var/lib/ceph/rgw/new_rgw2.yaml --start-radosgw Error EINVAL: Expected results: =================== There should be no command failures. Additional info: =================== Issue observed on RHCS and IBM ceph storage clusters as well.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:10216