Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing module python-memcached in built-in venv awx #7544

Closed
cfelder opened this issue Jul 3, 2020 · 1 comment
Closed

Missing module python-memcached in built-in venv awx #7544

cfelder opened this issue Jul 3, 2020 · 1 comment
Labels

Comments

@cfelder
Copy link

cfelder commented Jul 3, 2020

ISSUE TYPE
  • Bug Report
SUMMARY

I am currently working on updating @ikke-t awx_pod playbook for using awx 13.

My deployment is a bit different from the installation instructions here, but I would expect that the error below appears when using e.g. docker-compose as well.

I am using the following image: docker.io/ansible/awx:13.0.0

python-memcached is missing in /var/lib/awx/venv/awx, see log excerpt below:

  File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/cache/backends/memcached.py", line 151, in __init__
    import memcache
ModuleNotFoundError: No module named 'memcache'
ENVIRONMENT
  • AWX version: 13.0.0
  • AWX install method: podman / awx_pod playbook
  • Ansible version: 2.9.10
  • Operating System: EL8 (CentOS 8)
STEPS TO REPRODUCE
$ ansible-playbook -K -i centos-8, awx-install.yml
$ podman logs -f awx_awxweb
$ podman logs -f awx_awxtask
EXPECTED RESULTS
RESULT 2
OK
ACTUAL RESULTS

ModuleNotFoundError: No module named 'memcache'

ADDITIONAL INFORMATION

Creating a derived container using

RUN source /var/lib/awx/venv/awx/bin/activate \
  && pip install python-memcached

resolves this issue.

@cfelder cfelder changed the title Missing module python-memcached in built-in venv awe Missing module python-memcached in built-in venv awx Jul 3, 2020
@awxbot awxbot added the type:bug label Jul 3, 2020
@cfelder
Copy link
Author

cfelder commented Jul 6, 2020

This is not an awx issue. memcache has been dropped in awx 12 but we were still using it in awx_pod playbook.

ikke-t/awx_pod#19 resolves this issue

@cfelder cfelder closed this as completed Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants