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):18.104.22.168
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?
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.
New commit detected on ManageIQ/manageiq/master:
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(-)
verified on 22.214.171.124