Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1432386

Summary: static ip remain on the interface when removing non-vm network from it in case it has another vlan network attached
Product: [oVirt] vdsm Reporter: Michael Burman <mburman>
Component: CoreAssignee: Petr Horáček <phoracek>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Burman <mburman>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.19.7CC: bugs, danken, phoracek
Target Milestone: ovirt-4.1.6Flags: rule-engine: ovirt-4.1+
mburman: testing_plan_complete+
Target Release: 4.19.29   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-19 10:01:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Logs none

Description Michael Burman 2017-03-15 09:44:05 UTC
Created attachment 1263259 [details]
Logs

Description of problem:
static ip remain on the interface when removing non-vm network from it in case it has another vlan network attached.

If attaching to an interface non-VM network + vlan network and setting a static ip on the non-vm network, the static ip is left on the interface, although the non-vm network is detached from the host.
The static ip will be removed from the interface only when detaching the vlan network from the interface. 

- If attaching only a non-vm network to the interface with static ip and then detaching the network, the static ip is removed from the interface as it should be. 

Version-Release number of selected component (if applicable):
vdsm-4.19.7-1.el7ev.x86_64

How reproducible:
100

Steps to Reproduce:
1. Attach vlan network + non-Vm network to the same interface and set static ip on the non-vm network. Approve operation in setup networks dialog 
2. Detach the non-vm network from the interface

Actual results:
The static ip remains on the interface. 

Expected results:
Static ip should be removed if the non-VM network is detached from the interface

Additional info:

Comment 1 Petr Horáček 2017-05-17 10:38:38 UTC
I managed to reproduce it with VDSM and created a test coverage for the case. Working on a fix now.

Comment 3 Dan Kenigsberg 2017-06-08 12:14:11 UTC
The patch is not yet ready, moving to next micro release.

Comment 4 Dan Kenigsberg 2017-08-07 11:50:33 UTC
A similar bug probably lurks when the ip is defined on top of a bond. If so, please file a separate bug.

Comment 5 Michael Burman 2017-08-07 12:44:16 UTC
Dan, not sure why it moved to ON_QA as it still ends up with the same result on 4.1.5.1-0.1.el7 and vdsm-4.19.26-1.el7ev.x86_64

Comment 6 Michael Burman 2017-08-27 05:03:06 UTC
Verified on - 4.1.6-0.1.el7 and vdsm-4.19.29-1.el7ev.x86_64