Bug 1451473 - Ansible Service Catalog Template Job not honoring provider zone
Summary: Ansible Service Catalog Template Job not honoring provider zone
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.9.0
Assignee: Tina Fitzgerald
QA Contact: Pavol Kotvan
URL:
Whiteboard:
Depends On:
Blocks: 1460356
TreeView+ depends on / blocked
 
Reported: 2017-05-16 17:57 UTC by Saif Ali
Modified: 2020-08-13 09:12 UTC (History)
6 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1460356 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:34:47 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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(+)


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