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-8138) [Automation] test_15_revert_vm_to_snapshot : VM state should be stopped before revert
Date Wed, 31 Dec 2014 10:36:13 GMT

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

Gaurav Aradhye updated CLOUDSTACK-8138:
---------------------------------------
    Status: Reviewable  (was: In Progress)

> [Automation] test_15_revert_vm_to_snapshot : VM state should be stopped before revert
> -------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8138
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8138
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Rayees Namathponnan
>            Assignee: Gaurav Aradhye
>
> In test case integration.component.test_escalations_instances.TestInstances.test_15_revert_vm_to_snapshot
, we should check VM state is stopped before VM revert 
>     # Stop Virtual machine befor reverting VM to a snapshot taken without memory
>         vm_created.stop(self.userapiclient)
>         # Reverting the VM to Snapshot 1
>         VmSnapshot.revertToSnapshot(
>             self.userapiclient,
>             snapshot1.id
>         )
>         # L
> Currently test cases failing with below error 
>  File "/usr/lib/python2.7/unittest/case.py", line 332, in run
>     testMethod()
>   File "/root/cloudstack/test/integration/component/test_escalations_instances.py", line
2632, in test_15_revert_vm_to_snapshot
>     snapshot1.id
>   File "/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 4337, in revertToSnapshot
>     return apiclient.revertToVMSnapshot(cmd)
>   File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 2846, in revertToVMSnapshot
>     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-12-25T07:29:06+0000\', cmd : u\'org.apache.cloudstack.api.command.user.vmsnapshot.RevertToVMSnapshotCmd\',
userid : u\'212c570b-9e91-4d14-8198-051a46ae7181\', jobstatus : 2, jobid : u\'6d31ff1b-bba0-43b6-bdbd-a0c93bee1110\',
jobresultcode : 530, jobresulttype : u\'object\', jobresult : {errorcode : 431, errortext
: u\'VM Snapshot revert not allowed. This will result in VM state change. You can revert running
VM to disk and memory type snapshot and stopped VM to disk type snapshot\'}, accountid : u\'ceda5a6d-9ab1-4029-ab0c-5ad80b3d8cba\'}\n



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message