Bug 1378606
Summary: | launch_ansible_job doesn't support multiple Ansible Tower providers in CloudForms | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Jerome Marc <jmarc> | ||||
Component: | Automate | Assignee: | mkanoor | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavol Kotvan <pakotvan> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 5.6.0 | CC: | dajohnso, jhardy, jmarc, kmorey, mfalesni, mkanoor, nstephan, obarenbo, simaishi, tfitzger | ||||
Target Milestone: | GA | Keywords: | TestOnly, ZStream | ||||
Target Release: | 5.8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | automate:tower | ||||||
Fixed In Version: | 5.8.0.0 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1411359 (view as bug list) | Environment: | |||||
Last Closed: | 2017-06-12 16:58:49 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | Ansible | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1411359 | ||||||
Attachments: |
|
Description
Jerome Marc
2016-09-22 21:50:36 UTC
Can we have the automation.log for this issue. We do support passing in the job_template_id into the method which can pick up a template by id. How is the job being launched is it thru a button or thru instances in the Automate State Machine as part of some other provisioning workflow. (In reply to mkanoor from comment #2) > Can we have the automation.log for this issue. > We do support passing in the job_template_id into the method which can pick > up a template by id. > How is the job being launched is it thru a button or thru instances in the > Automate State Machine as part of some other provisioning workflow. I agree that job_template_id would work. However, as I mentioned earlier, there is no way to find the job_template_id from the UI. As an operator, it is then impossible to complete this use case, where two job templates have the same name on different Ansible Tower providers. I have attached a screenshot. I am suggesting to add the option to specify the Ansible provider name as a parameter for Ansible_Tower_Job. This way, an operator can launch the job template without having to look up its job_template_id. Created attachment 1206333 [details]
Ansible_Tower_Job - impossible to specify Ansible Tower Provider
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/23f8ac3d643e3e45796e5d37e0ed56cc14df6580 commit 23f8ac3d643e3e45796e5d37e0ed56cc14df6580 Author: Madhu Kanoor <mkanoor> AuthorDate: Mon Oct 3 18:01:16 2016 -0400 Commit: Madhu Kanoor <mkanoor> CommitDate: Tue Nov 1 14:05:16 2016 -0400 Support provider name & template name to uniquely identify https://bugzilla.redhat.com/show_bug.cgi?id=1378606 Optionally support 'ansible_provider_name' to uniquely identify a job template. This is needed where you might have multiple Ansible Towers with the same named templates. .../Job.class/__methods__/launch_ansible_job.rb | 21 +++++++++++++++++---- .../method_validation/launch_ansible_job_spec.rb | 19 ++++++++++++++++++- 2 files changed, 35 insertions(+), 5 deletions(-) |