Bug 1876551 - [ceph-ansible] : cluster configuration failed in step force peer addition as potential bootstrap peer saying object has no attribute
Summary: [ceph-ansible] : cluster configuration failed in step force peer addition as ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3z7
Assignee: Guillaume Abrioux
QA Contact: Ameena Suhani S H
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-07 12:58 UTC by Vasishta
Modified: 2021-05-06 18:32 UTC (History)
6 users (show)

Fixed In Version: RHEL: ceph-ansible-3.2.52-1.el7cp Ubuntu: ceph-ansible_3.2.52-2redhat1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-06 18:32:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 5931 0 None closed mon: fix force peer addition task 2021-02-09 20:41:24 UTC
Red Hat Product Errata RHSA-2021:1518 0 None None None 2021-05-06 18:32:28 UTC

Description Vasishta 2020-09-07 12:58:44 UTC
Description of problem:
Cluster configuration is failing in task TASK [ceph-mon : ipv4 - force peer addition as potential bootstrap peer for cluster bringup - monitor_interface] saying 'ansible.vars.hostvars.HostVarsVars object' has no attribute u'ansible_enp1s0f0'

Version-Release number of selected component (if applicable):
ceph-ansible-3.2.49-1.el7cp.noarch

How reproducible:
Always (2/2)

Steps to Reproduce:
1. follow docs to configure a cluster


Actual results:
fatal: [argo010]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute u'ansible_enp1s0f0'\n\nThe error appears to have been in '/usr/share/ceph-ansible/roles/ceph-mon/tasks/docker/main.yml': line 19, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: ipv4 - force peer addition as potential bootstrap peer for cluster bringup - monitor_interface\n  ^ here\n"
}


Expected results:
Cluster must get configured successfully

Additional info:
Issue was hit when one of the node had different n/w interface name than other two

Comment 5 errata-xmlrpc 2021-05-06 18:32:04 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 (Important: Red Hat Ceph Storage 3.3 Security and Bug Fix Update), 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/RHSA-2021:1518


Note You need to log in before you can comment on or make changes to this bug.