Bug 1451473

Summary: Ansible Service Catalog Template Job not honoring provider zone
Product: Red Hat CloudForms Management Engine Reporter: Saif Ali <saali>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Kotvan <pakotvan>
Severity: medium Docs Contact:
Priority: high    
Version: 5.7.0CC: cpelland, dmisharo, jhardy, mkanoor, obarenbo, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1460356 (view as bug list) Environment:
Last Closed: 2018-03-06 14:34:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1460356    

Description Saif Ali 2017-05-16 17:57:59 UTC
Description of problem:
When running ansible service catalog provision from service catalog the job can run in any zone and it seem like the service catalog aren't zone aware which cause the job lunch to fail because Ansible tower is only accessible from the worker associate the Ansible Tower provider zone.

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

How reproducible:


Steps to Reproduce:
1. assume you have environment with multiple zones/providers  
2. Add Ansible tower provider to one zone, and limit the access to Tower from only that worker. e.g using iptables 
3. create, and run ansible job template.

Actual results:
The job sometime success, and sometime fail. It success when the job lunch run on the correct work, and it fail when the job lunched from worker has no connectivity to tower.

Expected results:
the job run from the worker within the provider zone.

Additional info:

Comment 4 CFME Bot 2017-05-31 19:51:26 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/1d0bb9793e9cb1841aa1767fc3b5716fc97500c6

commit 1d0bb9793e9cb1841aa1767fc3b5716fc97500c6
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Thu May 25 16:34:48 2017 -0400
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Wed May 31 15:28:04 2017 -0400

    Add my_zone to ansible tower service template.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1451473

 app/models/service_template_ansible_tower.rb       |  4 ++++
 spec/models/service_template_ansible_tower_spec.rb | 19 +++++++++++++++++++
 2 files changed, 23 insertions(+)