Bug 1400874 - Failed to add rhvh to engine via dhcp or static bond configured by NM during anaconda
Summary: Failed to add rhvh to engine via dhcp or static bond configured by NM during ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ovirt-4.1.0-beta
: 4.19.1
Assignee: Edward Haas
QA Contact: dguo
URL:
Whiteboard:
Depends On:
Blocks: 1304509 vdsm_config_NetworkMgr_to_be_passive
TreeView+ depends on / blocked
 
Reported: 2016-12-02 08:37 UTC by dguo
Modified: 2017-03-16 14:50 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-03-16 14:50:44 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: blocker+


Attachments (Terms of Use)
host_deploy log (351.69 KB, text/plain)
2016-12-02 08:37 UTC, dguo
no flags Details
network-scrpits before adding to engine (43.97 KB, application/x-gzip)
2016-12-02 08:41 UTC, dguo
no flags Details
network-scripts after adding to engine (43.68 KB, application/x-gzip)
2016-12-02 08:43 UTC, dguo
no flags Details
/var/logs under host (325.50 KB, application/x-gzip)
2016-12-02 08:44 UTC, dguo
no flags Details
network-scripts and deploy logs (458.34 KB, application/x-gzip)
2016-12-07 09:33 UTC, dguo
no flags Details
Include engine.log and vdsm log (471.45 KB, application/x-gzip)
2016-12-08 10:00 UTC, dguo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2823891 0 None None None 2016-12-21 17:32:40 UTC
oVirt gerrit 67834 0 'None' 'MERGED' 'net: Enable VDSM to acquire NM ifaces while NM is operational' 2019-11-26 01:55:53 UTC

Description dguo 2016-12-02 08:37:48 UTC
Created attachment 1227214 [details]
host_deploy log

Description of problem:
Add rhvh to engine over dhcp bond failed, and the bond were configured during the anaconda installation.

Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.0-20161130.0.x86_64
imgbased-0.8.10-0.1.el7ev.noarch
vdsm-4.18.17-1.el7ev.x86_64
Red Hat Virtualization Manager Version: 4.0.6-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Install rhvh via anaconda
2. On the network page, add a dhcp bond contains two slave (em1 and p4p2) 
3. After the installation, add rhvh to engine over this bond

Actual results:
1.After step#3, Failed to configure management network on the host


Expected results:
1. After step#3, Add to engine successfully

Additional info:

Comment 1 dguo 2016-12-02 08:41:28 UTC
Created attachment 1227217 [details]
network-scrpits before adding to engine

Comment 2 dguo 2016-12-02 08:43:25 UTC
Created attachment 1227218 [details]
network-scripts after adding to engine

Comment 3 dguo 2016-12-02 08:44:10 UTC
Created attachment 1227219 [details]
/var/logs under host

Comment 4 Ying Cui 2016-12-07 07:40:01 UTC
Daijie, could you recheck this bug whether it is still here in last RHVH 4.0.6 build, as we knew, the previous build redhat-virtualization-host-4.0-20161130.0 built incorrect vdsm version in, see bug 1401205.

Comment 5 dguo 2016-12-07 09:32:46 UTC
Still caught the issue in the build redhat-virtualization-host-4.0-20161206.0, will attach the new logs

Comment 6 dguo 2016-12-07 09:33:48 UTC
Created attachment 1228949 [details]
network-scripts and deploy logs

Comment 8 dguo 2016-12-08 07:26:38 UTC
Besides, host can not be added to engine with the static VLAN configured during anaconda installation. Guess it is a same issue.

Comment 9 Edward Haas 2016-12-08 09:19:04 UTC
Please provide vdsm and supervdsm logs.
Perhaps even Engine logs will help here.

Comment 10 dguo 2016-12-08 10:00:27 UTC
Created attachment 1229428 [details]
Include engine.log and vdsm log

Please see the detail log

Comment 11 Dan Kenigsberg 2016-12-08 11:09:12 UTC
Which bond mode are you using? this could be a dup of bug 1367261

Comment 12 dguo 2016-12-09 08:36:03 UTC
Yes, the same mode (active-backup) with that bug 1367261. And before adding to engine, the bond's ip is did different with the ip got during anaconda.

Comment 13 Ying Cui 2016-12-11 15:26:58 UTC
(In reply to dguo from comment #8)
> Besides, host can not be added to engine with the static VLAN configured
> during anaconda installation. Guess it is a same issue.

Daijie, could you provide the detail steps if you failed adding host with static VLAN configured by NM after anaconda installation?

Comment 14 dguo 2016-12-12 02:23:58 UTC
I re-test with another two systems, adding to engine can be successful with static vlan confiugred during anacnda installation, so just ignore the Comment 8.

Comment 15 dguo 2016-12-12 11:12:29 UTC
Re-test the static bond configured by NM during anaconda installation is also failed to add to engine. 

I will share my test env by email

Comment 16 Dan Kenigsberg 2016-12-12 13:25:45 UTC
The limitation found in Vdsm is as follows: we cannot add a host if it has a bond, and a bond's slave has two connections: an active connection as a slave, and another inactive connection as an independent NIC.

Comment 24 Edward Haas 2016-12-20 21:13:07 UTC
Acquiring NetworkManager ifaces while NetworkManager is operational should solve this issue.

Please note that the host deploy currently defaults to disable NM service, therefore this patch will not solve this bug scenario.
It should be tested while setting the host deploy to leave NM running.

Comment 27 dguo 2017-02-27 06:30:18 UTC
Verified on rhvh-4.1-20170116.0(vdsm-4.19.1-1.el7ev)


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