Bug 1321206

Summary: Ansible configure the wrong dnsIp on node when configuring dnsmasq on node
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: aos-bugs, bleanhar, jokerman, mmccomas, xtian
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: 2016-05-12 16:39:37 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:

Description Ma xiaoqiang 2016-03-25 00:26:33 UTC
Description of problem:
Ansible configure the wrong dnsIp on node when configuring dnsmasq on node



Version-Release number of selected component (if applicable):
https://github.com/sdodson/openshift-ansible -b cluster-dns

How reproducible:
always

Steps to Reproduce:
1. Install env with  openshift_node_dnsmasq=true


Actual results:
TASK: [openshift_node | Start and enable node] ******************************** 
failed: [openshift-*.lab.eng.nay.redhat.com] => {"failed": true}
msg: Job for atomic-openshift-node.service failed because the control process exited with error code. See "systemctl status atomic-openshift-node.service" and "journalctl -xe" for details.

FATAL: all hosts have already failed -- aborting

Check the configuration on node
dnsDomain: cluster.local
dnsIP: {# ansible_default_ipv4.address if openshift_node_dnsmasq | bool and openshift.common.version_gte_3_1_or_1_1 | bool else openshift_dns_ip | default(openshift_master_cluster_vip | default(None if openshift.common.version_gte_3_1_or_1_1 | bool else openshift_node_first_master_ip | default(None, true), true), true) #}
dockerConfig:


Expected results:
Should configure correct value

Additional info:

Comment 1 Scott Dodson 2016-04-05 20:57:07 UTC
I've refactored how dnsIP is set. Please pull the latest cluster-dns branch and re-test. Thanks for finding this!

Comment 2 Ma xiaoqiang 2016-04-06 01:34:41 UTC
check on the latest cluster-dns branch 

Install env successfully with openshift_node_dnsmasq=true
Move this issue to VERIFIED.

Comment 4 errata-xmlrpc 2016-05-12 16:39:37 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-2016:1065