Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2135212

Summary: [Docs]: Fix multisite ansible configuration in RHCS4 doc
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ameena Suhani S H <amsyedha>
Component: DocumentationAssignee: Ranjini M N <rmandyam>
Documentation sub component: Install Guide QA Contact: Ameena Suhani S H <amsyedha>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: unspecified CC: hmaheswa, mkasturi, rmandyam
Version: 4.3   
Target Milestone: ---   
Target Release: Backlog   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-20 05:18:04 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:

Description Ameena Suhani S H 2022-10-17 04:44:20 UTC
Describe the issue:
While configuring multisite with multiple realm the endpoints needs to be added for each instance on secondary otherwise the ansible site/site-container fails with below error

TASK [ceph-validate : fail if endpoint is not set] **********************************
.
.
msg: endpoint has not been set by the user


Actual: 

rgw_instances:
  - instance_name: 'rgw0'
    rgw_multisite: true
    rgw_zonemaster: false
    rgw_zonesecondary: true
    rgw_zonegroupmaster: false
    rgw_realm: local-realm-2
    rgw_zonegroup: local-zone-group-2
    rgw_zone: local-zone-2
    rgw_zone_user: local-user-2
    rgw_zone_user_display_name: "local-user-2"
    system_access_key: P9Eb6S8XNyo4dtZZUUMx
    system_secret_key: qqHCUtfdNnpHq3PZRHW5un9l0bEBM812Uhow0XfA
    radosgw_address: "{{ _radosgw_address }}"
    radosgw_frontend_port: 8080
  - instance_name: 'rgw1'
    rgw_multisite: true
    rgw_zonemaster: false
    rgw_zonesecondary: true
    rgw_zonegroupmaster: false
    rgw_zone: versailles
    rgw_zonegroup: idf
    rgw_realm: france
    rgw_zone_user: jacques.chirac
    rgw_zone_user_display_name: "Jacques Chirac"
    system_access_key: P9Eb6S8XNyo4dtZZUUMy
    system_secret_key: qqHCUtfdNnpHq3PZRHW5un9l0bEBM812Uhow0XfB
    radosgw_address: "{{ _radosgw_address }}"
    radosgw_frontend_port: 8081
    endpoint: http://rgw-primary:8081


Expected:
rgw_instances:
  - instance_name: 'rgw0'
    rgw_multisite: true
    rgw_zonemaster: false
    rgw_zonesecondary: true
    rgw_zonegroupmaster: false
    rgw_realm: local-realm-2
    rgw_zonegroup: local-zone-group-2
    rgw_zone: local-zone-2
    rgw_zone_user: local-user-2
    rgw_zone_user_display_name: "local-user-2"
    system_access_key: P9Eb6S8XNyo4dtZZUUMx
    system_secret_key: qqHCUtfdNnpHq3PZRHW5un9l0bEBM812Uhow0XfA
    radosgw_address: "{{ _radosgw_address }}"
    radosgw_frontend_port: 8080
    endpoint: http://rgw-primary:8080                      <--------------this needs to be added for each instance
  - instance_name: 'rgw1'
    rgw_multisite: true
    rgw_zonemaster: false
    rgw_zonesecondary: true
    rgw_zonegroupmaster: false
    rgw_zone: versailles
    rgw_zonegroup: idf
    rgw_realm: france
    rgw_zone_user: jacques.chirac
    rgw_zone_user_display_name: "Jacques Chirac"
    system_access_key: P9Eb6S8XNyo4dtZZUUMy
    system_secret_key: qqHCUtfdNnpHq3PZRHW5un9l0bEBM812Uhow0XfB
    radosgw_address: "{{ _radosgw_address }}"
    radosgw_frontend_port: 8081
    endpoint: http://rgw-primary:8081

Document URL: https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/html-single/installation_guide/index#configuring-a-multisite-ceph-object-gateway-with-multiple-realms_install

Chapter/Section Number and Title: 5.7.3. Configuring a multisite Ceph Object Gateway with multiple realms

Product Version:
4