Bug 1150132

Summary: /distribution/virt/install should use NetworkManager instead of the network initscript on RHEL7
Product: [Retired] Beaker Reporter: Jeff Burke <jburke>
Component: testsAssignee: matt jia <mjia>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.18CC: aigao, asaha, dcallagh, dowang, jstancek, jtluka, lnykryn, mjia, pbunyan, rfreiss, rmancy
Target Milestone: 19.0Keywords: FutureFeature, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-25 07:08:03 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 Jeff Burke 2014-10-07 13:39:06 UTC
Description of problem:
 We are hitting an issue with RHEL7. See BZ https://bugzilla.redhat.com/show_bug.cgi?id=1145191

 The recommendation is to no use initscripts for RHEL7. It is recommended that we use NetworkManager instead. Is it possible to change the test for RHEL7 only?

Regards,
Jeff

Comment 1 Dan Callaghan 2014-10-07 22:26:23 UTC
Hmmm yes I think /distribution/virt/install had always avoided NetworkManager and used the network initscript instead, because it needed bridging which isn't (wasn't?) available in RHEL6 NetworkManager. But on RHEL7 we should start using NetworkManager instead.

Comment 3 Dan Callaghan 2014-10-31 04:34:46 UTC
It might be possible to just skip the code in /distribution/virt/install which is switching NetworkManager -> network, if NetworkManager is detected to be a sufficiently high version to support bridging (need to determine what version that is).

The only problem might be if the ifcfg-br0 file produced in the task, is not properly understood by NetworkManager. Need to try it out and see.

We will want to continue using network initscript on RHEL6.

Comment 4 matt jia 2014-11-10 05:06:24 UTC
On Gerrit:

 http://gerrit.beaker-project.org/#/c/3470/

Cheers,Matt Jia

Comment 5 matt jia 2014-11-10 05:14:10 UTC
(In reply to Dan Callaghan from comment #3)
> It might be possible to just skip the code in /distribution/virt/install
> which is switching NetworkManager -> network, if NetworkManager is detected
> to be a sufficiently high version to support bridging (need to determine
> what version that is).

NetworkManager starts supporting bridging since 0.9.8.

http://www.phoronix.com/scan.php?page=news_item&px=MTMwNzY

Cheers, Matt Jia

Comment 7 matt jia 2014-11-13 03:54:59 UTC
Added this patch to fix for checking rhel version.

http://gerrit.beaker-project.org/#/c/3475/

Cheers,Matt Jia

Comment 9 matt jia 2014-11-13 06:44:25 UTC
Steps to verify:

1. create a job with RHEL7 host recipe and RHEL7 guest recipe

2. ssh to the host server and check if the NetworkManager is running properly

   systemctl status NetworkManager.service

3. check if the guest recipe is installed successfully

4. create another with RHEL6 host recipe and RHEL7 guest recipe

5. ssh to the host server and check if the NetworkManager is turned off

6. repeat step 3

Cheers, Matt Jia

Comment 13 Dan Callaghan 2014-11-25 07:08:03 UTC
/distribution/virt/install 4.0-86 has been released.