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 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-AnsibleAssignee: Francesco Pantano <fpantano>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0CC: aschoen, ceph-eng-bugs, ceph-qe-bugs, gfidente, gmeno, jbrier, johfulto, mkasturi, nthomas, nweinber, sathlang, tserlin, vashastr
Target Milestone: rcKeywords: 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:
Description Flags
logs
none
ansible output none

Description Artem Hrechanychenko 2019-06-19 09:01:47 UTC
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/

Comment 2 Artem Hrechanychenko 2019-06-19 09:02:28 UTC
Asking for blocker flag - because issue from regression scenarious.

Comment 8 Artem Hrechanychenko 2019-06-25 14:38:59 UTC
Created attachment 1584317 [details]
logs

Comment 11 John Brier 2019-08-01 16:20:16 UTC
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

Comment 12 John Brier 2019-08-01 16:21:20 UTC
Created attachment 1598143 [details]
ansible output

Comment 15 Giridhar Ramaraju 2019-08-05 13:06:48 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 16 Giridhar Ramaraju 2019-08-05 13:09:25 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 19 Yogev Rabl 2020-01-27 18:56:27 UTC
*** Bug 1794688 has been marked as a duplicate of this bug. ***

Comment 21 errata-xmlrpc 2020-01-31 12:46:20 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