Bug 1721914
| Summary: | [OSP15] Ceph + IPv6 - failed TASK [ceph-facts : set grafana_server_addr fact] The task includes an option with an undefined variable | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Artem Hrechanychenko <ahrechan> | ||||||
| Component: | Ceph-Ansible | Assignee: | Francesco Pantano <fpantano> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Yogev Rabl <yrabl> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | urgent | ||||||||
| Version: | 4.0 | CC: | aschoen, ceph-eng-bugs, ceph-qe-bugs, gfidente, gmeno, jbrier, johfulto, mkasturi, nthomas, nweinber, sathlang, tserlin, vashastr | ||||||
| Target Milestone: | rc | Keywords: | Triaged | ||||||
| Target Release: | 4.0 | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | ceph-ansible-4.0.0-0.1.rc10.el8cp | Doc Type: | If docs needed, set a value | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2020-01-31 12:46:20 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: | 1594251 | ||||||||
| Attachments: |
|
||||||||
Asking for blocker flag - because issue from regression scenarious. This task is failing with IPv6: https://github.com/ceph/ceph-ansible/blob/v4.0.0rc9/roles/ceph-facts/tasks/facts.yml#L293 It looks like it was introduced by this commit: https://github.com/ceph/ceph-ansible/commit/138fa19ccf6c8e336c918413da56189877363cc9#diff-25c2ce69ca1d8f04f11ccaecae0a3c77 Created attachment 1584317 [details]
logs
I am seeing something similar when trying to shrink an OSD like this:
ansible-playbook -v infrastructure-playbooks/shrink-osd.yml -e osd_to_kill=1
A snippet of the failure is below and I will attach full ansible output to the bug. Is it the same issue?
I am on ceph-ansible-4.0.0-0.1.rc9.el8cp.noarch
TASK [ceph-facts : set grafana_server_addr fact] ************************************************************
Thursday 01 August 2019 12:08:22 -0400 (0:00:00.033) 0:01:01.729 *******
fatal: [localhost]: FAILED! =>
msg: |-
The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_all_ipv4_addresses'
The error appears to be in '/usr/share/ceph-ansible/roles/ceph-facts/tasks/facts.yml': line 293, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: set grafana_server_addr fact
^ here
Created attachment 1598143 [details]
ansible output
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. Regards, Giri Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. Regards, Giri *** Bug 1794688 has been marked as a duplicate of this bug. *** 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 |
Description of problem: Deployment OSP15 Overcloud with Ipv6 and Ceph failed "TASK [ceph-facts : set grafana_server_addr fact] *******************************", "task path: /usr/share/ceph-ansible/roles/ceph-facts/tasks/facts.yml:293", "Tuesday 18 June 2019 21:26:53 +0000 (0:00:00.385) 0:00:47.924 ********** ", "fatal: [controller-0]: FAILED! => ", " msg: |-", " The task includes an option with an undefined variable. The error was: No first item, sequence was empty.", " ", " The error appears to be in '/usr/share/ceph-ansible/roles/ceph-facts/tasks/facts.yml': line 293, column 3, but may", " be elsewhere in the file depending on the exact syntax problem.", " The offending line appears to be:", " - name: set grafana_server_addr fact", " ^ here", "fatal: [controller-1]: FAILED! => ", "fatal: [controller-2]: FAILED! => ", "fatal: [ceph-0]: FAILED! => ", "fatal: [ceph-1]: FAILED! => ", "fatal: [ceph-2]: FAILED! => ", "fatal: [compute-0]: FAILED! => ", "NO MORE HOSTS LEFT *************************************************************", "PLAY RECAP *********************************************************************", "ceph-0 : ok=30 changed=0 unreachable=0 failed=1 skipped=32 rescued=0 ignored=0 ", "ceph-1 : ok=30 changed=0 unreachable=0 failed=1 skipped=32 rescued=0 ignored=0 ", "ceph-2 : ok=30 changed=0 unreachable=0 failed=1 skipped=32 rescued=0 ignored=0 ", "compute-0 : ok=27 changed=0 unreachable=0 failed=1 skipped=35 rescued=0 ignored=0 ", "controller-0 : ok=30 changed=0 unreachable=0 failed=1 skipped=35 rescued=0 ignored=0 ", "controller-1 : ok=28 changed=0 unreachable=0 failed=1 skipped=34 rescued=0 ignored=0 ", "controller-2 : ok=28 changed=0 unreachable=0 failed=1 skipped=34 rescued=0 ignored=0 ", Version-Release number of selected component (if applicable): core_puddle: RHOS_TRUNK-15.0-RHEL-8-20190614.n.1 ceph-ansible-4.0.0-0.1.rc9.el8cp.noarch How reproducible: Always Steps to Reproduce: 1.Try to deploy OSP15 with ceph and IPv6 Actual results: "TASK [ceph-facts : set grafana_server_addr fact] *******************************", "task path: /usr/share/ceph-ansible/roles/ceph-facts/tasks/facts.yml:293", "Wednesday 19 June 2019 00:24:14 +0000 (0:00:00.268) 0:00:33.988 ******** ", "fatal: [controller-0]: FAILED! => ", " msg: |-", " The task includes an option with an undefined variable. The error was: No first item, sequence was empty.", " ", " The error appears to be in '/usr/share/ceph-ansible/roles/ceph-facts/tasks/facts.yml': line 293, column 3, but may", " be elsewhere in the file depending on the exact syntax problem.", " The offending line appears to be:", " - name: set grafana_server_addr fact", " ^ here", Expected results: passed Additional info: logs: https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/df/view/deployment/job/DFG-df-deployment-15-virthost-3cont_1comp_3ceph_3db_2net_3msg-yes_UC_SSL-yes_OC_SSL-ceph-ipv6-vlan-RHELOSP-31895/4/artifact/ https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/df/view/deployment/job/DFG-df-deployment-15-virthost-1cont_1comp_3ceph-no_UC_SSL-no_OC_SSL-ceph-ipv6-vlan-RHELOSP-31817/20/artifact/