We are using Jenkins (recently updated) with the Ansible plugin and the Ansible Tower plugin to connect to our AWX tower. Most of the time, it works great, but lately, the tower will sometimes not respond correctly to Jenkins. Again, this does not happen always, but frequently enough to be a major concern.
When the issue occurs, the error messages I receive in Jenkins are along these lines:
ERROR: Failed to get job status from Tower: Unable to make tower request: Connection reset
ERROR: Failed to get job events from tower: Unexpected error code returned (503)
The normal response should be:
Tower completed the requested job
The option "Enable Debugging" is enabled for the Ansible Tower, but I have not seen any additional output in the Jenkins job logs so far.
Last time the connection failed, I went into the Jenkins settings and clicked "Test Connection" for the Ansible Tower plugin, and it worked right away.
I have not seen the web interface fail, and the jobs do complete normally. The issue lies in communication between Jenkins and AWX.
Jenkins and all the plugins were recently updated.
The person who installed AWX is no longer with us, and I don't know where else to go to help me troubleshoot this.
Versions:
- AWX version: 9.0.0.0
- AWX install method: openshift sts
- Ansible version: 2.8.5
- Operating System: N/A
- Web Browser: N/A
- Jenkins: 2.204.2
- Jenkins Ansible plugin: 1.0
- Jenkins Ansible Tower plugin: 0.14.0
In the Jenkins pipeline, the following code handles the Ansible part:
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: "xterm"]) {
ansibleTower( [parameters] )
I don't have access to Jenkins on the file system level, only the general web UI.
I'd appreciate any troubleshooting steps you could provide or advice on where else to ask.