Bug 1149092

Summary: User portal error message when changing VM cluster inconsistent with webadmin
Product: Red Hat Enterprise Virtualization Manager Reporter: Tomas Jamrisko <tjamrisk>
Component: ovirt-engineAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED CURRENTRELEASE QA Contact: Meni Yakove <myakove>
Severity: low Docs Contact:
Priority: low    
Version: 3.5.0CC: alkaplan, danken, gklein, lsurette, mburman, michal.skrivanek, nyechiel, rbalakri, Rhev-m-bugs, srevivo, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rcFlags: ylavi: Triaged+
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Error message the user will now see is uniform in both admin and user UI: "Cannot edit VM Cluster. Selected Cluster is missing one or more networks vm_dynamic that is used by VM."
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:11:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Jamrisko 2014-10-03 08:17:40 UTC
Description of problem:
Our rhevm3.5 instance has two clusters. One with RHEL6.6 hosts, the other 7.1. There are some differences in network configuration, so the clusters don't provide the same vNIC profiles.

When changing cluster in this setup, User Portal reports: 
"Updating VM's Cluster cannot be performed through update VM action, please use Change VM Cluster action instead.

Which is weird, as performing the same action in admin portal results in a lot more useful message: 
"Cannot edit VM Cluster. Selected Cluster is missing one or more networks vm_dynamic that is used by VM."
  
Version-Release number of selected component (if applicable):
vt4 (3.5.0-0.13.beta)

How reproducible:
100%

Steps to Reproduce:
1. Have two clusters with different vNIC profiles
2. Create a VM with NIC in one of them
3. Try changing cluster

Actual results:
The "wrong" message

Expected results:
The "correct" message

Comment 1 Marcin Mirecki 2015-08-20 13:10:01 UTC
It looks like the actual message is the same in both cases, but the customer portal invokes one more command which displays the 'wrong message'.
Both the admin portal and the user portal display the correct message after invoking: ChangeVMClusterCommand, which shows the correct message. In case of the user portal, the message is immediately replaced by a message from  UpdateVmCommand (which is not invoked by the admin portal)

Comment 2 Michael Burman 2015-09-22 06:16:57 UTC
Verified on - 3.6.0-0.16.master.el6

User Portal now report the same error message as the Admin Portal