upgrade from 1.0.1.35 to 1.0.2.303 broke the execution of any job template.

Hi guys.

I tried the upgrade of AWX using the docker images from 1.0.1.35 to 1.0.2.303, and now. I can’t execute any job template.

Unfortunately, I read Matt comment , where the team released significative changes that could break the upgrade, after the fact, so, my question is: is there any other way of recovering my templates to a good state than starting from scratch and re-doing everything?

Thanks,

-Cesar

Additionally, the job template execution via the tower-cli works.

It only fails via the browser, with an error:

Failed to get job template details. GET returned status: undefined

Also, adding/editing a survey fails with the same error.

-Cesar

Hey Cesar,
Open up the browser debugger and see if there’s any more info about the REST call that failed (in Chrome: network tab, look for the requests in red, and open their response tab). Please paste that info here.

If you can execute through the CLI it is most likely not an upgrade issue (most likely upgrade issue is database schema changes, and if that was the case, you would probably not be able to run JTs any way), and is more likely a bug, probably with the UI code.

Hey John…

I don’t get any failed api call.

  1. a GET request is issued:
    GET /api/v2/job_templates/352/launch/ and the response is 200

The response:
can_start_without_user_input false
passwords_needed_to_start
ask_variables_on_launch true
ask_tags_on_launch true
ask_diff_mode_on_launch false
ask_skip_tags_on_launch true
ask_job_type_on_launch false
ask_limit_on_launch true
ask_verbosity_on_launch true
ask_inventory_on_launch true
ask_credential_on_launch true
survey_enabled false
variables_needed_to_start
credential_needed_to_start false
inventory_needed_to_start true
job_template_data {…}
id 352
description
name TEST JOB
defaults {…}
job_tags
extra_vars
verbosity 0
job_type run
diff_mode false
skip_tags
limit
inventory {…}
id null
name null
credentials

  1. an OPTIONS request is issued:

OPTIONS /api/v2/job_templates/352/launch/

  1. a GET request is issued:
    GET /api/v2/credential_types/

The response contains all the credential types… (Amazon Web Services, … )

And then, the attached screenshot modal appears.

Thanks,

-Cesar

(attachments)

This is strange.

There are a few places in the code that would spit out this error, and they all are output in a catch block directly after a Rest call returns a failure response or some sort of error is thrown directly as a result of the call…there doesn’t seem to be any other code between the rest call and getting into that catch block, so I can’t think of what else it might be. Are they any filters set in your debugger? Is there no red text in the JS console at all?

Hey John.

That’s my debugger snapshot whenever I press on the rocket to launch a job template…

Thanks,

-Cesar

(attachments)

For reference here are github issues related to this:

https://github.com/ansible/awx/issues/875 - Surveys breaking with GET returned status: ‘undefined’
https://github.com/ansible/awx/issues/891 - Workflow editor not working

This issue got resolved with image version 1.0.2.327.

Thanks guys.

-Cesar