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 1602327

Summary: [cee/sd][ceph-ansible] for rbdmirrors in not copied clinet.admin keyring if "copy_admin_key:true" is specified in group_vars/rbd-mirrors.yml
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tomas Petr <tpetr>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 3.0CC: aschoen, ceph-eng-bugs, ceph-qe-bugs, gabrioux, gmeno, hnallurv, kdreyer, nthomas, sankarshan, seb, shan, tpetr, vereddy
Target Milestone: rc   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.1.0-0.1.rc18.el7cp Ubuntu: ceph-ansible_3.1.0~rc18-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-26 18:22:32 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 Tomas Petr 2018-07-18 08:06:49 UTC
Description of problem:
Admin keyring file is not copied on rbdmirrors members when "copy_admin_key: true" is specified in group_vars/rbd-mirrors.yml

Version-Release number of selected component (if applicable):
ceph-ansible-3.0.39-1.el7cp.noarch

How reproducible:
always

Steps to Reproduce:
1. set "copy_admin_key: true" in group_vars/rbd-mirrors.yml
2. add [rbdmirrors] to /etc/ansible/hosts
3. ansible-playbook site.yml
4 : on [rbdmirrors] members: ls -la /etc/ceph/

Actual results:
ceph.client.admin.keyring not copied

Expected results:
ceph.client.admin.keyring is copied

Additional info:

Comment 4 Guillaume Abrioux 2018-07-26 16:17:24 UTC
Thomas, 

if there is a mismatch between the filename 'group_vars/rbd-mirrors.yml' and the section "[rbdmirrors]" in your inventory host, the variable 'copy_admin_key' will be ignored, so it will be still set to False.

Could you confirm if there is well this mismatch or just a typo here?

Thanks

Comment 5 Tomas Petr 2018-08-13 14:28:30 UTC
(In reply to Guillaume Abrioux from comment #4)
> Thomas, 
> 
> if there is a mismatch between the filename 'group_vars/rbd-mirrors.yml' and
> the section "[rbdmirrors]" in your inventory host, the variable
> 'copy_admin_key' will be ignored, so it will be still set to False.
> 
> Could you confirm if there is well this mismatch or just a typo here?
> 
> Thanks

Hi,
that is interesting, in ceph-ansible-3.0.39 version, the group name is [rbdmirrors] and the file name is group_vars/rbd-mirrors.yml.sample:
--------------
https://github.com/ceph/ceph-ansible/tree/v3.0.39/group_vars/
https://github.com/ceph/ceph-ansible/blob/v3.0.39/site.yml.sample#L12
--------------

Comment 6 Sébastien Han 2018-08-13 16:01:07 UTC
Good point Tomas, I'm resyncing as we speak.
Thanks!

Comment 12 errata-xmlrpc 2018-09-26 18:22:32 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-2018:2819