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

Bug 878451

Summary: [RHEVM] [webadmin] [TEXT] extend error for pinned host missing non required network
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Pavlik <mpavlik>
Component: ovirt-engine-webadmin-portalAssignee: Alona Kaplan <alkaplan>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Pavlik <mpavlik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: alkaplan, derez, dyasny, ecohen, gklein, iheim, masayag, mavital, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: sf10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 915537, 922807, 948448    
Attachments:
Description Flags
engine.log
none
screenshot 1 none

Description Martin Pavlik 2012-11-20 13:21:40 UTC
Created attachment 648461 [details]
engine.log

Description of problem:
If VM has attached certain non-required network and user tries to run the VM pinned to specific host which does not have the non-required network. Folowing error message appears.

Error while executing action: Cannot run VM. VM is pinned to a specific Host but cannot run on it due to:
Invalid Host status or not enough free resources on it.
You may free resources on the Host by migrating other VMs.

It doesn t give a clue to user what is actually wrong.


Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Manager Version: 3.1.0-30.el6ev 

How reproducible:
100%

Steps to Reproduce:
Two Hosts (Host1, Host2)

Actions
1. Create logcial network and attach to cluster
2. configure new network as required=false
3. add network only to one host (Host1)
4. create VM, attach new network to VM, try to start VM on the Host2
 

Actual results:
Error while executing action: Cannot run VM. VM is pinned to a specific Host but cannot run on it due to:
Invalid Host status or not enough free resources on it.
You may free resources on the Host by migrating other VMs.


Expected results:
Error while executing action: Cannot run VM. VM is pinned to a specific Host but cannot run on it due to:
Invalid Host status or not enough free resources on it. You may free resources on the Host by migrating other VMs.
or
Network required by VM is not attached to the host.

Additional info:
2012-11-20 14:12:19,028 WARN  [org.ovirt.engine.core.bll.RunVmCommand] (ajp-/127.0.0.1:8702-1) CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,VM_PINNED_TO_HOST_CANNOT_RUN_ON_THE_DEFAULT_VDS

Comment 1 Martin Pavlik 2012-11-20 13:22:19 UTC
Created attachment 648462 [details]
screenshot 1

Comment 2 Alona Kaplan 2013-01-28 10:24:44 UTC
http://gerrit.ovirt.org/#/c/11338/

Comment 3 Martin Pavlik 2013-02-18 13:25:59 UTC
Error message now says this:

RHEL64:

    Cannot run VM. VM is pinned to Host 'dell-06' but cannot run on it.
    Cannot run VM. There are no available running Hosts with all the networks used by the VM.

The last sentence is false and confusing. There is at least one host with all networks used, but VM is not pinned to it. 

I would suggest to rephrase it to something like this:

RHEL64:

    Cannot run VM. VM is pinned to Host 'dell-06' but cannot run on it. Host does not have attached all networks used by VM.

Comment 4 Simon Grinberg 2013-02-26 15:22:46 UTC
(In reply to comment #3)
>     Cannot run VM. VM is pinned to Host 'dell-06' but cannot run on it. Host
> does not have attached all networks used by VM.

The infrastructure does not allow for it, since the second line is a generic message provided after searching all available host provided to the scheduler and validated each hosts one by one. The fact the list of hosts equals 1 does not interest the generic function. The first line was added as a modifier on top of that. 

What can be done is to make it a bit clearer:
    Cannot run VM. There are no available running Hosts with all the networks used by the VM. 
    Note: The VM is pinned to Host 'dell-06' but cannot run on it.

This makes it clear that the issue is related to a specific host while the first is a generic error message.

Comment 5 Itamar Heim 2013-06-11 08:46:19 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 08:46:19 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 08:46:38 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 08:52:07 UTC
3.2 has been released

Comment 9 Itamar Heim 2013-06-11 09:23:04 UTC
3.2 has been released