Bug 1324402

Summary: fail to create snapshot when shutting off VM but snapshot listed
Product: [oVirt] vdsm Reporter: Han Han <hhan>
Component: GeneralAssignee: Dan Kenigsberg <danken>
Status: CLOSED WONTFIX QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: low    
Version: 4.16.36CC: bugs, dyuan, hhan, michal.skrivanek, pzhang, smelamud, tjelinek, xuzhang, yanyang
Target Milestone: ---Flags: sbonazzo: ovirt-4.2-
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-24 10:12:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screenshots
none
ovirt and vdsm logs none

Description Han Han 2016-04-06 09:24:02 UTC
Created attachment 1144132 [details]
screenshots

Description of problem:
Power off the VM immediately when start creating snapshot. RHEVM log shows snapshot created failed but we can see the snapshot.

Version-Release number of selected component (if applicable):
Host:
libvirt-0.10.2-60.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.491.el6.x86_64
vdsm-4.16.36-1.el6ev.x86_64
RHEVM:
rhevm-3.6.3.4-0.1.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install a VM in RHEVM
1) Create a data center using Compatibility Version 3.5
2) Create a cluster belonging to the previous data center. CPU Architecture is x86_64, CPU Type is AMD Opteron G1, Compatibility Version 3.5.
3) Add a AMD host belonging to the previous cluster
4) Add a NFS storage.
5) Install a RHEL7 guest named VM.
2. When guest is running, create a mem&disk snapshot s1, then power off the guest immediately. As screenshot1&screenshot2 shows.

Actual results:
RHEVM messages:Failed to complete snapshot 's1' creation for VM 'VM'.
But we can find s1 is in the list.

Expected results:
Snapshot created failed, no snapshot listed.

Additional info:

Comment 1 Han Han 2016-04-06 09:25:56 UTC
Created attachment 1144133 [details]
ovirt and vdsm logs

Comment 2 Tomas Jelinek 2016-04-13 10:30:36 UTC
@Han Han: Can you remove this snapshot manuaklly or is it in some locked state? Is the VM OK after this action (e.g. can you normally start it etc?)

Comment 3 Han Han 2016-04-13 10:58:11 UTC
(In reply to Tomas Jelinek from comment #2)
> @Han Han: Can you remove this snapshot manuaklly or is it in some locked
> state? Is the VM OK after this action (e.g. can you normally start it etc?)

The snapshot can be deleted via rhevm. VM is ok to use.

Comment 4 Michal Skrivanek 2016-12-21 09:08:20 UTC
The bug was not addressed in time for 4.1. Postponing to 4.2

Comment 5 Michal Skrivanek 2017-08-22 08:35:21 UTC
we cannot prevent guest from shutdown during the operation. Is it just mishandling of the failure? Shmuel?

Comment 6 Michal Skrivanek 2017-11-24 10:12:47 UTC
didn't get to it in 4.2 either. It doesn't sound as it's causing any harm, closing then...

Comment 7 Shmuel Melamud 2018-06-06 17:38:26 UTC
Clearing needinfo.