AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.11k
stars
3.43k
forks
source link
Django version upgrade to 3.2.0 breaking AWX v17.1.0 #15411
[X] I understand that AWX is open source software provided for free and that I might not receive a timely response.
[X] I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)
Bug Summary
Previous setup:
AWX v17.1.0 running on a Ubuntu22.04 vm with below configurations:
a. Python 3.9
b. Django 2.2.28
c. social_auth_app_django 3.1.0
New setup:
AWX v17.1.0 running on a Ubuntu22.04 vm with below configurations:
a. Python 3.9
b. Django 3.2.0
c. social_auth_app_django 5.4.1
Deployment strategy used:
AWX v17.1.0 is deployed as a docker compose stack.
On updating social_auth_app_django to 5.4.1, and hence, Django to 3.2.0 (least compatible version with the required social_auth_app_django package) as a part of a compliance drive. I am seeing the following failure in the awx-manage play:
stderr: "Creating network \"awxcompose_default\" with driver \"bridge\"\nCreating awx_postgres ... \r\nCreating awx_redis ... \r\nCreating awx_postgres ... done\r\nCreating awx_redis ... done\r\nCreating awx_web ... \r\nCreating awx_web ... done\r\nCreating awxcompose_task_run ... \r\nCreating awxcompose_task_run ... done\r\nTraceback (most recent call last):\n File \"/usr/bin/awx-manage\", line 8, in <module>\n sys.exit(manage())\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py\", line 138, in manage\n prepare_env()\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py\", line 97, in prepare_env\n if not settings.DEBUG: # pragma: no cover\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py\", line 82, in __getattr__\n self._setup(name)\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py\", line 69, in _setup\n self._wrapped = Settings(settings_module)\n\
\ File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py\", line 190, in __init__\n raise ImproperlyConfigured(\ndjango.core.exceptions.ImproperlyConfigured: PASSWORD_RESET_TIMEOUT_DAYS/PASSWORD_RESET_TIMEOUT are mutually exclusive.\n1"
stderr_lines:
- Creating network "awxcompose_default" with driver "bridge"
- 'Creating awx_postgres ... '
- 'Creating awx_redis ... '
- Creating awx_postgres ... done
- Creating awx_redis ... done
- 'Creating awx_web ... '
- Creating awx_web ... done
- 'Creating awxcompose_task_run ... '
- Creating awxcompose_task_run ... done
- 'Traceback (most recent call last):'
- ' File "/usr/bin/awx-manage", line 8, in <module>'
- ' sys.exit(manage())'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py", line 138, in manage'
- ' prepare_env()'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py", line 97, in prepare_env'
- ' if not settings.DEBUG: # pragma: no cover'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py", line 82, in __getattr__'
- ' self._setup(name)'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py", line 69, in _setup'
- ' self._wrapped = Settings(settings_module)'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py", line 190, in __init__'
- ' raise ImproperlyConfigured('
- 'django.core.exceptions.ImproperlyConfigured: PASSWORD_RESET_TIMEOUT_DAYS/PASSWORD_RESET_TIMEOUT are mutually exclusive.'
AWX version
17.1.0
Select the relevant components
[ ] UI
[ ] UI (tech preview)
[ ] API
[ ] Docs
[ ] Collection
[X] CLI
[ ] Other
Installation method
docker development environment
Modifications
yes
Ansible version
8.5.0
Operating system
Ubuntu 22.04
Web browser
No response
Steps to reproduce
Build the dockerfile and deploy the awx containers as a docker compose stack.
Expected results
The awx-base and postgres image should deploy successfully.
Actual results
The awx-manage play failed with the following error:
stderr: "Creating network \"awxcompose_default\" with driver \"bridge\"\nCreating awx_postgres ... \r\nCreating awx_redis ... \r\nCreating awx_postgres ... done\r\nCreating awx_redis ... done\r\nCreating awx_web ... \r\nCreating awx_web ... done\r\nCreating awxcompose_task_run ... \r\nCreating awxcompose_task_run ... done\r\nTraceback (most recent call last):\n File \"/usr/bin/awx-manage\", line 8, in <module>\n sys.exit(manage())\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py\", line 138, in manage\n prepare_env()\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py\", line 97, in prepare_env\n if not settings.DEBUG: # pragma: no cover\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py\", line 82, in __getattr__\n self._setup(name)\n File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py\", line 69, in _setup\n self._wrapped = Settings(settings_module)\n\
\ File \"/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py\", line 190, in __init__\n raise ImproperlyConfigured(\ndjango.core.exceptions.ImproperlyConfigured: PASSWORD_RESET_TIMEOUT_DAYS/PASSWORD_RESET_TIMEOUT are mutually exclusive.\n1"
stderr_lines:
- Creating network "awxcompose_default" with driver "bridge"
- 'Creating awx_postgres ... '
- 'Creating awx_redis ... '
- Creating awx_postgres ... done
- Creating awx_redis ... done
- 'Creating awx_web ... '
- Creating awx_web ... done
- 'Creating awxcompose_task_run ... '
- Creating awxcompose_task_run ... done
- 'Traceback (most recent call last):'
- ' File "/usr/bin/awx-manage", line 8, in <module>'
- ' sys.exit(manage())'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py", line 138, in manage'
- ' prepare_env()'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx/__init__.py", line 97, in prepare_env'
- ' if not settings.DEBUG: # pragma: no cover'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py", line 82, in __getattr__'
- ' self._setup(name)'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py", line 69, in _setup'
- ' self._wrapped = Settings(settings_module)'
- ' File "/var/lib/awx/venv/awx/lib/python3.9/site-packages/django/conf/__init__.py", line 190, in __init__'
- ' raise ImproperlyConfigured('
- 'django.core.exceptions.ImproperlyConfigured: PASSWORD_RESET_TIMEOUT_DAYS/PASSWORD_RESET_TIMEOUT are mutually exclusive.'
AWX 17.1.0 was released nearly three and a half years ago. Perhaps you can ask on the ansible forum and someone can help, but we don't support it anymore. We'd suggest upgrading to the latest version of AWX.
Please confirm the following
security@ansible.com
instead.)Bug Summary
Previous setup: AWX v17.1.0 running on a Ubuntu22.04 vm with below configurations: a. Python 3.9 b. Django 2.2.28 c. social_auth_app_django 3.1.0
New setup: AWX v17.1.0 running on a Ubuntu22.04 vm with below configurations: a. Python 3.9 b. Django 3.2.0 c. social_auth_app_django 5.4.1
Deployment strategy used: AWX v17.1.0 is deployed as a docker compose stack.
On updating social_auth_app_django to 5.4.1, and hence, Django to 3.2.0 (least compatible version with the required social_auth_app_django package) as a part of a compliance drive. I am seeing the following failure in the awx-manage play:
AWX version
17.1.0
Select the relevant components
Installation method
docker development environment
Modifications
yes
Ansible version
8.5.0
Operating system
Ubuntu 22.04
Web browser
No response
Steps to reproduce
Build the dockerfile and deploy the awx containers as a docker compose stack.
Expected results
The awx-base and postgres image should deploy successfully.
Actual results
The awx-manage play failed with the following error:
Additional information
Requirements.txt file:
yum-requirements.txt file:
expect