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:
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)
Verified in av3
Closing as part of 3.4.0