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

Bug 1293152

Summary: New VM dialog offers VM templates from different DCs which are not accessible/usable
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Spacek <pspacek>
Component: ovirt-engineAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: aburden, ahadas, eedri, gklein, lsurette, mavital, mgoldboi, michal.skrivanek, pstehlik, rbalakri, Rhev-m-bugs, sbonazzo, tjelinek, yeylon, ykaul
Target Milestone: ovirt-3.6.3Keywords: Regression
Target Release: 3.6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, templates listed in the 'Add Virtual Machine' window were not filtered based on their data center, which meant a template not residing on the destination data center could be selected and causing the virtual machine creation to fail. Now, templates that do not reside in the destination data center are filtered out so that only eligible templates are listed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 13:03:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1213937    

Description Petr Spacek 2015-12-20 19:55:43 UTC
Description of problem:
After upgrade to RHEV-M 3.6.1, the "new VM" dialog in User Portal offers VM templates from all data centres in template selection drop box. The problem is that most of the templates are not applicable - when I select a template and attempt to create a VM from it, I get error "The specified Template doesn't exist in the current Data Center."

This is really annoying because now the dialog offers dozens of templates I cannot use anyway so it is hard to use.

Version-Release number of selected component (if applicable):
3.6.1-0.2.el6

How reproducible:
100 %

Steps to Reproduce:
1. Use a setup with multiple DCs.
2. Create some templates in each DC.
3. Open a new VM dialog
4. Select DC1 / cluster 1 and see template drop-down list.

Actual results:
The drop-down list contains templates from all DCs.

Expected results:
The drop-down list contains only templates from selected DC, and only templates usable by the particular user.

Comment 1 Michal Skrivanek 2015-12-21 10:18:59 UTC
some of the exceptions mentioned in bug 1293269 might be relevant.

log also shows
ERROR [org.ovirt.engine.core.bll.GetVmTemplatesByStoragePoolIdQuery] (ajp-/127.0.0.1:8702-10) [] Query execution failed due to insufficient permissions.

Comment 2 Michal Skrivanek 2015-12-21 10:20:18 UTC
version is rhevm-3.6.1-0.2.el6.noarch

Comment 5 Tomas Jelinek 2016-01-04 07:20:07 UTC
since it caused a regression fixed by https://gerrit.ovirt.org/#/c/51241/ which is not yet merged, moving back to post

Comment 7 Jiri Belka 2016-02-12 12:01:53 UTC
ok, rhevm-webadmin-portal-3.6.3.1-0.1.el6.noarch

Comment 8 Eyal Edri 2016-03-21 13:03:04 UTC
3.6.3 was GA, closing