Bug 968217

Summary: webadmin: for LSM, if a vm is a thin copy and the target domain is inactive we give an alert that the template does not exist on any of the domains
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engine-webadmin-portalAssignee: Daniel Erez <derez>
Status: CLOSED NOTABUG QA Contact: Aharon Canan <acanan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: abaron, acanan, acathrow, amureini, ecohen, iheim, jkt, Rhev-m-bugs, scohen
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0Flags: amureini: Triaged+
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-12 10:21:18 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
screen shots none

Description Dafna Ron 2013-05-29 08:49:34 UTC
Created attachment 754264 [details]
screen shots

Description of problem:

if we try to LSM a disk and the target dst domain is inactive, if the vm is a thin provision copy (based on template) we get an alert that the vm template does not exist on any of the domains. 
if the vm is an independent image we get a correct alert that no active domains were found. 

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

sf17.2

How reproducible:

100%

Steps to Reproduce:
1. in iscsi storage, create 2 domains located on different storage servers
2. create a vm from template and run it
3. block connectivity to the dst domain from all hosts using iptables
4. once the domain becomes inactive try to LSM the vm disk
5. move the mouse to the greyed out domain on the dialogue. 

Actual results:

we get the following error: 

The template that the VM is based on does not exist on any active storage domain. 

Expected results:

before checking if the template exists on any of the domain we should probably query the domains status. 

Additional info: screen shot

Comment 1 Ayal Baron 2013-09-12 10:21:18 UTC
The message is:
The template that the VM is based on does not exist on any *active* storage domain. 

It clearly states that there should be a template on an active target domain.