Bug 877981 - webadmin: selecting a template will change the cluster selection back to default when there is more than one cluster under the same DC
Summary: webadmin: selecting a template will change the cluster selection back to defa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-webadmin-portal
Version: 3.1.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 3.2.0
Assignee: Michal Skrivanek
QA Contact: Jiri Belka
URL:
Whiteboard: virt
Depends On:
Blocks: 915537
TreeView+ depends on / blocked
 
Reported: 2012-11-19 11:13 UTC by Dafna Ron
Modified: 2013-06-11 08:23 UTC (History)
8 users (show)

Fixed In Version: sf2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 08:19:51 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 9512 0 None None None Never

Description Dafna Ron 2012-11-19 11:13:56 UTC
Description of problem:

I have two clusters under the same DC
when I created a new VM I select the DC -> cluster and than the template. 
after selecting the template the default (or alphabetical first) cluster is selected. 

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

si24.2

How reproducible:

100%

Steps to Reproduce:
1. create a DC with two clusters + import a template
2. create a vm -> select DC -> select the second cluster on the list of clusters
3. select the template
  
Actual results:

the cluster changed to the first cluster on the list once we select the template

Expected results:

we should not automatically change the cluster configuration once selected 

Additional info:

Comment 2 Libor Spevak 2012-11-21 14:36:25 UTC
After the creation of VM template, a cluster and datacenter are assigned to the new template by default.

When creating new VM based on the template, after I change the template in the dialog window, the list of clusters is updated according to it and selected cluster in the combo is the one attached to the selected VM template.

So, this is probably correct behaviour, but can be misleading. All templates are shown and new VM can be created.

But, is it better to filter the list of possible templates based on predefined cluster? It means, show only templates attached to a selected cluster?

Comment 3 Dafna Ron 2012-11-21 16:41:02 UTC
templates are under a DC not a cluster and we can have several clusters under a single DC. 

if the template is not available it should be because its not under the DC, hence, if I change a DC the templates shown below will be of that new DC. 

since both clusters can use the templates we should not refresh the cluster list when we select a template only refresh it if we change a DC

Comment 4 Libor Spevak 2012-11-27 14:02:46 UTC
Patch sent.

Comment 5 Libor Spevak 2012-11-27 15:54:57 UTC
http://gerrit.ovirt.org/#/c/9512/

Comment 6 Libor Spevak 2012-11-29 16:28:28 UTC
Merged upstream: a1c0f148b113aeec3f78c51a252da7f2ddf0bd5e

Comment 7 Jiri Belka 2013-01-25 17:18:14 UTC
OK, sf4.

Comment 9 Itamar Heim 2013-06-11 08:19:51 UTC
3.2 has been released

Comment 10 Itamar Heim 2013-06-11 08:23:32 UTC
3.2 has been released


Note You need to log in before you can comment on or make changes to this bug.