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

Bug 903189

Summary: [rhevm-webadmin] Remove button on warning message in export vm based on template action
Product: Red Hat Enterprise Virtualization Manager Reporter: vvyazmin <vvyazmin>
Component: ovirt-engine-webadmin-portalAssignee: Ayal Baron <abaron>
Status: CLOSED DUPLICATE QA Contact: vvyazmin <vvyazmin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: abaron, acathrow, amureini, dyasny, ecohen, hateya, iheim, Rhev-m-bugs, tnisan, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-28 12:57:10 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
## Logs vdsm, rhevm, screen-shots none

Description vvyazmin@redhat.com 2013-01-23 12:40:25 UTC
Created attachment 685856 [details]
## Logs vdsm, rhevm, screen-shots

Description of problem:
Unnecessary button on warning message in export vm based on template action

Version-Release number of selected component (if applicable):
RHEVM 3.2 - SF03 environment 

RHEVM: rhevm-3.2.0-4.el6ev.noarch
VDSM: vdsm-4.10.2-3.0.el6ev.x86_64
LIBVIRT: libvirt-0.10.2-13.el6.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64

How reproducible:
100%

Build on scenario BZ890932

Steps to Reproduce:
1. Create vm from template (Template Provisioning == Thin)
2. Export vm to Export Domain
3. Get warning: Template(s) not Found on Export Domain (screenshot attached) 
4. On UI Warning I have two buttons: OK & Cancel
  
Actual results:
If you click on OK button get en error: “Failed to export Vm vm-200 to Export-Domain”
If you click on Cancel button all works OK.


Expected results:
Remove OK button

Additional info:

/var/log/ovirt-engine/engine.log

2013-01-23 15:31:14,411 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.MoveImageGroupVDSCommand] (pool-3-thread-46) [3a59e90d] START, MoveImageGroupVDSCommand( storagePoolId =
 d13b88c1-89d1-416d-b35a-f5f5f4bc3b33, ignoreFailoverLimit = false, compatabilityVersion = 3.2, storageDomainId = 7cb486b6-2d76-4769-8556-ec4a49bbaee5, imageGroupId = 2b8be987-3
9dc-4359-92fc-356224981c12, dstDomainId = 8a3be915-f8c3-4ab7-b929-16a50cd9cd42, vmId = 59948f75-25dd-4732-9f37-f9cf376c2368, op = Copy, postZero = false, force = false), log id:
 2e672c31
2013-01-23 15:31:15,076 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (pool-3-thread-46) [3a59e90d] Command MoveImageGroupVDS execution failed. Exception: IrsOperationF
ailedNoFailoverException: IRSGenericException: IRSErrorException: Image does not exist in domain: 'image=2b8be987-39dc-4359-92fc-356224981c12, domain=8a3be915-f8c3-4ab7-b929-16a
50cd9cd42'
2013-01-23 15:31:15,077 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.MoveImageGroupVDSCommand] (pool-3-thread-46) [3a59e90d] FINISH, MoveImageGroupVDSCommand, log id: 2e672c
31
2013-01-23 15:31:15,077 ERROR [org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand] (pool-3-thread-46) [3a59e90d] Command org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand
 throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.irsbroker.IrsOperationFailedNoFailoverException: IRSGenericException: IRSErrorExcep
tion: Image does not exist in domain: 'image=2b8be987-39dc-4359-92fc-356224981c12, domain=8a3be915-f8c3-4ab7-b929-16a50cd9cd42'
2013-01-23 15:31:15,080 ERROR [org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand] (pool-3-thread-46) [3a59e90d] Transaction rolled-back for command: org.ovirt.engine.core.bl
l.MoveOrCopyImageGroupCommand.
2013-01-23 15:31:15,080 INFO  [org.ovirt.engine.core.utils.transaction.TransactionSupport] (pool-3-thread-46) [3a59e90d] transaction rolled back
2013-01-23 15:31:15,080 ERROR [org.ovirt.engine.core.bll.ExportVmCommand] (pool-3-thread-46) [3a59e90d] Command org.ovirt.engine.core.bll.ExportVmCommand throw Vdc Bll exception
. With error message VdcBLLException: Failed during ExportVmCommand
2013-01-23 15:31:15,088 INFO  [org.ovirt.engine.core.bll.ExportVmCommand] (pool-3-thread-46) [3a59e90d] Command [id=a8a233b1-4120-44d4-85f2-aa1ee6e58615]: Compensating CHANGED_S
TATUS_ONLY of org.ovirt.engine.core.common.businessentities.VmDynamic; snapshot: EntityStatusSnapshot [id=59948f75-25dd-4732-9f37-f9cf376c2368, status=Down].

/var/log/vdsm/vdsm.log

