Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54341

Ansible Tower Plugin 0.9.0 not compatible with Tower 3.2.5

XMLWordPrintable

    • 0.9.1

      Jenkins: 2.121.3

      Ansible-Tower-Plugin: 0.9.0

      Ansible Tower: 3.2.5

       

      When configuring a Ansible Tower 3.2.5 connectivity with plugin version 0.9.0 it does not work (anymore?)

      Plugin is issuing a POST "/api/v2/authtoken/" and retrieving a token: {"token":"2878104c539b9dd3526cd07280f596441d7b9e02","expires":"2018-10-30T09:56:23.351Z"}

      Then Plugin is sending a GET Request "/api/v2/jobs/", but is sending the Header "Authorization: Bearer 2878104c539b9dd3526cd07280f596441d7b9e02" which will result in a 401 error {"detail":"Authentication credentials were not provided."}.

      Problem is the "Bearer" value in the Header (introduced with OAuth  support for Tower 3.3 ?). The correct request needs to send the Header as "Authorization: Token 2878104c539b9dd3526cd07280f596441d7b9e02", then the command is working (from curl).

      As a result, the plugin 0.9.0 is not working with Ansible Tower 3.2.5. I have currently no possibility to upgrade Ansible Tower to >= 3.3.

       

       

            johnwestcottiv John Westcott
            rmontag Rainer Montag
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: