You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Chandan Purushothama (JIRA)" <ji...@apache.org> on 2014/07/22 00:24:38 UTC

[jira] [Updated] (CLOUDSTACK-7146) [Automation] Fix the script "test_assign_vm.py" - Cleanup of domain should be done after cleaning up account in it

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan Purushothama updated CLOUDSTACK-7146:
---------------------------------------------

    Description: 
============
Error Messages:
============
-------
One:
-------
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Payload: {'signature': 'ctoosHX10fXC2XJv8iFdUiNqV5Q=', 'apiKey': u'K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA', 'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'ebbf78c7-5a1d-4051-8404-26314a59151a'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.41
requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=ctoosHX10fXC2XJv8iFdUiNqV5Q%3D&apiKey=K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA&command=queryAsyncJobResult&response=json&jobid=ebbf78c7-5a1d-4051-8404-26314a59151a HTTP/1.1" 200 477
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Response : {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): ERROR: ==== __poll: Exception Occurred :Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'} ====
Traceback (most recent call last):
  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 105, in __poll
    % async_response)
Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Response : FAILED
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): ERROR: marvinRequest : CmdName: <marvin.cloudstackAPI.deleteDomain.deleteDomainCmd object at 0x3844810> Exception: ['Traceback (most recent call last):\n', '  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest\n    raise self.__lastError\n', 'Exception: Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
Traceback (most recent call last):
  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest
    raise self.__lastError
Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): CRITICAL: EXCEPTION: test_16_move_across_subdomain_volume_and_account_limit: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run\n    self.tearDown()\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown\n    self.teardownContext(ancestor)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext\n    try_run(context, names)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run\n    return func()\n', '  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_assign_vm.py", line 170, in tearDownClass\n    raise Exception("Warning: Exception during cleanup : %s" % e)\n', 'Exception: Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
--------------------- >> end captured logging << ---------------------

Stacktrace

  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
    self.tearDown()
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
    self.teardownContext(ancestor)
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext
    try_run(context, names)
  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run
    return func()
  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_assign_vm.py", line 170, in tearDownClass
    raise Exception("Warning: Exception during cleanup : %s" % e)
'Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n-------------------- >> begin captured logging << 

-------
Two:
-------

test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Payload: {'signature': 'AkGXg4GmidBgHycP9sZ85qZreR8=', 'apiKey': u'K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA', 'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6'}
test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.41
requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=AkGXg4GmidBgHycP9sZ85qZreR8%3D&apiKey=K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA&command=queryAsyncJobResult&response=json&jobid=0c24fe8d-2418-44ab-9917-92fdefb2f4e6 HTTP/1.1" 200 477
test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Response : {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): ERROR: ==== __poll: Exception Occurred :Job failed: {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'} ====
Traceback (most recent call last):
  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 105, in __poll
    % async_response)
Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Response : FAILED
test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): ERROR: marvinRequest : CmdName: <marvin.cloudstackAPI.deleteDomain.deleteDomainCmd object at 0x313bf10> Exception: ['Traceback (most recent call last):\n', '  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest\n    raise self.__lastError\n', 'Exception: Job failed: {jobprocstatus : 0, created : u\'2014-07-12T08:08:01+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'0c24fe8d-2418-44ab-9917-92fdefb2f4e6\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
Traceback (most recent call last):
  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest
    raise self.__lastError
Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): CRITICAL: EXCEPTION: test_07_templates_per_project: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run\n    self.tearDown()\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown\n    self.teardownContext(ancestor)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext\n    try_run(context, names)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run\n    return func()\n', '  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_project_limits.py", line 561, in tearDownClass\n    raise Exception("Warning: Exception during cleanup : %s" % e)\n', 'Exception: Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-12T08:08:01+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'0c24fe8d-2418-44ab-9917-92fdefb2f4e6\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
--------------------- >> end captured logging << ---------------------

Stacktrace

  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
    self.tearDown()
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
    self.teardownContext(ancestor)
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext
    try_run(context, names)
  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run
    return func()
  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_project_limits.py", line 561, in tearDownClass
    raise Exception("Warning: Exception during cleanup : %s" % e)
'Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-12T08:08:01+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'0c24fe8d-2418-44ab-9917-92fdefb2f4e6\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n-------------------- >> begin captured logging << --------------------\ntest_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Payload: {\'signature\': \'vPgNo1lkxtTK3ST6JD22uCBVZ1c=\', \'apiKey\':

  was:

============
Error Message:
============

test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Payload: {'signature': 'ctoosHX10fXC2XJv8iFdUiNqV5Q=', 'apiKey': u'K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA', 'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'ebbf78c7-5a1d-4051-8404-26314a59151a'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.41
requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=ctoosHX10fXC2XJv8iFdUiNqV5Q%3D&apiKey=K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA&command=queryAsyncJobResult&response=json&jobid=ebbf78c7-5a1d-4051-8404-26314a59151a HTTP/1.1" 200 477
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Response : {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): ERROR: ==== __poll: Exception Occurred :Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'} ====
Traceback (most recent call last):
  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 105, in __poll
    % async_response)
Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Response : FAILED
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): ERROR: marvinRequest : CmdName: <marvin.cloudstackAPI.deleteDomain.deleteDomainCmd object at 0x3844810> Exception: ['Traceback (most recent call last):\n', '  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest\n    raise self.__lastError\n', 'Exception: Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
Traceback (most recent call last):
  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest
    raise self.__lastError
Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): CRITICAL: EXCEPTION: test_16_move_across_subdomain_volume_and_account_limit: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run\n    self.tearDown()\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown\n    self.teardownContext(ancestor)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext\n    try_run(context, names)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run\n    return func()\n', '  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_assign_vm.py", line 170, in tearDownClass\n    raise Exception("Warning: Exception during cleanup : %s" % e)\n', 'Exception: Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
--------------------- >> end captured logging << ---------------------

Stacktrace

  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
    self.tearDown()
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
    self.teardownContext(ancestor)
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext
    try_run(context, names)
  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run
    return func()
  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_assign_vm.py", line 170, in tearDownClass
    raise Exception("Warning: Exception during cleanup : %s" % e)
'Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n-------------------- >> begin captured logging << 