Thread-126233::ERROR::2013-01-23 15:31:10,285::hsm::1494::Storage.HSM::(validateImageMove) img 2b8be987-39dc-4359-92fc-356224981c12 can't be moved to dom 8a3be915-f8c3-4ab7-b929
-16a50cd9cd42 because template 452fe702-de09-4b19-9f33-570b7074202e is absent on it
Thread-126233::ERROR::2013-01-23 15:31:10,286::task::833::TaskManager.Task::(_setError) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 840, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/logUtils.py", line 38, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/storage/hsm.py", line 1521, in moveImage
    self.validateImageMove(srcDom, dstDom, imgUUID)
  File "/usr/share/vdsm/storage/hsm.py", line 1495, in validateImageMove
    raise se.ImageDoesNotExistInSD(imgUUID, dstDom.sdUUID)
ImageDoesNotExistInSD: Image does not exist in domain: 'image=2b8be987-39dc-4359-92fc-356224981c12, domain=8a3be915-f8c3-4ab7-b929-16a50cd9cd42'
Thread-126233::DEBUG::2013-01-23 15:31:10,286::task::852::TaskManager.Task::(_run) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::Task._run: c6d759b3-9348-4abd-8045-40502b516b38 (
'd13b88c1-89d1-416d-b35a-f5f5f4bc3b33', '7cb486b6-2d76-4769-8556-ec4a49bbaee5', '8a3be915-f8c3-4ab7-b929-16a50cd9cd42', '2b8be987-39dc-4359-92fc-356224981c12', '', 1, 'false', '
false') {} failed - stopping task
Thread-126233::DEBUG::2013-01-23 15:31:10,287::task::1177::TaskManager.Task::(stop) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::stopping in state preparing (force False)
Thread-126233::DEBUG::2013-01-23 15:31:10,287::task::957::TaskManager.Task::(_decref) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::ref 1 aborting True
Thread-126233::INFO::2013-01-23 15:31:10,287::task::1134::TaskManager.Task::(prepare) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::aborting: Task is aborted: 'Image does not exi
st in domain' - code 268
Thread-126233::DEBUG::2013-01-23 15:31:10,287::task::1139::TaskManager.Task::(prepare) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::Prepare: aborted: Image does not exist in dom
ain
Thread-126233::DEBUG::2013-01-23 15:31:10,288::task::957::TaskManager.Task::(_decref) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::ref 0 aborting True
Thread-126233::DEBUG::2013-01-23 15:31:10,288::task::892::TaskManager.Task::(_doAbort) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::Task._doAbort: force False
Thread-126233::DEBUG::2013-01-23 15:31:10,288::resourceManager::844::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}
Thread-126233::DEBUG::2013-01-23 15:31:10,288::task::568::TaskManager.Task::(_updateState) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::moving from state preparing -> state abor
ting
Thread-126233::DEBUG::2013-01-23 15:31:10,288::task::523::TaskManager.Task::(__state_aborting) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::_aborting: recover policy none
Thread-126233::DEBUG::2013-01-23 15:31:10,289::task::568::TaskManager.Task::(_updateState) Task=`c6d759b3-9348-4abd-8045-40502b516b38`::moving from state aborting -> state failed
Thread-126233::DEBUG::2013-01-23 15:31:10,289::resourceManager::809::ResourceManager.Owner::(releaseAll) Owner.releaseAll requests {} resources {}
Thread-126233::DEBUG::2013-01-23 15:31:10,289::resourceManager::844::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}
Thread-126233::ERROR::2013-01-23 15:31:10,289::dispatcher::66::Storage.Dispatcher.Protect::(run) {'status': {'message': "Image does not exist in domain: 'image=2b8be987-39dc-4359-92fc-356224981c12, domain=8a3be915-f8c3-4ab7-b929-16a50cd9cd42'", 'code': 268}}
Dummy-121576::DEBUG::2013-01-23 15:31:10,848::misc::83::Storage.Misc.excCmd::(<lambda>) 'dd if=/rhev/data-center/d13b88c1-89d1-416d-b35a-f5f5f4bc3b33/mastersd/dom_md/inbox iflag=direct,fullblock count=1 bs=1024000' (cwd None)

Comment 1 vvyazmin@redhat.com 2013-01-23 14:53:34 UTC
Additional info:

Already speak with R&D: Tal Nisan, and decided open a new bug, based on scenario BZ890932

Comment 2 Allon Mureinik 2013-01-23 17:04:08 UTC
Need to think of a better label than "cancel" for the remaining button.

Comment 3 Ayal Baron 2013-01-23 20:17:50 UTC
Either 'Ok' or 'Close' ?

Comment 4 Allon Mureinik 2013-01-24 11:10:09 UTC
'Close', IMHO.

Comment 5 Tal Nisan 2013-01-28 12:10:39 UTC
After consulting with Ayal, this is a supported scenario in which a VM based on template can be exported to an export domain even if the template does not exist in the domain, the failure occurs on VDSM side and should be fixed

Comment 6 Ayal Baron 2013-01-28 12:57:10 UTC

*** This bug has been marked as a duplicate of bug 882632 ***