AWX not using specified virtual environment

Context

  • AWX version 1.0.7

  • I’m creating an inventory using a source script in a project

  • I have a custom venv with the required packages for the source script

  • Project is set to use this venv

  • Organization is set to use this venv

  • Default venv is set to this venv

Problem

  • The inventory job fails, saying that a required package is not installed
  • When I exec into the task and web containers, I see that the required package is indeed installed to the custom venv
  • The inventory job used to work fine (I can see in the job history when it stopped working)

Conclusion

  • AWX isn’t actually using the custom venv?

Questions

  • Has anyone encountered this problem?
  • If so, how do I solve it?
  • If not, does anyone have any idea what might be wrong?

AWX did not run inventory updates in custom virtual environments in 1.0.7 (it would always use the default). It should work if you upgrade to 4.0.0, and you can select it in the UI for the inventory source edit page.

Awesome, thank you for the info.