Bug 2310444

Summary: RGW module bootstrap command generates error on running multiple times
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sayalee <saraut>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Sayalee <saraut>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0CC: adking, akraj, cephqe-warriors, tserlin
Target Milestone: ---   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.1.1-74.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 09:09:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2317218    

Description Sayalee 2024-09-06 15:28:57 UTC
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.

Comment 7 errata-xmlrpc 2024-11-25 09:09:05 UTC
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