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 1828105

Summary: 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'"}
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: John Fulton <johfulto>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: urgent    
Version: 3.2CC: amsyedha, aschoen, ceph-eng-bugs, ceph-qe-bugs, dsavinea, gabrioux, gmeno, kdreyer, kurathod, mmuench, nchilaka, nthomas, sostapov, tchandra, tserlin, vereddy, ykaul
Target Milestone: z5   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.2.43-1.el7cp Ubuntu: ceph-ansible_3.2.43-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-10 15:44:19 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 John Fulton 2020-04-27 00:06:15 UTC
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 1 RHEL Program Management 2020-04-27 00:06:24 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 15 errata-xmlrpc 2020-06-10 15:44:19 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