Bug 1293863 - Failed to unplug VMs vNIC if it has a the same MAC address in use(plugged)
Summary: Failed to unplug VMs vNIC if it has a the same MAC address in use(plugged)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 3.6.1.3
Hardware: x86_64
OS: Linux
unspecified
medium vote
Target Milestone: ovirt-3.6.2
: 3.6.2.5
Assignee: Dan Kenigsberg
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-23 10:05 UTC by Michael Burman
Modified: 2016-02-18 11:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-18 11:06:07 UTC
oVirt Team: Network
rule-engine: ovirt-3.6.z+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 51012 0 master MERGED engine: Mac address check should be done only when plugging 2015-12-29 08:13:08 UTC
oVirt gerrit 51138 0 ovirt-engine-3.6 MERGED engine: Mac address check should be done only when plugging 2015-12-29 14:55:33 UTC
oVirt gerrit 51157 0 ovirt-engine-3.6.2 MERGED engine: Mac address check should be done only when plugging 2015-12-30 10:23:27 UTC

Description Michael Burman 2015-12-23 10:05:14 UTC
Description of problem:
Failed to unplug VMs vNIC if it has a the same MAC address in use(plugged)

engine log:

2015-12-23 11:00:14,020 INFO  [org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand] (ajp-/127.0.0.1:8702-14) [7014a2c4] Running command: UpdateVmInterfaceCommand internal: false. Entities affected :  ID: 22e88827-3c32-4922-9f16-1eae48253f4e Type: VMAction group CONFIGURE_VM_NETWORK with role type USER
2015-12-23 11:00:16,288 WARN  [org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand] (ajp-/127.0.0.1:8702-14) [30ad0f83] CanDoAction of action 'ActivateDeactivateVmNic' failed for user admin@internal. Reasons: VAR__ACTION__DEACTIVATE,VAR__TYPE__INTERFACE,NETWORK_MAC_ADDRESS_IN_USE
2015-12-23 11:00:16,290 INFO  [org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand] (ajp-/127.0.0.1:8702-14) [30ad0f83] Command [id=ebedd80b-ecba-481e-a42c-e59d6efabdb0]: Compensating DELETED_OR_UPDATED_ENTITY of org.ovirt.engine.core.common.businessentities.network.VmNic; snapshot: id=9cec5a27-7181-46c0-8fe9-124de7f004fb.
2015-12-23 11:00:18,009 WARN  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (DefaultQuartzScheduler_Worker-4) [7f599c1] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: Used memory of host seal09.qa.lab.tlv.redhat.com [97%] exceeded defined threshold [95%].
2015-12-23 11:00:19,090 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-14) [30ad0f83] Correlation ID: 7014a2c4, Call Stack: null, Custom Event ID: -1, Message: Failed to update Interface nic1 (VirtIO) for VM vm-n2. (User: admin@internal)


Version-Release number of selected component (if applicable):
3.6.1.3-0.1.el6


Steps to Reproduce:
1. Assign the same MAC address to 2 vNICs(with allow duplicate and custom MAC address) 
2. Try to unplug one of the vNICs 


Actual results:
Failed with error:
Error while executing action: 

vm-n2:
MAC Address is already in use.

Expected results:
Unplug should work in case of duplicate MAC is in use(plugged to other vNIC)

Comment 1 Michael Burman 2016-01-17 13:35:54 UTC
Verified on - 3.6.2.5-0.1.el6


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