> [Automation] Fix the script "test_assign_vm.py" - Cleanup of domain should be done after cleaning up account in it
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7146
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7146
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation, Test
>    Affects Versions: 4.5.0
>            Reporter: Chandan Purushothama
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> ============
> Error Messages:
> ============
> -------
> One:
> -------
> test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Payload: {'signature': 'ctoosHX10fXC2XJv8iFdUiNqV5Q=', 'apiKey': u'K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA', 'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'ebbf78c7-5a1d-4051-8404-26314a59151a'}
> test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.41
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=ctoosHX10fXC2XJv8iFdUiNqV5Q%3D&apiKey=K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA&command=queryAsyncJobResult&response=json&jobid=ebbf78c7-5a1d-4051-8404-26314a59151a HTTP/1.1" 200 477
> test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Response : {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
> test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): ERROR: ==== __poll: Exception Occurred :Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'} ====
> Traceback (most recent call last):
>   File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 105, in __poll
>     % async_response)
> Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
> test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): DEBUG: Response : FAILED
> test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): ERROR: marvinRequest : CmdName: <marvin.cloudstackAPI.deleteDomain.deleteDomainCmd object at 0x3844810> Exception: ['Traceback (most recent call last):\n', '  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest\n    raise self.__lastError\n', 'Exception: Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
> Traceback (most recent call last):
>   File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest
>     raise self.__lastError
> Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-11T16:11:24+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'ebbf78c7-5a1d-4051-8404-26314a59151a', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
> test_16_move_across_subdomain_volume_and_account_limit (integration.component.test_assign_vm.TestVMOwnership): CRITICAL: EXCEPTION: test_16_move_across_subdomain_volume_and_account_limit: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run\n    self.tearDown()\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown\n    self.teardownContext(ancestor)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext\n    try_run(context, names)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run\n    return func()\n', '  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_assign_vm.py", line 170, in tearDownClass\n    raise Exception("Warning: Exception during cleanup : %s" % e)\n', 'Exception: Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
> --------------------- >> end captured logging << ---------------------
> Stacktrace
>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
>     self.tearDown()
>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
>     self.teardownContext(ancestor)
>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext
>     try_run(context, names)
>   File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run
>     return func()
>   File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_assign_vm.py", line 170, in tearDownClass
>     raise Exception("Warning: Exception during cleanup : %s" % e)
> 'Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-11T16:11:24+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'ebbf78c7-5a1d-4051-8404-26314a59151a\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n-------------------- >> begin captured logging << 
> -------
> Two:
> -------
> test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Payload: {'signature': 'AkGXg4GmidBgHycP9sZ85qZreR8=', 'apiKey': u'K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA', 'command': 'queryAsyncJobResult', 'response': 'json', 'jobid': u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6'}
> test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: ========Sending GET Cmd : queryAsyncJobResult=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.41
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=AkGXg4GmidBgHycP9sZ85qZreR8%3D&apiKey=K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA&command=queryAsyncJobResult&response=json&jobid=0c24fe8d-2418-44ab-9917-92fdefb2f4e6 HTTP/1.1" 200 477
> test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Response : {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
> test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): ERROR: ==== __poll: Exception Occurred :Job failed: {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'} ====
> Traceback (most recent call last):
>   File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 105, in __poll
>     % async_response)
> Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
> test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Response : FAILED
> test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): ERROR: marvinRequest : CmdName: <marvin.cloudstackAPI.deleteDomain.deleteDomainCmd object at 0x313bf10> Exception: ['Traceback (most recent call last):\n', '  File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest\n    raise self.__lastError\n', 'Exception: Job failed: {jobprocstatus : 0, created : u\'2014-07-12T08:08:01+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'0c24fe8d-2418-44ab-9917-92fdefb2f4e6\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
> Traceback (most recent call last):
>   File "/local/jenkins/workspace/xenrt-reg-adv-xs/work.63/env/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 375, in marvinRequest
>     raise self.__lastError
> Exception: Job failed: {jobprocstatus : 0, created : u'2014-07-12T08:08:01+0000', cmd : u'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd', userid : u'ce302410-0901-11e4-a9bc-5a9383355ca2', jobstatus : 2, jobid : u'0c24fe8d-2418-44ab-9917-92fdefb2f4e6', jobresultcode : 530, jobresulttype : u'object', jobresult : {errorcode : 530, errortext : u"Can't delete the domain yet because it has 1 accounts to cleanup"}, accountid : u'ce30160a-0901-11e4-a9bc-5a9383355ca2'}
> test_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): CRITICAL: EXCEPTION: test_07_templates_per_project: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run\n    self.tearDown()\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown\n    self.teardownContext(ancestor)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext\n    try_run(context, names)\n', '  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run\n    return func()\n', '  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_project_limits.py", line 561, in tearDownClass\n    raise Exception("Warning: Exception during cleanup : %s" % e)\n', 'Exception: Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-12T08:08:01+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'0c24fe8d-2418-44ab-9917-92fdefb2f4e6\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n']
> --------------------- >> end captured logging << ---------------------
> Stacktrace
>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
>     self.tearDown()
>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
>     self.teardownContext(ancestor)
>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext
>     try_run(context, names)
>   File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run
>     return func()
>   File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_project_limits.py", line 561, in tearDownClass
>     raise Exception("Warning: Exception during cleanup : %s" % e)
> 'Warning: Exception during cleanup : Job failed: {jobprocstatus : 0, created : u\'2014-07-12T08:08:01+0000\', cmd : u\'org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd\', userid : u\'ce302410-0901-11e4-a9bc-5a9383355ca2\', jobstatus : 2, jobid : u\'0c24fe8d-2418-44ab-9917-92fdefb2f4e6\', jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 530, errortext : u"Can\'t delete the domain yet because it has 1 accounts to cleanup"}, accountid : u\'ce30160a-0901-11e4-a9bc-5a9383355ca2\'}\n-------------------- >> begin captured logging << --------------------\ntest_07_templates_per_project (integration.component.test_project_limits.TestResourceLimitsProject): DEBUG: Payload: {\'signature\': \'vPgNo1lkxtTK3ST6JD22uCBVZ1c=\', \'apiKey\':



--
This message was sent by Atlassian JIRA
(v6.2#6252)