Job Template creation fails. Using docker latest official images. (Opened Issue #319)

Hey guys…

I just updated my setup using the latest docker image. I ditched my old previous deployment and wanted to start from scratch using the new model (official docker images).

I found some issues.

  1. The awx_task image doesn’t have the mercurial binary, so, when I tried to add a mercurial project it failed.

I tried to resolve this, by just installing mercurial as a post-install task, on that container… and then, I found my second issue

  1. The AWX_WEB and AWX_TASK containers have by default some environment variables that point to an omit temporary point for proxy configuration. That broke my attempt to install mercurial, so, I had to unset those variables.

  2. Once everything installed correctly, I added my Project (mercurial), and tried to create a new Job Template, using a playbook from that project, when I tried to save the project, it didn’t update. I checked the debugger in my browser and I saw an error when trying to edit that Job Template:

vendor.a4f2158….js:436 TypeError: Cannot read property ‘replace’ of undefined
at Object.setUrl (app.4099ea5….js:403)
at stateDefinitions.generateTree.resolve.edit.canGetInventory (app.4099ea5….js:403)
at invokeResolveFn (vendor.a4f2158….js:468)
at processQueue (vendor.a4f2158….js:436)
at vendor.a4f2158….js:436
at Scope.$eval (vendor.a4f2158….js:436)
at Scope.$digest (vendor.a4f2158….js:436)
at Scope.$apply (vendor.a4f2158….js:436)
at done (vendor.a4f2158….js:436)
at completeRequest (vendor.a4f2158….js:436)

Any thoughts?

Thanks,

-Cesar

Have you set an inventory on the job template or set prompt for inventory? That is an issue that we know about and we’ve got a fix coming for.

Mercurial not being in the image is definitely a problem. I’ll look at fixing that up.

Hey Matt,

Yes, I set prompt for inventory. I set a default inventory for now, and then the job creation succeeds. Thanks for your tip.

Any idea about the omit default for proxy variables? The default was changed from ‘’ to omit. That breaks my ability to install packages on those containers…

Thanks,

-Cesar

If you set a proxy then it should override the omit… did that not happen?

Oh that’s totally broken for me now too… I’ll push up a fix for that