Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is not working to launch workflow template jobs #4

Open
rks040888 opened this issue May 14, 2019 · 4 comments
Open

Plugin is not working to launch workflow template jobs #4

rks040888 opened this issue May 14, 2019 · 4 comments
Assignees

Comments

@rks040888
Copy link

We are trying to use the plugin to launch the workflow job templates and it is throwing the template id now found error. Below is the error we are getting:

Exception during execution:
tower_cli.exceptions.NotFound: The requested object could not be found. in <script> at line number 67

Is this plugin compatible to launch workflow templates?

The normal job templates are launching fine as expected.

@rks040888 rks040888 changed the title Plug in is not working to launch workflow template jobs Plugin is not working to launch workflow template jobs May 14, 2019
@vlussenburg
Copy link
Contributor

@rks040888 I'll look into this, sorry for the delay

@vlussenburg vlussenburg self-assigned this Jul 3, 2019
@rahulhyd
Copy link

@vlussenburg i was interested in this, as we have been told in our company that XLR doesnt support Ansible WorkFlow Templates. Can this be done by XLR ? we have RedHat Tower and Xebia labs XLR tools

@romdalf
Copy link
Contributor

romdalf commented Apr 24, 2020

At the first glance, I would say this would be expected since there are specific API calls for both activities being:
/api/v2/job_templates/{id}/launch/
/api/v2/workflow_job_templates/{id}/launch/

This would require the GUI and code to refer to one or the other depending of the needs.
Do you need some help to include this?

@romdalf
Copy link
Contributor

romdalf commented Apr 27, 2020

At the first glance, I would say this would be expected since there are specific API calls for both activities being:
/api/v2/job_templates/{id}/launch/
/api/v2/workflow_job_templates/{id}/launch/

This would require the GUI and code to refer to one or the other depending of the needs.
Do you need some help to include this?

ok, after reviewing the code, this is not using the API from Ansible Tower directly but rather use the ansible-tower-cli python module/tools
I have rewrite the run_job_template.py to make this work with Workflows and doing so testing for the job tracking which is more complex that a simple job template.
when done, I will provide you with a pull request

bmoussaud pushed a commit that referenced this issue Dec 7, 2020
Feature - Trigger Ansible workflow template #4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants