Adding AWX_CONTAINER_GROUP_POD_LAUNCH_TIMEOUT in defaults.py --- Adding a new global variable AWX_CONTAINER_GROUP_POD_LAUNCH_TIMEOUT in defaults.py --- Passing this parameter in receptor_params in AWXReceptorJob class SUMMARY Related issue : ansible/receptor#315 Corresponding PR on receptor side : ansible/receptor#316 I have added a global variable AWX_CONTAINER_GROUP_POD_LAUNCH_TIMEOUT ( and set default value as 5 minutes ). This will be passed onto Receptor in case a job is container group task. ISSUE TYPE Feature Pull Request COMPONENT NAME API AWX VERSION awx: 19.1.0 ADDITIONAL INFORMATION File Name : awx/main/tasks.py Class Name : AWXReceptorJob Function name: receptor_params(self) Before the change the value of receptor_params before returning was : {'secret_kube_config': '---\n' 'apiVersion: v1\n' 'clusters:\n' '- cluster:\n' ' insecure-skip-tls-verify: true\n' ' server: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' name: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' 'contexts:\n' '- context:\n' ' cluster: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' namespace: default\n' ' user: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' name: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' 'current-context: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' 'kind: Config\n' 'preferences: {}\n' 'users:\n' '- name: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' user:\n' ' token: ' 'sha256~otM0Z2vC8qfzm3eV0tfz-0V4DXKPqLC_Pp1gxXKuC-c\n', 'secret_kube_pod': '---\n' 'apiVersion: v1\n' 'kind: Pod\n' 'metadata:\n' ' labels:\n' ' ansible-awx: 04366fdb-65ec-4efc-bb01-685e9ca7e05b\n' " ansible-awx-job-id: '21'\n" ' name: automation-job-21\n' ' namespace: default\n' 'spec:\n' ' containers:\n' ' - args:\n' ' - ansible-runner\n' ' - worker\n' ' - --private-data-dir=/runner\n' ' image: quay.io/ansible/awx-ee:0.2.0\n' ' name: worker\n'} >>> After the change the value of receptor_params before returning is : {'pod_pending_timeout': '5m', 'secret_kube_config': '---\n' 'apiVersion: v1\n' 'clusters:\n' '- cluster:\n' ' insecure-skip-tls-verify: true\n' ' server: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' name: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' 'contexts:\n' '- context:\n' ' cluster: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' namespace: default\n' ' user: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' name: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' 'current-context: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' 'kind: Config\n' 'preferences: {}\n' 'users:\n' '- name: ' 'https://api.tower.ocp4.testing.ansible.com:6443\n' ' user:\n' ' token: ' 'sha256~otM0Z2vC8qfzm3eV0tfz-0V4DXKPqLC_Pp1gxXKuC-c\n', 'secret_kube_pod': '---\n' 'apiVersion: v1\n' 'kind: Pod\n' 'metadata:\n' ' labels:\n' ' ansible-awx: 04366fdb-65ec-4efc-bb01-685e9ca7e05b\n' " ansible-awx-job-id: '21'\n" ' name: automation-job-21\n' ' namespace: default\n' 'spec:\n' ' containers:\n' ' - args:\n' ' - ansible-runner\n' ' - worker\n' ' - --private-data-dir=/runner\n' ' image: quay.io/ansible/awx-ee:0.2.0\n' ' name: worker\n'} >>> We can see that an extra parameter has been added : 'pod_pending_timeout': '5m', ####Additional changes : --- Removed AWX_CONTAINER_GROUP_POD_LAUNCH_RETRIES from defaults.py as it was not being used anywhere --- Removed AWX_CONTAINER_GROUP_POD_LAUNCH_RETRY_DELAY from defaults.py as it was not being used anywhere Reviewed-by: Christian Adams <rooftopcellist@gmail.com> Reviewed-by: Amol Gautam <amol_gautam25@yahoo.co.in> Reviewed-by: Seth Foster <None>
AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
To install AWX, please view the Install guide.
To learn more about using AWX, and Tower, view the Tower docs site.
The AWX Project Frequently Asked Questions can be found here.
The AWX logos and branding assets are covered by our trademark guidelines.
Contributing
- Refer to the Contributing guide to get started developing, testing, and building AWX.
- All code submissions are made through pull requests against the
develbranch. - All contributors must use git commit --signoff for any commit to be merged and agree that usage of --signoff constitutes agreement with the terms of DCO 1.1
- Take care to make sure no merge commits are in the submission, and use
git rebasevs.git mergefor this reason. - If submitting a large code change, it's a good idea to join the
#ansible-awxchannel on webchat.freenode.net and talk about what you would like to do or add first. This not only helps everyone know what's going on, but it also helps save time and effort if the community decides some changes are needed.
Reporting Issues
If you're experiencing a problem that you feel is a bug in AWX or have ideas for improving AWX, we encourage you to open an issue and share your feedback. But before opening a new issue, we ask that you please take a look at our Issues guide.
Code of Conduct
We ask all of our community members and contributors to adhere to the Ansible code of conduct. If you have questions or need assistance, please reach out to our community team at codeofconduct@ansible.com
Get Involved
We welcome your feedback and ideas. Here's how to reach us with feedback and questions:
- Join the
#ansible-awxchannel on webchat.freenode.net - Join the mailing list