Red Hat Bugzilla – Bug 819291
ovirt-engine-backend [TEXT]: please change "VM image is locked" to "Disk X is locked" error on all disk actions
Last modified: 2016-02-10 11:36:25 EST
Created attachment 582427 [details]
Description of problem:
trying to create a template after I started a move disk operation gives an error:
Cannot add Template: VM's image is locked. Please try again in a few minutes.
since vm is no longer locked for actions that involve only disk operation we should change this error to "Disk X is locked" and not "Vm's image is locked"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. move a disk between two domains
2. try to create template
only the disk is in locked state (sub tab under vm or disk tab) and vm is does not appear locked.
Error message should be changed
2012-05-06 13:12:01,719 WARN [org.ovirt.engine.core.bll.AddVmTemplateCommand] (ajp--0.0.0.0-8009-7) [4dd3872c] CanDoAction of action AddVmTemplate failed. Reasons:VAR__ACTION__
If we don't have the name of the specific image name, we should changed the message to be more general. VM in lock state (probably, one it's disk images is currently locked by asynchronous storage operation).
Checked by creating a VM, installing OS on it, moving the disk to a different domain and then attempting to create a template.
Error message in the web GUI now reads:
Cannot add Template: The disks <disk_name> are locked. Please try again in a few minutes.