cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Aradhye (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-7444) [Automation] Fix the script "test_snapshots_improvement.py" - Templates are registered as admin's
Date Wed, 27 Aug 2014 16:27:58 GMT

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

Gaurav Aradhye updated CLOUDSTACK-7444:
---------------------------------------

    Status: Reviewable  (was: In Progress)

> [Automation] Fix the script "test_snapshots_improvement.py" - Templates are registered
as admin's
> -------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7444
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7444
>             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
>            Assignee: Gaurav Aradhye
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> Template got registered as admin's . Please correct the template registration part of
the code.
> client log info:
> {code}
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-24T14:39:48+0000', jobresult : {template
: {domain : u'ROOT', domainid : u'56ab18f0-2b4d-11e4-89bd-1e5d0e053e75', ostypename : u'CentOS
5.3 (64-bit)', zoneid : u'eb811e7d-59d4-4c72-a965-80d9e30572d1', displaytext : u'Public Template',
ostypeid : u'56b1e2f2-2b4d-11e4-89bd-1e5d0e053e75', passwordenabled : False, id : u'84226c9b-7bdb-4273-92f4-de4232018779',
size : 21474836480, isready : True, format : u'VHD', templatetype : u'USER', details : {platform
: u'viridian:true;acpi:1;apic:true;pae:true;nx:true', hypervisortoolsversion : u'xenserver56'},
zonename : u'XenRT-Zone-0', status : u'Download Complete', isdynamicallyscalable : False,
tags : [], isfeatured : False, sshkeyenabled : False, account : u'admin', isextractable :
True, crossZones : False, sourcetemplateid : u'56af8f20-2b4d-11e4-89bd-1e5d0e053e75', name
: u'Public template-F700B7', created : u'2014-08-24T14:39:48+0000', hypervisor : u'XenServer',
ispublic : False}}, cmd : u'org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin',
userid : u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 1, jobid : u'dd5857f2-f08f-4121-aa31-b83dfdb1bb3c',
jobresultcode : 0, jobinstanceid : u'84226c9b-7bdb-4273-92f4-de4232018779', jobresulttype
: u'object', jobinstancetype : u'Template', accountid : u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'}
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
DEBUG: ===Jobid:dd5857f2-f08f-4121-aa31-b83dfdb1bb3c ; StartTime:Sun Aug 24 14:39:48 2014
; EndTime:Sun Aug 24 14:42:39 2014 ; TotalTime:-170===
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
DEBUG: Response : {jobprocstatus : 0, created : u'2014-08-24T14:39:48+0000', jobresult : {template
: {domain : u'ROOT', domainid : u'56ab18f0-2b4d-11e4-89bd-1e5d0e053e75', ostypename : u'CentOS
5.3 (64-bit)', zoneid : u'eb811e7d-59d4-4c72-a965-80d9e30572d1', displaytext : u'Public Template',
ostypeid : u'56b1e2f2-2b4d-11e4-89bd-1e5d0e053e75', passwordenabled : False, id : u'84226c9b-7bdb-4273-92f4-de4232018779',
size : 21474836480, isready : True, format : u'VHD', templatetype : u'USER', details : {platform
: u'viridian:true;acpi:1;apic:true;pae:true;nx:true', hypervisortoolsversion : u'xenserver56'},
zonename : u'XenRT-Zone-0', status : u'Download Complete', isdynamicallyscalable : False,
tags : [], isfeatured : False, sshkeyenabled : False, account : u'admin', isextractable :
True, crossZones : False, sourcetemplateid : u'56af8f20-2b4d-11e4-89bd-1e5d0e053e75', name
: u'Public template-F700B7', created : u'2014-08-24T14:39:48+0000', hypervisor : u'XenServer',
ispublic : False}}, cmd : u'org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin',
userid : u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 1, jobid : u'dd5857f2-f08f-4121-aa31-b83dfdb1bb3c',
jobresultcode : 0, jobinstanceid : u'84226c9b-7bdb-4273-92f4-de4232018779', jobresulttype
: u'object', jobinstancetype : u'Template', accountid : u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'}
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
DEBUG: Verifying if templates are created properly or not?
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
DEBUG: Payload: {'account': u'test-TestSnapshotOnRootVolume-test_03_concurrent_snapshots_create_template-W9TVVS',
'domainid': u'56ab18f0-2b4d-11e4-89bd-1e5d0e053e75', 'templatefilter': 'self', 'apiKey': u'YuaraAK9l9g2KJCAw3APnrD2aNpVmhAesCvWFxlDvGCb0NcARH_sKQxfRM6WF-SCAxikI8awlxCrmw010lUFzg',
'command': 'listTemplates', 'signature': 'zJQCgISMf3oet7mRddSfirrJ2ME=', 'response': 'json',
'listall': True}
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
DEBUG: ========Sending GET Cmd : listTemplates=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.69
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?account=test-TestSnapshotOnRootVolume-test_03_concurrent_snapshots_create_template-W9TVVS&domainid=56ab18f0-2b4d-11e4-89bd-1e5d0e053e75&templatefilter=self&apiKey=YuaraAK9l9g2KJCAw3APnrD2aNpVmhAesCvWFxlDvGCb0NcARH_sKQxfRM6WF-SCAxikI8awlxCrmw010lUFzg&command=listTemplates&signature=zJQCgISMf3oet7mRddSfirrJ2ME%3D&response=json&listall=True
HTTP/1.1" 200 33
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
DEBUG: Response : None
> test_03_concurrent_snapshots_create_template (integration.component.test_snapshots_improvement.TestCreateSnapshot):
CRITICAL: FAILED: test_03_concurrent_snapshots_create_template: ['Traceback (most recent call
last):\n', '  File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n    testMethod()\n',
'  File "/root/cloudstack/test/integration/component/test_snapshots_improvement.py", line
630, in test_03_concurrent_snapshots_create_template\n    "Check if result exists in list
item call")\n', '  File "/usr/lib/python2.7/unittest/case.py", line 525, in assertNotEqual\n
   raise self.failureException(msg)\n', 'AssertionError: Check if result exists in list item
call\n']
> --------------------- >> end captured logging << ---------------------
> {code}
> *Error Message*
> Check if result exists in list item call   Logs available at http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=snapshots_improvem
> *Stacktrace*
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
>     testMethod()
>   File "/root/cloudstack/test/integration/component/test_snapshots_improvement.py", line
630, in test_03_concurrent_snapshots_create_template
>     "Check if result exists in list item call")
>   File "/usr/lib/python2.7/unittest/case.py", line 525, in assertNotEqual
>     raise self.failureException(msg)
> 'Check if result exists in list item call\n
> Logs available at http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=snapshots_improvem
	



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

Mime
View raw message