Chandan Purushothama created CLOUDSTACK-7146:
------------------------------------------------

             Summary: [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 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 << 



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

Reply via email to