Red Hat Bugzilla – Bug 1289210
oVirt Hosted Engine Appliance intermittently loses connectivity due to inability to restart network.service
Last modified: 2016-02-10 14:18:14 EST
Created attachment 1103288 [details]
ovirt hosted engine
Description of problem:
systemctl restart network fails due to incorrect /etc/sysconfig/network-scripts/ens3 file.
Version-Release number of selected component (if applicable):
Frequently (has occurred on every oVirt 3.6 HEappliance deployment)
Steps to Reproduce:
1. Install 3.6 ovirt appliance (using answer file)
If appears that the ens3 device is hard-coded into the KS for the appliance. Once the VM reboots, that device doesn't exist, which creates a failure condition for restarting the network service.
For clarification, the ens3 device appears in the ovirt-appliance kickstart, however, after a reboot the only network devices recognized by the VM are eth0 and lo.
Thanks for the clarification.
Do you ever see the ens3 NIC name inside the appliance, or do you only see it in the kickstart?
Yes, the ens3 NIC appears inside the appliance.
# Generated by dracut initrd
Thanks for the report, for now I'm simply removing the configuration, but there should be a more structured approach to do this post-processing.
Fixed bug tickets must have version flags set prior to fixing them. Please set the correct version flags and move the bugs back to the previous status after this is corrected.
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
Will line 62 in https://gerrit.ovirt.org/#/c/50123/1/engine-appliance/data/ovirt-engine-appliance.ks.in also remove ifcfg-eth0?
Yep, during build it will remove all ifcfg-e* files - there should just be one, which will then get removed.
Please note: The file will be removed during the build. When the appliance is then booted up, NetworkManager and/or cloud-init should bring up the interface.
I just checked an older appliance:
$ guestfish -ia ./images/22b78c06-116e-4b81-ad19-535dc649db3f/f1c319d5-393b-4b7d-b273-3bfff94f4112
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.
Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
Operating system: CentOS Linux release 7.1.1503 (Core)
/dev/sda1 mounted on /
><fs> ls /etc/sysconfig/network-scripts/
This shows that ens3 is part of the image, but the in comment 3 shown eth0 is created during deployment.
Thus removing any ifcfg-e* file during the image build process, will only remove the ens3 file, not the eth0 file.
Hi Fabian, we not check centos appliance, I deployed hosted engine with rhevm-appliance-20151119.0-1.el7ev.noarch.rpm and it worked fine, if it enough for verification?
Hey Artyom, please check the centos appliance separately because it is built in a slightly different way.
Verified on oVirt-Engine-Appliance-CentOS-x86_64-7-20151216.ova, deploy succeed without any errors.
oVirt 3.6.1 has been released, closing current release