Bug 1267733

Summary: ectd cluster install fails when hosts have different names network interfaces
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED CURRENTRELEASE QA Contact: Gaoyun Pei <gpei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: aos-bugs, bleanhar, dmcphers, gpei, jdetiber, jialiu, jokerman, mmccomas, sdodson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-20 15:42:49 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:
Bug Depends On:    
Bug Blocks: 1272201    

Description Ryan Howe 2015-09-30 19:54:28 UTC
Description of problem:
ectd cluster install fails when differently named network interfaces are used

Version-Release number of selected component (if applicable):
Latest

How reproducible:
Customer 

Steps to Reproduce:
Set up to install etcd clusterd on a host with interface "ens192" and another host wiht  "eth02"


Actual results:
fatal: [uslv-dpas-etc04.amgen.com] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_ens192'", 'failed': True}
fatal: [uslv-dpas-etc04.amgen.com] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_ens192'", 'failed': True}
fatal: [aws-dpas-etc06.amgen.com] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_eth0'", 'failed': True}
fatal: [aws-dpas-etc06.amgen.com] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_eth0'", 'failed': True}


Expected results:

Pass

Additional info:
https://github.com/openshift/openshift-ansible/blob/0ded8248eedf3ad1ceac44eac486e83a53960bb5/roles/etcd/templates/etcd.conf.j2#L4-L6

Comment 2 Brenton Leanhardt 2015-10-09 12:46:58 UTC
*** Bug 1267740 has been marked as a duplicate of this bug. ***

Comment 3 Brenton Leanhardt 2015-10-09 12:48:55 UTC
See Bug #1267740 for more detail.  This should be ready for testing and it looks like Gao Yun has been working on it too.

https://github.com/openshift/openshift-ansible/pull/437

Comment 7 Jason DeTiberus 2015-10-27 15:03:39 UTC
Added a fix to https://github.com/openshift/openshift-ansible/pull/702 to correct the original issue of trying to reference the wrong interface on different hosts.

Comment 8 Gaoyun Pei 2015-10-28 05:51:24 UTC
The same error as https://bugzilla.redhat.com/show_bug.cgi?id=1272201#c10

Move this to Assigned

Comment 9 Jason DeTiberus 2015-10-28 19:38:39 UTC
I updated https://github.com/openshift/openshift-ansible/pull/702 to address some edge cases. We now test to make sure that we can read the variables we expect from the interface specified by etcd_interface for the specified host.

If you are still seeing issues, please update with the inventory file you are using as well as the output of `ip addr` on the hosts.

Comment 10 Gaoyun Pei 2015-10-29 06:34:15 UTC
This issue is actually a sub-issue in BZ#1272201, so will track the progress in BZ#1272201.
Once BZ#1272201 is verified, this bug could be moved to verified too.

Comment 11 Gaoyun Pei 2015-10-30 07:10:56 UTC
Move this bug to VERIFIED as BZ#1272201 is verified.