Bug 1048772

Summary: [Neutron integration] Import of the networks with the same name fails without importing even one of the networks
Product: Red Hat Enterprise Virtualization Manager Reporter: GenadiC <gcheresh>
Component: ovirt-engine-webadmin-portalAssignee: Lior Vernia <lvernia>
Status: CLOSED CURRENTRELEASE QA Contact: GenadiC <gcheresh>
Severity: unspecified Docs Contact:
Priority: high    
Version: 3.3.0CC: acathrow, bazulay, ecohen, iheim, lpeer, masayag, myakove, nyechiel, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 14:05:23 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:
Bug Depends On: 1048762    
Bug Blocks:    

Description GenadiC 2014-01-06 10:31:48 UTC
Description of problem:
Trying to import 2 networks with the same name to the same DC from External Network provider should fail on import of the second network.
What actually happens is that you get "Cannot import network" failure and none of the networks is added

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create 2 networks with the same name on Neutron
2. Import those network to the same DC
3.

Actual results:
None of the networks is added to DC

Expected results:
One of the networks should be added and the import for another one should fail as the network with the same name already exists on the DC

Additional info:

Comment 1 Lior Vernia 2014-03-12 12:54:04 UTC
Works for me. Tried to import two networks in one import command, editing one of the networks' name to that of the other through the import dialog. One is imported and the other isn't, as expected:

2014-03-12 14:52:15,841 INFO  [org.ovirt.engine.core.bll.network.dc.AddNetworkCommand] (http--0.0.0.0-8080-2) [281dc90e] Lock Acquired to object EngineLock [exclusiveLocks= key: neutron_test value: NETWORK
, sharedLocks= ]
2014-03-12 14:52:15,845 INFO  [org.ovirt.engine.core.bll.network.dc.AddNetworkCommand] (http--0.0.0.0-8080-2) [281dc90e] Running command: AddNetworkCommand internal: false. Entities affected :  ID: 00000002-0002-0002-0002-0000000001f0 Type: StoragePool
2014-03-12 14:52:15,882 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (http--0.0.0.0-8080-2) [281dc90e] Correlation ID: 281dc90e, Call Stack: null, Custom Event ID: -1, Message: Network neutron_test was added to Data Center: Default
2014-03-12 14:52:15,884 INFO  [org.ovirt.engine.core.bll.network.dc.AddNetworkCommand] (http--0.0.0.0-8080-2) [281dc90e] Lock freed to object EngineLock [exclusiveLocks= key: neutron_test value: NETWORK
, sharedLocks= ]
2014-03-12 14:52:15,914 INFO  [org.ovirt.engine.core.bll.network.dc.AddNetworkCommand] (http--0.0.0.0-8080-2) [1e76fe50] Lock Acquired to object EngineLock [exclusiveLocks= key: neutron_test value: NETWORK
, sharedLocks= ]
2014-03-12 14:52:15,917 WARN  [org.ovirt.engine.core.bll.network.dc.AddNetworkCommand] (http--0.0.0.0-8080-2) [1e76fe50] CanDoAction of action AddNetwork failed. Reasons:VAR__TYPE__NETWORK,VAR__ACTION__ADD,ACTION_TYPE_FAILED_NETWORK_NAME_IN_USE
2014-03-12 14:52:15,917 INFO  [org.ovirt.engine.core.bll.network.dc.AddNetworkCommand] (http--0.0.0.0-8080-2) [1e76fe50] Lock freed to object EngineLock [exclusiveLocks= key: neutron_test value: NETWORK
, sharedLocks= ]
2014-03-12 14:52:16,040 INFO  [org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand] (http--0.0.0.0-8080-1) [35ebf726] Running command: AttachNetworkToVdsGroupCommand internal: false. Entities affected :  ID: 5e530112-3366-4a79-aca0-27ab5289b1c3 Type: Network
2014-03-12 14:52:16,057 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (http--0.0.0.0-8080-1) [35ebf726] Correlation ID: 35ebf726, Call Stack: null, Custom Event ID: -1, Message: Network neutron_test attached to Cluster Default
2014-03-12 14:52:16,134 INFO  [org.ovirt.engine.core.bll.network.vm.AddVnicProfileCommand] (http--0.0.0.0-8080-2) [1cc96ec8] Running command: AddVnicProfileCommand internal: false. Entities affected :  ID: 5e530112-3366-4a79-aca0-27ab5289b1c3 Type: Network
2014-03-12 14:52:16,165 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (http--0.0.0.0-8080-2) [1cc96ec8] Correlation ID: 1cc96ec8, Call Stack: null, Custom Event ID: -1, Message: VM network interface profile neutron_test was added to network neutron_test in Data Center: Default. (User: admin)

Comment 2 GenadiC 2014-03-16 15:09:40 UTC
Verified in av3

Comment 3 Itamar Heim 2014-06-12 14:05:23 UTC
Closing as part of 3.4.0