You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sanjay Tripathi (JIRA)" <ji...@apache.org> on 2013/07/23 11:22:48 UTC
[jira] [Comment Edited] (CLOUDSTACK-3688) Test cases
test_accounts.TestDomainForceRemove.test_forceDeleteDomain, not found the
domain to delete and failed
[ https://issues.apache.org/jira/browse/CLOUDSTACK-3688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716239#comment-13716239 ]
Sanjay Tripathi edited comment on CLOUDSTACK-3688 at 7/23/13 9:21 AM:
----------------------------------------------------------------------
This issue is in CS product and not in the test_script. The problem is coming because in case of deleteDomain with cleanup = true, CS is not allowing deletion of domain if there are any account under that domain needs clean up; though
these accounts are removed and admin can't see them in the listaccounts.
So, CS should not restrict the deleteDomain in case of accounts needs cleanup.
was (Author: sanjay.tripathi):
This issue is in CS product and not in the test_script. The problem is coming because CS is not allowing deletion of domain if there are any account under that domain needs clean up; though
these accounts are removed and admin can't see them in the listaccounts.
So, CS should not restrict the deleteDomain in case of accounts needs cleanup.
> Test cases test_accounts.TestDomainForceRemove.test_forceDeleteDomain, not found the domain to delete and failed
> ----------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3688
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3688
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Automation, Management Server
> Affects Versions: 4.2.0
> Environment: Automation
> Reporter: Rayees Namathponnan
> Assignee: Sanjay Tripathi
> Fix For: 4.2.0
>
> Attachments: MSlog.rar
>
>
> Test case integration.component.test_accounts.TestDomainForceRemove.test_forceDeleteDomain failed to find the domain and failed with below error
> Execute cmd: listaccounts failed, due to: errorCode: 431, errorText:Domain id=17 doesn't exist
> -------------------- >> begin captured logging << --------------------
> testclient.testcase.TestDomainForceRemove: DEBUG: Creating a domain for login with API domain test
> testclient.testcase.TestDomainForceRemove: DEBUG: Domain is created succesfully.
> testclient.testcase.TestDomainForceRemove: DEBUG: Checking if the created domain is listed in list domains API
> testclient.testcase.TestDomainForceRemove: DEBUG: Creating 2 user accounts in domain: Domain-4LRYHQ
> testclient.testcase.TestDomainForceRemove: DEBUG: Creating a tiny service offering for VM deployment
> testclient.testcase.TestDomainForceRemove: DEBUG: Deploying virtual machine in account 1: test-SLP41D
> testclient.testcase.TestDomainForceRemove: DEBUG: Deploying virtual machine in account 2: test-SRUFYO
> testclient.testcase.TestDomainForceRemove: DEBUG: Default network in account 1: test-SLP41D is test-SLP41D-network
> testclient.testcase.TestDomainForceRemove: DEBUG: Trying to create a port forwarding rule in source NAT: 10.223.122.81
> testclient.testcase.TestDomainForceRemove: DEBUG: Created PF rule on source NAT: 10.223.122.81
> testclient.testcase.TestDomainForceRemove: DEBUG: Deleting domain with force option
> testclient.testcase.TestDomainForceRemove: DEBUG: Waiting for account.cleanup.interval to cleanup any remaining resouces
> testclient.testcase.TestDomainForceRemove: DEBUG: account.cleanup.interval: 60
> testclient.testcase.TestDomainForceRemove: DEBUG: Checking if the resources in domain are deleted or not..
> --------------------- >> 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_accounts.py", line 1807, in test_forceDeleteDomain
> listall=True
> File "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line 129, in list
> return(apiclient.listAccounts(cmd))
> File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 519, in listAccounts
> 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: listaccounts failed, due to: errorCode: 431, errorText:Domain id=17 doesn't exist
--
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