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:
Do you have the log of this task? https://github.com/ceph/ceph-ansible/blob/f02b8e8e2bc1c9d9ae70d6dc842da0dfd6947c07/roles/ceph-rbd-mirror/tasks/pre_requisite.yml#L11 Thanks
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
(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 --------------
Good point Tomas, I'm resyncing as we speak. Thanks!
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