Bug 848832

Summary: Multiple DNS entries when booting the RHEV-H image
Product: Red Hat Enterprise Linux 6 Reporter: Javier Peña <javier.pena>
Component: rhev-hypervisor6Assignee: Mike Burns <mburns>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: dyasny, jboggs, mburns, ovirt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 14:24:31 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:

Description Javier Peña 2012-08-16 14:16:47 UTC
Description of problem:

While booting the RHEV-H image from the ISO, I want to specify more than one DNS server. According to the Hypervisor Deployment Guide (https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.0/html/Hypervisor_Deployment_Guide/sect-Deployment_Guide-RHEV_Hypervisor_Kernel_Parameters_and_Automated_Installation-Networking_and_RHEV_Manager_parameters.html), I should use a colon as a separator for the two IP addresses. However, this does fail. No DNS entries are added, and the following is found at /var/log/ovirt.log after installation:

2012-08-16 08:51:45,648 - DEBUG - network - Setting DNS server 1: 10.92.64.27:10.92.64.28
2012-08-16 08:51:45,652 - WARNING - network - Failed to set DNS servers
2012-08-16 08:51:45,652 - DEBUG - network - Updating resolv.conf backups

Using a different notation (comma as the separator) works as expected, so I wonder whether this should be a documentation bug. I have traced the root cause of this to the /usr/lib/python-2.7/site-packages/ovirtnode/network.py file, where is splits the DNS entries using comma as a separator:

DNS = DNS.split(",")


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


How reproducible:

Always


Steps to Reproduce:
1. Boot from the RHEV-H ISO image, with the following parameters:

dns=X.Y.Z.A:A.B.C.D install  <any other required parameter>

2. At the end of the installation, check /var/log/ovirt.log
3. Try using the following parameters:

dns=X.Y.Z.A,A.B.C.D install

4. It should work then.
  
Actual results:
DNS entries not added.

Expected results:
DNS entries added.

Additional info:

Comment 2 Mike Burns 2012-08-16 14:24:31 UTC

*** This bug has been marked as a duplicate of bug 834286 ***