[
https://issues.apache.org/jira/browse/CLOUDSTACK-5518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852976#comment-13852976
]
Gaurav Aradhye commented on CLOUDSTACK-5518:
--------------------------------------------
Rayees, the test is removing unused vlan only, and after each test case, in
cleanup, we set the vlan range to existing vlan range and in no test case we
remove the existing vlan range.
The problem has arrived in cleanup of the test case, in this case the newly
added range has been accidentally got used by another test case, and while
trying to remove the unused range (in this case it became "used"), it threw
error that can't remove the used range 1072-1073.
I have uploaded patch to minimize the time between adding the new range and
removing it, so that it minimizes the possibility of newly added range getting
used by other test cases.
> [Automation] test_04_remove_unused_range is removing all unused VLAN ranges
> which is causing insufficient network capacity
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5518
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5518
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Affects Versions: 4.3.0
> Reporter: Srikanteswararao Talluri
> Assignee: Gaurav Aradhye
> Priority: Critical
> Fix For: 4.3.0
>
>
> This test has left only two VLANs in the physical network.
> Stacktrace
> File "/usr/local/lib/python2.7/unittest/case.py", line 345, in run
> self.tearDown()
> File
> "/root/cloudstack/test/integration/component/test_non_contiguous_vlan.py",
> line 128, in tearDown
> self.physicalnetwork.update(self.apiClient, id = self.physicalnetworkid,
> vlan=self.existingvlan)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line
> 2520, in update
> return apiclient.updatePhysicalNetwork(cmd)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 688, in updatePhysicalNetwork
> response = self.connection.marvinRequest(command, response_type=response,
> method=method)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line
> 280, in marvinRequest
> response = self.poll(asyncJobId, response_type)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line
> 86, in poll
> "asyncquery", asyncResonse.jobresult)
> Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext :
> u'physicalnetwork 200 has allocated vnets in the range 1072-1073'}
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)