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.0-3
WALinuxAgent-2.2.2 upstream
How reproducible:
100%
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
...
DHCP_HOSTNAME=wala73ondarm2205d
[root@wala73ondarm2205d ~]
Additional info:
This issue is separated from BZ#1411687