Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 840304

Summary: ovirt-engine-backend [TEXT]: several error messages refer to a failed export of a vm as failed export of template
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Vered Volansky <vered>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: low Docs Contact:
Priority: medium    
Version: 3.1.0CC: abaron, amureini, dyasny, hateya, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:09:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log none

Description Dafna Ron 2012-07-15 16:01:27 UTC
Created attachment 598312 [details]
log

Description of problem:

I tried exporting a vm while creating/deleting/in preview/commit/undo/clone a snapshot and the error message we are getting is: 

Error while executing action: Cannot copy Template. The VM is performing an operation on a Snapshot. Please wait for the operation to finish, and try again.

OR 

Error while executing action: Cannot copy Template: VM's image is locked. Please try again in a few minutes.


Version-Release number of selected component (if applicable):

si10

How reproducible:

100%

Steps to Reproduce:
1. create/delete/preview/commit/clone a snapshot for a vm 
2. try to export try to export the vm 
3.
  
Actual results:

we fail but refer to VM as Template 

Expected results:

we should change the Error to something more general or when failing template -> template when failing vm -> vm

Additional info: full engine log attached

Comment 1 Dafna Ron 2012-07-15 16:03:28 UTC
same issue when adding/removing disks

Comment 2 Asaf Shakarchi 2012-09-10 11:17:23 UTC
I checked the code, it sets the entity type properly,
I also tested the result in the gui, I get:

"Error while executing action: Cannot export VM: The disks rhevl6-vm1_Disk2 are locked. Please try again in a few minutes."

And

"Error while executing action: Cannot export VM: The VM is performing an operation on a Snapshot. Please wait for the operation to finish, and try again."


Dafna, can you re-test please ?

Comment 3 Dafna Ron 2012-09-10 11:21:37 UTC
did you reproduce with these steps: 

Steps to Reproduce:
1. create/delete/preview/commit/clone a snapshot for a vm 
2. try to export the vm 
3.

Comment 4 Vered Volansky 2012-09-27 08:08:09 UTC
Fixed for 3.1 since it's a short, easy fix and fixed a regression.

The original bug wasn't reproduced as the error messages were mostly correct using the exact flow described above.
Only problem was with export during commit: the error message was:
"Error while executing action: Cannot export VM. The VM status is illegal.", while the VM's status is locked and not illegal. Fixed message to the correct one:

http://gerrit.ovirt.org/#/c/8078/

Comment 6 Vered Volansky 2012-09-27 12:16:17 UTC
A mistake, fixed request, thanks.

Comment 7 Allon Mureinik 2012-10-11 13:32:44 UTC
Merged I2edb7b8c946589f3bbad251d533704fe856bc175

Comment 8 Dafna Ron 2012-10-21 11:41:57 UTC
verified on si21.1