Bug 1150132 - /distribution/virt/install should use NetworkManager instead of the network initscript on RHEL7
Summary: /distribution/virt/install should use NetworkManager instead of the network i...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: tests
Version: 0.18
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 19.0
Assignee: matt jia
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-07 13:39 UTC by Jeff Burke
Modified: 2018-02-06 00:41 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-25 07:08:03 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.