Bug 1396995 - when Add nic fail on Mac address is already in use, the Mac address is not mentioned in any log
Summary: when Add nic fail on Mac address is already in use, the Mac address is not me...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.0.5
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ovirt-4.1.0-beta
: 4.1.0.2
Assignee: Martin Mucha
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 11:04 UTC by Ilanit Stein
Modified: 2017-02-01 14:57 UTC (History)
9 users (show)

Fixed In Version: ovirt-engine-4.1.0-0.4.master.20170104181027.gitab0e3f4.el7.centos.noarch.rpm
Clone Of:
Environment:
Last Closed: 2017-02-01 14:57:38 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)
engine.log (860.10 KB, application/x-gzip)
2016-11-24 13:22 UTC, Ilanit Stein
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 67303 0 master MERGED core: mention which Mac address is used log. 2016-12-22 14:29:53 UTC
oVirt gerrit 69421 0 ovirt-engine-4.1 MERGED core: mention which Mac address is used log. 2017-01-02 13:24:07 UTC

Description Ilanit Stein 2016-11-21 11:04:21 UTC
Description of problem:
When CFME provision a VM from template, along with adding a nic,
and add nic fail on Mac address is already in use,
there is no place where the Mac address can be found.
(CFME add nic request is done via RestAPI)

Version-Release number of selected component (if applicable):
RHV-4.0.5
CFME-5.7.0.11

Expected results:
MAC address should be mentioned in some log (audit.log/engine.log/other log).

Additional info:
2016-11-21 11:13:28,511 INFO  [org.ovirt.engine.core.bll.network.vm.AddVmInterfaceCommand] (default task-52) [45120532] Running command: AddVmInterfaceCommand internal: false. Entities affected :  ID: 9f8da78f-31d2-4752-9942-9fd55654da6d Type: VMAction group CONFIGURE_VM_NETWORK with role type USER,  ID: 0000000a-000a-000a-000a-000000000398 Type: VnicProfileAction group CONFIGURE_VM_NETWORK with role type USER
2016-11-21 11:13:28,616 WARN  [org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand] (default task-52) [1d818dd0] Validation of action 'ActivateDeactivateVmNic' failed for user admin@internal-authz. Reasons: VAR__ACTION__ACTIVATE,VAR__TYPE__INTERFACE,NETWORK_MAC_ADDRESS_IN_USE
2016-11-21 11:13:28,639 INFO  [org.ovirt.engine.core.bll.network.vm.AddVmInterfaceCommand] (default task-52) [1d818dd0] Command [id=8bb72e74-eee4-4e13-adba-df0eb5205331]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.VmDevice; snapshot: VmDeviceId:{deviceId='09711d44-04ae-475e-accd-c382f84e9aa1', vmId='9f8da78f-31d2-4752-9942-9fd55654da6d'}.
2016-11-21 11:13:28,640 INFO  [org.ovirt.engine.core.bll.network.vm.AddVmInterfaceCommand] (default task-52) [1d818dd0] Command [id=8bb72e74-eee4-4e13-adba-df0eb5205331]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics; snapshot: 09711d44-04ae-475e-accd-c382f84e9aa1.
2016-11-21 11:13:28,642 INFO  [org.ovirt.engine.core.bll.network.vm.AddVmInterfaceCommand] (default task-52) [1d818dd0] Command [id=8bb72e74-eee4-4e13-adba-df0eb5205331]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface; snapshot: 09711d44-04ae-475e-accd-c382f84e9aa1.
2016-11-21 11:13:28,670 INFO  [org.ovirt.engine.core.bll.network.vm.AddVmInterfaceCommand] (default task-52) [1d818dd0] Command [id=8bb72e74-eee4-4e13-adba-df0eb5205331]: Compensating DELETED_OR_UPDATED_ENTITY of org.ovirt.engine.core.common.businessentities.VmStatic; snapshot: id=9f8da78f-31d2-4752-9942-9fd55654da6d.
2016-11-21 11:13:28,698 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-52) [1d818dd0] Correlation ID: 45120532, Call Stack: null, Custom Event ID: -1, Message: Failed to add Interface nic1 (VirtIO) to VM vm_prov_from_cfme. (User: admin@internal-authz)
2016-11-21 11:13:28,699 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-52) [] Operation Failed: [MAC Address is already in use.]

Comment 1 Ilanit Stein 2016-11-24 13:22:47 UTC
Created attachment 1223860 [details]
engine.log

Comment 2 Michael Burman 2016-12-28 06:42:25 UTC
The fix isn't on 4.1.0-0.3.beta2.el7, only in master.

Comment 3 Michael Burman 2017-01-05 07:32:32 UTC
Verified on - 4.1.0-0.4.master.20170104122005.git51b1bcf.el7.centos

engine.log - 

2017-01-05 09:31:07,981+02 WARN  [org.ovirt.engine.core.bll.network.vm.AddVmInterfaceCommand] (default task-5) [609242e7-52cb-4b9f-a1c0-62dd1dea8f8f] Validation of action 'AddVmInterface' failed for user admin@internal-authz. Reasons: VAR__TYPE__INTERFACE,VAR__ACTION__ADD,NETWORK_MAC_ADDRESS_IN_USE,$NETWORK_MAC_ADDRESS_IN_USE_ENTITY 00:00:00:00:00:22


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