Bug 1790508

Summary: The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'mons'
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: high    
Version: 4.0CC: aschoen, ceph-eng-bugs, gfidente, gmeno, hgurav, nthomas, tchandra, tserlin, vashastr, ykaul
Target Milestone: rc   
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-4.0.9-1.el8cp, ceph-ansible-4.0.9-1.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-31 12:48:38 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:
Bug Depends On:    
Bug Blocks: 1642481    
Attachments:
Description Flags
ceph-ansible command log none

Description John Fulton 2020-01-13 14:16:19 UTC
In ceph-ansible-4.0.8-1.el8cp.noarch ceph-ansible fails with:

        "fatal: [compute-0]: FAILED! => ",
        "  msg: |-",
        "    The task includes an option with an undefined variable. The error was: 
'dict object' has no attribute 'mons'",
        "  ",
        "    The error appears to be in 
'/usr/share/ceph-ansible/roles/ceph-facts/tasks/facts.yml': line 99, column 3, but 
may",
        "    be elsewhere in the file depending on the exact syntax problem.",
        "    The offending line appears to be:",
        "    - name: set_fact _container_exec_cmd",
        "      ^ here",

Might be related to:

https://github.com/ceph/ceph-ansible/commit/d6da508a9b6829d2d0633c7200efdffce14f403f

This was seen in OSP16 CI

 https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/QE/view/OSP16/job/phase2-16_director-rhel-8.1-virthost-3cont_2comp-ipv4-geneve-ceph-external/110/

Comment 1 RHEL Program Management 2020-01-13 14:16:25 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 John Fulton 2020-01-13 14:20:06 UTC
Created attachment 1651879 [details]
ceph-ansible command log

Comment 6 John Fulton 2020-01-15 01:13:05 UTC
The CI job that produced this error is unable to reproduce the error with the package from the fixed-in

Comment 12 errata-xmlrpc 2020-01-31 12:48:38 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:0312