Bug 1048772 - [Neutron integration] Import of the networks with the same name fails without importing even one of the networks
Summary: [Neutron integration] Import of the networks with the same name fails without...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-webadmin-portal
Version: 3.3.0
Hardware: x86_64
OS: Linux
high
unspecified
Target Milestone: ---
: 3.4.0
Assignee: Lior Vernia
QA Contact: GenadiC
URL:
Whiteboard: network
Depends On: 1048762
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-06 10:31 UTC by GenadiC
Modified: 2016-02-10 19:49 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-12 14:05:23 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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