[ https://issues.apache.org/jira/browse/CLOUDSTACK-9518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541934#comment-15541934 ]
Abhinandan Prateek commented on CLOUDSTACK-9518: ------------------------------------------------ As per code this failure seems to be by design: The marvin test is taking a VM snapshot followed by snapshot of root volume. There is a check "// Check that Vm to which this volume is attached does not have VM Snapshots". As per specs https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Snapshots , only concurrent snapshotting is not allowed. Below is the commit that placed that restriction: commit a4d8215ebba6009fc4b17ef7b61ff51238f0f404 Author: Anshul Gangwar <anshul.gang...@citrix.com> Date: Thu Oct 9 10:37:21 2014 +0530 CLOUDSTACK-7688, CLOUDSTACK-7747: restricted various operations for VM with VM snapshots which breaks VM snapshots. Now they are informed that they cannot perform the operation. To perform operation they have to remove VM snapshots of VM. > test_01_test_vm_volume_snapshot Smoke Test Fails > ------------------------------------------------ > > Key: CLOUDSTACK-9518 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9518 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: mavin > Affects Versions: 4.8.1 > Environment: CentOS 7.2 + VMware 5.5u3 + NFS Primary/Secondary Storage > CentOS 7.2 + XenServer 6.5 + NFS Primary/Secondary Storage > Reporter: John Burwell > Assignee: Abhinandan Prateek > Priority: Critical > Labels: 4.8.2.0-smoke-test-failure > Fix For: 4.10.0.0, 4.9.1.0, 4.8.2.0 > > Attachments: test_vm_snapshots.py.xml > > > The {{test_01_test_vm_volume_snapshot}} test case in the {{test_vm_snapshot}} > is failing with the following error: > {code} > 2016-09-28 00:33:18,076 - CRITICAL - EXCEPTION: > test_01_test_vm_volume_snapshot: ['Traceback (most recent call last):\n', ' > File "/u sr/lib64/python2.7/unittest/case.py", line 369, in run\n > testMethod()\n', ' File "/marvin/tests/smoke/test_vm_snapshots.py", line > 399, in test_01_test_vm_volume_snapshot\n > domainid=self.account.domainid\n', ' File > "/usr/lib/python2.7/site-packages/marvin/lib/base.py", l ine 1106, in > create\n return Snapshot(apiclient.createSnapshot(cmd).__dict__)\n', ' > File "/usr/lib/python2.7/site-packages/marvin/cloud > stackAPI/cloudstackAPIClient.py", line 3102, in createSnapshot\n response > = self.connection.marvinRequest(command, response_type=respons e, > method=method)\n', ' File > "/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 379, > in marvinRequest\n raise e\n' , 'CloudstackAPIException: Execute cmd: > createsnapshot failed, due to: errorCode: 431, errorText:Volume snapshot is > not allowed, please det ach it from VM with VM Snapshots\n'] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)