Bug 1806765

Summary: [ceph-ansible] add-osd.yml for collocated services
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: James Biao <jbiao>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2CC: aschoen, ceph-eng-bugs, ceph-qe-bugs, gmeno, nthomas, r.martinez, tchandra, tserlin, ykaul
Target Milestone: z5   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.2.41-1.el7cp Ubuntu: ceph-ansible_3.2.41-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-10 15:44:17 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:
Attachments:
Description Flags
hosts
none
yaml files
none
ansible log none

Description James Biao 2020-02-25 00:01:35 UTC
Description of problem:

Would like to have a clear guidance on the usage of add-osd.yml for collocated services on osd nodes.

I have an environment with RGW server on OSD nodes. Using add-osd.yml and commenting other osd nodes like below.

---
[osds]
#vm255-41
#vm254-181
vm252-11

[rgws]
vm255-41
vm254-181
vm252-11
---
This causes error below,

fatal: [vm252-11]: FAILED! => {
    "msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_hostname'"
}

While commenting all nodes under [rgws] works, but rgw configurations are wiped out from ceph.conf



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 James Biao 2020-04-06 10:16:14 UTC
Created attachment 1676543 [details]
hosts

Comment 3 James Biao 2020-04-06 10:16:50 UTC
Created attachment 1676544 [details]
yaml files

Comment 4 James Biao 2020-04-06 10:18:48 UTC
Created attachment 1676545 [details]
ansible log

Comment 7 Guillaume Abrioux 2020-04-07 13:17:55 UTC
*** Bug 1812664 has been marked as a duplicate of this bug. ***

Comment 16 errata-xmlrpc 2020-06-10 15:44:17 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, 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/RHBA-2020:2488