Bug 2109224

Summary: [RFE] deploy custom RGW realm/zone using orchestrator and a specification file
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Matthew Secaur <msecaur>
Component: CephadmAssignee: Redouane Kachach Elhichou <rkachach>
Status: CLOSED ERRATA QA Contact: Vinayak Papnoi <vpapnoi>
Severity: low Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.1CC: adking, akraj, cephqe-warriors, gjose, jeremy.coulombe, lithomas, rkachach, tserlin
Target Milestone: ---Keywords: FutureFeature
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-17.el9cp Doc Type: Enhancement
Doc Text:
.Users can now create Ceph Object Gateway realm,zone, and zonegroup using `ceph rgw realm bootstrap -i rgw_spec.yaml` command With this release, to streamline the process of setting up Ceph Object Gateway on a {storage-product} cluster, users can create a Ceph Object Gateway realm, zone, and zonegroup using `ceph rgw realm bootstrap -i rgw_spec.yaml` command. The specification file should be modeled similar to the one that is used to deploy Ceph Object Gateway daemons using the orchestrator. The command then creates the realm,zone, and, zonegroup, and passes the specification on to the orchestrator, which then deploys the Ceph Object Gateway daemons. .Example ---- rgw_realm: myrealm rgw_zonegroup: myzonegroup rgw_zone: myzone placement: hosts: - rgw-host1 - rgw-host2 spec: rgw_frontend_port: 5500 ----
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-15 09:15:33 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: 2192813    

Description Matthew Secaur 2022-07-20 17:17:44 UTC
Description of problem:
Unable to create a custom realm/zonegroup/zone using a specification file passed to Orchestrator. The documentation [1] indicates that the realm/zonegroup/zone must be create manually in advance, and then Orchestrator can be used to add hosts/services.

[1] https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/5/html/operations_guide/management-of-ceph-object-gateway-services-using-the-ceph-orchestrator#deploying-the-ceph-object-gateway-using-the-service-specification_ops 

Version-Release number of selected component (if applicable):
Red Had Ceph Storage 5.1

How reproducible:
Deploy Ceph 5.1 and follow the documentation, where it indicates that the custom realm/zoneset/zone configuration must be performed manually.

Desire Result:
The customer should be able to put custom realm information into radosgw.yaml and have the realm, zoneset, and zone be created if they do not already exist.

Comment 1 RHEL Program Management 2022-07-20 17:17:52 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 Redouane Kachach Elhichou 2022-12-19 12:38:23 UTC
This upstream PR should add support for this RFE.

https://github.com/ceph/ceph/pull/47708

Comment 3 jeremy 2022-12-19 13:07:02 UTC
That's awesome thanks ! :)

Comment 15 errata-xmlrpc 2023-06-15 09:15:33 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 (Moderate: Red Hat Ceph Storage 6.1 security and bug fix update), 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/RHSA-2023:3623