Bug 1412587

Summary: [WALA]There's no '\n' after 'DHCP_HOSTNAME' which NetworkManager cannot read
Product: Red Hat Enterprise Linux 7 Reporter: Yuxin Sun <yuxisun>
Component: WALinuxAgentAssignee: Miroslav Rezanina <mrezanin>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: borisb, danis, hkrijger, jboutaud, jjarvis, leiwang, mheslin, salmy, wshi, yujiang, yuxisun
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: WALinuxAgent-2.2.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-07 08:52:04 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 Yuxin Sun 2017-01-12 11:19:58 UTC
Description of problem:
There's no '\n' after 'DHCP_HOSTNAME=xxx' in the /etc/sysconfig/network-scripts/ifcfg-eth0 after provisioning, so that NetworkManager cannot read it.

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

How reproducible:

Steps to Reproduce:
1. Create a VM on azure with WALA-2.2.0-3 installed.
2. /etc/sysconfig/network-scripts/ifcfg-eth0

Actual results:
There's no '\n' after DHCP_HOSTNAME=xxx, such as:
[root@wala73ondarm2205d ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DHCP_HOSTNAME=wala73ondarm2205d[root@wala73ondarm2205d ~]

Expected results:
There's '\n' after DHCP_HOSTNAME=xxx, such as:
[root@wala73ondarm2205d ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
[root@wala73ondarm2205d ~]

Additional info:
This issue is separated from BZ#1411687

Comment 2 Yuxin Sun 2017-02-27 05:22:00 UTC
Verify on RHEL-7.3 ondemand image with WALinuxAgent-2.2.4-1.el7.mrezanin201702081000.noarch.rpm
Result: Pass

Comment 3 Yuxin Sun 2017-03-06 03:16:18 UTC
Change the status to "POST" for developers to add it into ERRATA.