Bug 1787516

Summary: [ceph-ansible] ansible-playbook site.yml --limit mgrs fails
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ameena Suhani S H <amsyedha>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED NOTABUG QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0CC: aschoen, ceph-eng-bugs, gmeno, nthomas, ykaul
Target Milestone: rc   
Target Release: 4.0   
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: 2020-01-03 09:01:03 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: 1677431    
Attachments:
Description Flags
group_vars, inventory and ansible logs none

Description Ameena Suhani S H 2020-01-03 08:53:13 UTC
Created attachment 1649349 [details]
group_vars, inventory and ansible logs

Description of problem:
ansible-playbook site.yml --limit mgrs fails

Version-Release number of selected component (if applicable):
ceph version 14.2.4-31.el7cp

How reproducible:
3/3

Steps to Reproduce:
1.deploy 3.x cluster on rhel 7
2.upgrade to 4.x
3.add new mgr in inventory
4.run ansible-playbook site.yml --limit mgrs

Actual results:
Following error is seen
$ansible-playbook site.yml --limit mgrs

ERROR! the role 'ceph-restapi' was not found in /usr/share/ceph-ansible/roles:/usr/share/ceph-ansible/roles:/usr/share/ceph-ansible

The error appears to be in '/usr/share/ceph-ansible/site.yml': line 295, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

        - ceph_release_num[ceph_release] <= ceph_release_num.luminous
    - role: ceph-restapi
      ^ here



Expected results:
mgr should be added successfully

Additional info: