Bug 1321206 - Ansible configure the wrong dnsIp on node when configuring dnsmasq on node
Summary: Ansible configure the wrong dnsIp on node when configuring dnsmasq on node
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-25 00:26 UTC by Ma xiaoqiang
Modified: 2016-07-04 00:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 16:39:37 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1065 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-05-12 20:32:56 UTC

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


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