[
https://issues.apache.org/jira/browse/CLOUDSTACK-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chandan Purushothama closed CLOUDSTACK-7437.
--------------------------------------------
Closing the bug as it is no longer seen in automation run.
> [Automation] Fix the script "test_escalations_snapshots.py" - unable to find
> a snapshot with id
> -----------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7437
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7437
> 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
> Fix For: 4.5.0
>
>
> Do not add the created snapshot to the cleanup resources since it has been
> consciously deleted during the test case (test_01). Since the snapshot is no
> longer there the cleanup_resources method results in an error.
> integration.component.test_escalations_snapshots.TestSnapshots.test_01_list_volume_snapshots_pagination
> (from nosetests)
> *Error Message*
> Job failed: {jobprocstatus : 0, created : u'2014-08-24T19:01:28+0000',
> jobresult : {errorcode : 530, errortext : u'unable to find a snapshot with id
> 43'}, cmd :
> u'org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd', userid
> : u'77df13d2-2b4d-11e4-89bd-1e5d0e053e75', jobstatus : 2, jobid :
> u'0fb9d284-9908-4e37-b176-b83eb2792399', jobresultcode : 530, jobinstanceid :
> u'2b4a7334-c477-4dbb-a870-3a6c1ed5fcfb', jobresulttype : u'object',
> jobinstancetype : u'Snapshot', accountid :
> u'77df055e-2b4d-11e4-89bd-1e5d0e053e75'} Logs available at
> http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=escalations_snapsh
> *Stacktrace*
> File "/usr/lib/python2.7/unittest/case.py", line 361, in run
> self.tearDown()
> File
> "/root/cloudstack/test/integration/component/test_escalations_snapshots.py",
> line 106, in tearDown
> cleanup_resources(self.apiClient, self.cleanup)
> File "/usr/local/lib/python2.7/dist-packages/marvin/lib/utils.py", line
> 121, in cleanup_resources
> obj.delete(api_client)
> File "/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 986,
> in delete
> apiclient.deleteSnapshot(cmd)
> File
> "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 784, in deleteSnapshot
> response = self.connection.marvinRequest(command, response_type=response,
> method=method)
> File
> "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line
> 379, in marvinRequest
> raise e
> 'Job failed: {jobprocstatus : 0, created : u\'2014-08-24T19:01:28+0000\',
> jobresult : {errorcode : 530, errortext : u\'unable to find a snapshot with
> id 43\'}, cmd :
> u\'org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd\',
> userid : u\'77df13d2-2b4d-11e4-89bd-1e5d0e053e75\', jobstatus : 2, jobid :
> u\'0fb9d284-9908-4e37-b176-b83eb2792399\', jobresultcode : 530, jobinstanceid
> : u\'2b4a7334-c477-4dbb-a870-3a6c1ed5fcfb\', jobresulttype : u\'object\',
> jobinstancetype : u\'Snapshot\', accountid :
> u\'77df055e-2b4d-11e4-89bd-1e5d0e053e75\'}\n
> Logs available at
> http://xenrt.hq.xensource.com/control/queue.cgi?action=testlogs&id=804076&phase=Parallel&test=escalations_snapsh
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)