Bug 1029339

Summary: [RHEVM][webadmin] check if network profile exists on DC before creating VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Pavlik <mpavlik>
Component: ovirt-engine-webadmin-portalAssignee: Lior Vernia <lvernia>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: high    
Version: 3.3.0CC: acathrow, bazulay, ecohen, gklein, iheim, masayag, myakove, Rhev-m-bugs, srevivo, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: is24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:13:31 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:
Bug Depends On:    
Bug Blocks: 1038284    
Attachments:
Description Flags
screenshot 1 none

Description Martin Pavlik 2013-11-12 08:27:35 UTC
Created attachment 822780 [details]
screenshot 1

Description of problem:

In New Virtual Machine dialog:

1)
If user assigns profile to NIC and switches DC of new VM on General tab. Profile is removed from the NIC -> that is OK

2)
If user assigns profile to NIC and switches DC of new VM in New Virtual Machine dialog on OTHER than General TAB in advanced options (e.g. Host tab) profile is not removed and error is shown:

Error while executing action:

aaaaaaa:

    The specified Logical Network doesn't exist in the current Cluster.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Manager Version: 3.3.0-0.32.beta1.el6ev

How reproducible:
100%

Steps to Reproduce:
1. Have two active DCs with cluster in each
2. Virtual Machines -> New VM -> Fill in VM name, assign rhevm profile to nic1
3. Click on Show Advanced Options
4. Go to Host tab -> switch Cluster -> Click OK

Actual results:
Error appears after confirmation of Create new VM dialog

Expected results:
Red rectangle pointing on General tab -> in general tab user is pointed to select empty profile or profile that actually exists

Additional info:
suggestion: in case default rhevm profile is selected, it might be just silently replaced with default rhevm profile of appropriate DC

Comment 1 Lior Vernia 2013-11-13 22:27:10 UTC
Fixed the bug that enabled choosing a vNIC profile from a different DC than that picked. Did not meddle with the general behavior, so when changing DC the choice of profiles might still change in an unexpected manner, a different bug may be opened for that (but it would be much more minor).

Comment 2 awinter 2013-11-21 08:20:09 UTC
Verified!

The network profile become empty as Lior suggested.

Comment 4 Itamar Heim 2014-01-21 22:13:31 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:21:24 UTC
Closing - RHEV 3.3 Released