Bug 1851917 - [Ceph-ansible] ansible fails at secondary zone if the multisite is not configured via ceph-ansible
Summary: [Ceph-ansible] ansible fails at secondary zone if the multisite is not config...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 4.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: z2
: 4.1
Assignee: Dimitri Savineau
QA Contact: Vasishta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-29 12:34 UTC by Mustafa Aydın
Modified: 2020-06-29 21:05 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-29 18:18:53 UTC
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.