Bug 1400991 - Central Admin - Impossible to distinguish Customize Templates
Summary: Central Admin - Impossible to distinguish Customize Templates
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: GA
: 5.8.0
Assignee: Lucy Fu
QA Contact: Alex Newman
Whiteboard: ca:ui
Depends On:
Blocks: 1414886
TreeView+ depends on / blocked
Reported: 2016-12-02 14:03 UTC by Leo Khomenko
Modified: 2018-01-19 21:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1414886 (view as bug list)
Last Closed: 2017-06-12 17:43:44 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:

Attachments (Terms of Use)
screen from Global Region appliance (31.39 KB, image/png)
2016-12-02 14:03 UTC, Leo Khomenko
no flags Details

Description Leo Khomenko 2016-12-02 14:03:12 UTC
Created attachment 1227346 [details]
screen from Global Region appliance

Description of problem:During provision from the appliance with Global region templates from all regions are shown

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

How reproducible:100%

Steps to Reproduce:
1.Configure 2 VM to enable Central Administration(2 different Regions)
2.Provision a cloud instance 
3.Open Customize tab

Actual results:Duplicates are shown

Expected results:Some additional column to know the source of template

Additional info:can we use templates from Global Region to provision Instances on Remote one?

Comment 2 Greg McCullough 2016-12-02 15:03:14 UTC
Central admin delegates the work down to the lower region, so only customization_templates in the same region as the VM template are eligible to be used during provisioning.

Therefore the allowed_customization_templates method needs to limit the available templates based on the selected VM template.

This applies to both cloud and infra.

Lucy - I suggest we also try to identify other resource that might require the same change.  Many resource are already limited by the provider the VM template is associated with so those would be ok.  But there are likely other, for example PXE Servers, that need to be reviewed and possible updated.

Comment 5 CFME Bot 2017-01-18 19:16:37 UTC
New commit detected on ManageIQ/manageiq/master:

commit 6c9058abb5b8a8f6155208d11ae83d9ed88c0cb4
Author:     Lucy Fu <lufu>
AuthorDate: Wed Dec 7 13:19:41 2016 -0500
Commit:     Lucy Fu <lufu>
CommitDate: Tue Dec 13 09:28:42 2016 -0500

    Check tags, Pxe server and cloud init customization templates in region during provisioning.
    Only check for resources in the same region where the selected template locates.

 app/models/miq_provision_virt_workflow.rb              | 10 ++++++++++
 app/models/miq_request_workflow.rb                     |  4 ++++
 app/models/mixins/cloud_init_template_mixin.rb         |  5 ++++-
 .../redhat/infra_manager/provision_workflow_spec.rb    | 18 ++++++++++++++++++
 4 files changed, 36 insertions(+), 1 deletion(-)

Comment 7 Leo Khomenko 2017-02-06 17:09:40 UTC
verified on

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