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 Jira Cloud for all bug tracking management.

Bug 1851917

Summary: [Ceph-ansible] ansible fails at secondary zone if the multisite is not configured via ceph-ansible
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Mustafa Aydın <maydin>
Component: Ceph-AnsibleAssignee: Dimitri Savineau <dsavinea>
Status: CLOSED NOTABUG QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1CC: aschoen, ceph-eng-bugs, dsavinea, gmeno, nthomas, ykaul
Target Milestone: z2Keywords: Reopened
Target Release: 4.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-29 18:18:53 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 Mustafa Aydın 2020-06-29 12:34:19 UTC
Description of problem:

If the multisite is not configured via ceph-ansible, the ceph-dashboard configure task fails at the secondary zone. 

Version-Release number of selected component (if applicable):
4.1

How reproducible:
Always

Steps to Reproduce:
1. Install ceph cluster w/o multisite configuration
2. Configure multisite with radosgw-admin commands
3. Run the ansible-playbook again

Actual results:
TASK [ceph-dashboard : create radosgw system user] *******************************************************************************************************************************************************************************************
Monday 29 June 2020  08:27:00 -0400 (0:00:01.312)       0:11:26.797 *********** 
FAILED - RETRYING: create radosgw system user (3 retries left).
FAILED - RETRYING: create radosgw system user (2 retries left).
FAILED - RETRYING: create radosgw system user (1 retries left).
fatal: [ceph4osd1 -> ceph4osd1]: FAILED! => changed=true 
  attempts: 3
  cmd:
  - timeout
  - --foreground
  - -s
  - KILL
  - '20'
  - docker
  - exec
  - ceph-mon-ceph4osd1
  - radosgw-admin
  - --cluster
  - ceph
  - user
  - create
  - --uid=ceph-dashboard
  - --display-name=Ceph dashboard
  - --system
  delta: '0:00:02.239991'
  end: '2020-06-29 08:27:26.360889'
  msg: non-zero return code
  rc: 22
  start: '2020-06-29 08:27:24.120898'
  stderr: |-
    Please run the command on master zone. Performing this operation on non-master zone leads to inconsistent metadata between zones
    Are you sure you want to go ahead? (requires --yes-i-really-mean-it)
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>


Expected results:

The ansible playbook should succeed even if the multisite is not configured via ceph-ansible. there might be many reason why the Customers would use manual method such as lack of multiple zonegroup support or using keepalived IP for zonegroup/zone endpoints. 

Additional info:

Comment 2 Dimitri Savineau 2020-06-29 14:36:22 UTC

*** This bug has been marked as a duplicate of bug 1851764 ***