Bug 1338751 - Management network's gateway wiped out after detaching a network with gateway(different subnet) from host
Summary: Management network's gateway wiped out after detaching a network with gateway...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: ---
Hardware: x86_64
OS: Linux
high
urgent
Target Milestone: ovirt-4.0.0-rc
: ---
Assignee: Edward Haas
QA Contact: Meni Yakove
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-23 11:41 UTC by Michael Burman
Modified: 2016-07-05 07:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-05 07:42:41 UTC
oVirt Team: Network
rule-engine: ovirt-4.0.0+
rule-engine: blocker+
rule-engine: planning_ack+
danken: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)
Logs (554.81 KB, application/x-gzip)
2016-05-23 11:41 UTC, Michael Burman
no flags Details
supervdsm log (175.65 KB, text/plain)
2016-05-24 08:54 UTC, Michael Burman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 57938 0 master MERGED net: D.Gateway should be set on a single net per host 2016-05-26 03:29:56 UTC
oVirt gerrit 57947 0 master NEW net: Canonicalize defaultRoute 2016-05-24 12:30:39 UTC

Description Michael Burman 2016-05-23 11:41:36 UTC
Created attachment 1160546 [details]
Logs

Description of problem:
Management network's gateway wiped out after detaching a network with gateway(different subnet then the ovirtmgmt) from host. 

When attaching network to host with static ip and gateway(not in the same subnet as the management network), the host will get the new gateway instead the management's one, example:
- Before attaching the other network to host -->
[root@pink-vds2 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.35.128.254   0.0.0.0         UG    0      0        0 ovirtmgmt
10.35.128.0     0.0.0.0         255.255.255.0   U     0      0        0 ovirtmgmt
169.254.0.0     0.0.0.0         255.255.0.0     U     1008   0        0 ovirtmgmt
 
- After attaching the other network to host -->
[root@pink-vds2 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         6.6.6.254       0.0.0.0         UG    0      0        0 n2
6.6.6.0         0.0.0.0         255.255.255.0   U     0      0        0 n2
10.35.128.0     0.0.0.0         255.255.255.0   U     0      0        0 ovirtmgmt
169.254.0.0     0.0.0.0         255.255.0.0     U     1008   0        0 ovirtmgmt
169.254.0.0     0.0.0.0         255.255.0.0     U     1010   0        0 n2

- After detaching the other network from the host, there will be no gateway and host will go to non-responsive state.

Version-Release number of selected component (if applicable):
4.0.0-0.7.master.el7ev

How reproducible:
100

Steps to Reproduce:
1. Running host on 4.0 with management network
2. Attach other network, 'net1' to second interface on the host via setup networks with static ip - 6.6.6.6, prefix - 24 and gateway 6.6.6.254 and approve operation
3. Detach the network

Actual results:
No gateway on the host. Host moves to non-responsive state. 

Expected results:
Ovirtmgmt's gateway should remain.

Comment 1 Red Hat Bugzilla Rules Engine 2016-05-23 12:35:53 UTC
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.

Comment 2 Edward Haas 2016-05-24 07:15:52 UTC
Please add the supervdsm.log

Comment 3 Michael Burman 2016-05-24 08:54:15 UTC
Created attachment 1160940 [details]
supervdsm log

Comment 4 Michael Burman 2016-06-07 06:56:12 UTC
Verified on - 4.0.0.2-0.1.el7ev and vdsm-4.18.1-11.gita92976e.el7ev.x86_64

Comment 5 Sandro Bonazzola 2016-07-05 07:42:41 UTC
oVirt 4.0.0 has been released, closing current release.


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