Bug 1602327 - [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
Summary: [cee/sd][ceph-ansible] for rbdmirrors in not copied clinet.admin keyring if "...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 3.1
Assignee: Guillaume Abrioux
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-18 08:06 UTC by Tomas Petr
Modified: 2020-04-30 08:06 UTC (History)
13 users (show)

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:
Clone Of:
Environment:
Last Closed: 2018-09-26 18:22:32 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 3012 0 'None' closed contrib: fix generate group_vars samples 2020-04-30 06:23:25 UTC
Github ceph ceph-ansible pull 3013 0 'None' closed contrib: fix generate group_vars samples 2020-04-30 06:23:25 UTC
Red Hat Product Errata RHBA-2018:2819 0 None None None 2018-09-26 18:23:15 UTC

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


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