ceph-ansible-3.2.0-1.el7cp.noarch using client role only during site-docker.yml re-run fails like this:
2020-04-26 19:21:48,329 p=31304 u=mistral | TASK [ceph-client : get client cephx keys] *************************************
2020-04-26 19:21:48,329 p=31304 u=mistral | Sunday 26 April 2020 19:21:48 +0000 (0:02:03.471) 4:55:39.488 **********
2020-04-26 19:21:51,280 p=31304 u=mistral | fatal: [10.136.246.12]: FAILED! => {"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'slurp_client_keys'"}
2020-04-26 19:21:53,177 p=31304 u=mistral | fatal: [10.136.246.17]: FAILED! => {"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'slurp_client_keys'"}
...
Prior to the above the command to set slurp_client_keys is skipped!
2020-04-26 19:11:59,624 p=31304 u=mistral | TASK [ceph-client : slurp client cephx key(s)] *********************************
2020-04-26 19:11:59,624 p=31304 u=mistral | Sunday 26 April 2020 19:11:59 +0000 (0:03:45.109) 4:45:50.783 **********
2020-04-26 19:12:03,273 p=31304 u=mistral | skipping: [10.136.246.12] => (item={u'name': u'client.openstack', u'mode': u'0600', u'key': u'redacted', u'caps': {u'mgr': u'allow *', u'mon': u'profile rbd', u'osd': u'profile rbd pool=volumes, profile rbd pool=backups, profile rbd pool=vms, profile rbd pool=images'}})
...
it seems to be skipped for every node.
Because this task can be skipped it's not appropriate to attempt to reference it where:
https://github.com/ceph/ceph-ansible/blob/v3.2.40/roles/ceph-client/tasks/create_users_keys.yml#L133-L143
the issue was reported with 3.2.0-1 but v3.2.40 is the latest 3.y downstream release available and the above code is not changed between z versions (for x.y.z).
Perhaps you could extend the when statement so it doesn't go into this task if the attribute isn't defined?
Comment 1RHEL Program Management
2020-04-27 00:06:24 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
ceph-ansible-3.2.0-1.el7cp.noarch using client role only during site-docker.yml re-run fails like this: 2020-04-26 19:21:48,329 p=31304 u=mistral | TASK [ceph-client : get client cephx keys] ************************************* 2020-04-26 19:21:48,329 p=31304 u=mistral | Sunday 26 April 2020 19:21:48 +0000 (0:02:03.471) 4:55:39.488 ********** 2020-04-26 19:21:51,280 p=31304 u=mistral | fatal: [10.136.246.12]: FAILED! => {"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'slurp_client_keys'"} 2020-04-26 19:21:53,177 p=31304 u=mistral | fatal: [10.136.246.17]: FAILED! => {"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'slurp_client_keys'"} ... Prior to the above the command to set slurp_client_keys is skipped! 2020-04-26 19:11:59,624 p=31304 u=mistral | TASK [ceph-client : slurp client cephx key(s)] ********************************* 2020-04-26 19:11:59,624 p=31304 u=mistral | Sunday 26 April 2020 19:11:59 +0000 (0:03:45.109) 4:45:50.783 ********** 2020-04-26 19:12:03,273 p=31304 u=mistral | skipping: [10.136.246.12] => (item={u'name': u'client.openstack', u'mode': u'0600', u'key': u'redacted', u'caps': {u'mgr': u'allow *', u'mon': u'profile rbd', u'osd': u'profile rbd pool=volumes, profile rbd pool=backups, profile rbd pool=vms, profile rbd pool=images'}}) ... it seems to be skipped for every node. Because this task can be skipped it's not appropriate to attempt to reference it where: https://github.com/ceph/ceph-ansible/blob/v3.2.40/roles/ceph-client/tasks/create_users_keys.yml#L133-L143 the issue was reported with 3.2.0-1 but v3.2.40 is the latest 3.y downstream release available and the above code is not changed between z versions (for x.y.z). Perhaps you could extend the when statement so it doesn't go into this task if the attribute isn't defined?