[ https://issues.apache.org/jira/browse/CLOUDSTACK-4282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anthony Xu resolved CLOUDSTACK-4282. ------------------------------------ Resolution: Fixed > [SharedNetworks] Unable to create multiple shared networks with different > VLAN but with same CIDR > ------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-4282 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4282 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Network Controller > Affects Versions: 4.2.0 > Environment: commit id # e6d03f2322822aee331a1a2aa60190c4c755c402 > Reporter: venkata swamybabu budumuru > Assignee: Anthony Xu > Priority: Critical > Fix For: 4.2.0 > > Attachments: logs.tgz > > > Steps to reproduce: > 1. Have latest CloudStack setup with at least 1 advanced zone. > 2. Create a shared network with the following details using the > defaultSharedNetworkOffering > VLAN : 1200 > gateway : 1.1.1.1 > startip : 1.1.1.100 > endip : 1.1.1.110 > 3. Create another shared network with different VLAN but with same above > subnet > VLAN : 2361 > gateway : 1.1.1.1 > startip : 1.1.1.100 > endip : 1.1.1.110 > Observations: > (i) It fails with the following error > The IP range with tag: 1200 in zone zone1 has overlapped with the subnet. > Please specify a different gateway/netmask. > (ii) Ideally, it should let admin create multiple shared networks with same > subnet when the corresponding VLAN ids are different. > Attaching all the required logs along with db dump to the bug. > *** Marvin tests for shared networks are failing due to the above issue. > Here is one such test failure > integration.component.test_shared_networks.TestSharedNetworks.test_createSharedNetwork_usedVlan2 > (from nosetests) > Failing for the past 2 builds (Since Unstable#133 ) > Took 0.25 sec. > Error Message > Execute cmd: createnetwork failed, due to: errorCode: 431, errorText:The IP > range with tag: 1200 in zone Adv-KVM-Zone1 has overlapped with the subnet. > Please specify a different gateway/netmask. > -------------------- >> begin captured logging << -------------------- > testclient.testcase.TestSharedNetworks: DEBUG: Admin account created: > 41fe45fd-c721-4396-b49c-1f9cafbc2d6a > testclient.testcase.TestSharedNetworks: DEBUG: Physical Network found: > 4b414b4e-8e90-4ef4-9e33-eb56970cd30f > testclient.testcase.TestSharedNetworks: DEBUG: Shared Network Offering > created: f86ab03b-6ccd-4115-acc6-699c4c542108 > testclient.testcase.TestSharedNetworks: DEBUG: Creating a shared network in > non-cloudstack VLAN 2361 > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run > testMethod() > File > "/Repo_30X/ipcl/cloudstack/test/integration/component/test_shared_networks.py", > line 2063, in test_createSharedNetwork_usedVlan2 > zoneid=self.zone.id, > File > "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line > 1940, in create > return Network(apiclient.createNetwork(cmd).__dict__) > File > "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", > line 1709, in createNetwork > response = self.connection.marvin_request(command, > response_type=response, method=method) > File > "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line > 222, in marvin_request > response = jsonHelper.getResultObj(response.json(), response_type) > File "/usr/local/lib/python2.7/site-packages/marvin/jsonHelper.py", line > 148, in getResultObj > raise cloudstackException.cloudstackAPIException(respname, errMsg) > Execute cmd: createnetwork failed, due to: errorCode: 431, errorText:The IP > range with tag: 1200 in zone Adv-KVM-Zone1 has overlapped with the subnet. > Please specify a different gateway/netmask. > -------------------- >> begin captured logging << -------------------- > testclient.testcase.TestSharedNetworks: DEBUG: Admin account created: > 41fe45fd-c721-4396-b49c-1f9cafbc2d6a > testclient.testcase.TestSharedNetworks: DEBUG: Physical Network found: > 4b414b4e-8e90-4ef4-9e33-eb56970cd30f > testclient.testcase.TestSharedNetworks: DEBUG: Shared Network Offering > created: f86ab03b-6ccd-4115-acc6-699c4c542108 > testclient.testcase.TestSharedNetworks: DEBUG: Creating a shared network in > non-cloudstack VLAN 2361 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira