Hi
I was looking at AWX earlier in the year but had to temporarily drop it to work on something else and am now able to pick it up again.
I have my old AWX install (9.3.0) still working ok.
I decided to do a fresh install with a newer version as there have been a number of releases since and the old installation and want a fresh install.
I’ve followed the same installation method I used for my old version and have attempted to install several newer versions: 11.2.0, 13.0.0 & 15.0.0 but run into the same error that occurs on the TASK [image_build : Build base awx image] stage.
The error is below:
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Error building awx - code: 1, message: The command ‘/bin/sh -c dnf -y update && dnf -y install epel-release ‘dnf-command(config-manager)’ && dnf module -y enable ‘postgresql:10’ && dnf config-manager --set-enabled PowerTools && dnf -y install ansible gcc gcc-c++ git-core glibc-langpack-en libcurl-devel libffi-devel libtool-ltdl-devel make nodejs nss openldap-devel patch @postgresql:10 postgresql-devel python3-devel python3-pip python3-psycopg2 python3-setuptools swig unzip xmlsec1-devel xmlsec1-openssl-devel’ returned a non-zero code: 1, logs: [‘Step 1/50 : ARG VENV_BASE="/var/lib/awx/venv"’, ‘\n’, ‘Step 2/50 : ARG COLLECTION_BASE="/var/lib/awx/vendor/awx_ansible_collections"’, ‘\n’, ‘Step 3/50 : FROM centos:8 as builder’, ‘\n’, ’ —> 300e315adb2f\n’, ‘Step 4/50 : ARG VENV_BASE’, ‘\n’, ’ —> Using cache\n’, ’ —> 169aeef5c18c\n’, ‘Step 5/50 : ARG COLLECTION_BASE’, ‘\n’, ’ —> Using cache\n’, ’ —> 1b07b7442efb\n’, ‘Step 6/50 : ENV LANG en_US.UTF-8’, ‘\n’, ’ —> Using cache\n’, ’ —> 0a7c29b61bef\n’, ‘Step 7/50 : ENV LANGUAGE en_US:en’, ‘\n’, ’ —> Using cache\n’, ’ —> cc35e6a13504\n’, ‘Step 8/50 : ENV LC_ALL en_US.UTF-8’, ‘\n’, ’ —> Using cache\n’, ’ —> 0bc8d2ffbe2e\n’, ‘Step 9/50 : USER root’, ‘\n’, ’ —> Using cache\n’, ’ —> 96f4d16c43ce\n’, "Step 10/50 : RUN dnf -y update && dnf -y install epel-release ‘dnf-command(config-manager)’ && dnf module -y enable ‘postgresql:10’ && dnf config-manager --set-enabled PowerTools && dnf -y install ansible gcc gcc-c++ git-core glibc-langpack-en libcurl-devel libffi-devel libtool-ltdl-devel make nodejs nss openldap-devel patch @postgresql:10 postgresql-devel python3-devel python3-pip python3-psycopg2 python3-setuptools swig unzip xmlsec1-devel xmlsec1-openssl-devel", ‘\n’, ’ —> Running in f64ef2decc40\n’, ‘\x1b[91m/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\n\x1b[0m’, ‘CentOS Linux 8 - AppStream 13 MB/s | 6.3 MB 00:00 \n’, ‘CentOS Linux 8 - BaseOS 12 MB/s | 2.3 MB 00:00 \n’, ‘CentOS Linux 8 - Extras 28 kB/s | 8.6 kB 00:00 \n’, ‘Dependencies resolved.\n’, ‘Nothing to do.\n’, ‘Complete!\n’, ‘\x1b[91mFailed to set locale, defaulting to C.UTF-8\n\x1b[0m’, ‘Last metadata expiration check: 0:00:02 ago on Tue Jan 5 16:11:32 2021.\n’, ‘Dependencies resolved.\n’, ‘================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n dnf-plugins-core noarch 4.0.17-5.el8 baseos 66 k\n epel-release noarch 8-8.el8 extras 23 k\nInstalling dependencies:\n python3-dateutil noarch 1:2.6.1-6.el8 baseos 251 k\n python3-dnf-plugins-core noarch 4.0.17-5.el8 baseos 221 k\n python3-six noarch 1.11.0-8.el8 baseos 38 k\n\nTransaction Summary\n================================================================================\nInstall 5 Packages\n\n’, ‘Total download size: 599 k\n’, ‘Installed size: 1.4 M\n’, ‘Downloading Packages:\n’, ‘(1/5): dnf-plugins-core-4.0.17-5.el8.noarch.rpm 1.7 MB/s | 66 kB 00:00 \n’, ‘(2/5): python3-six-1.11.0-8.el8.noarch.rpm 7.2 MB/s | 38 kB 00:00 \n’, ‘(3/5): python3-dateutil-2.6.1-6.el8.noarch.rpm 5.3 MB/s | 251 kB 00:00 \n’, ‘(4/5): python3-dnf-plugins-core-4.0.17-5.el8.no 4.6 MB/s | 221 kB 00:00 \n’, ‘(5/5): epel-release-8-8.el8.noarch.rpm 656 kB/s | 23 kB 00:00 \n’, ‘--------------------------------------------------------------------------------\n’, ‘Total 808 kB/s | 599 kB 00:00 \n’, ‘\x1b[91mwarning: /var/cache/dnf/baseos-f6a80ba95cf937f2/packages/dnf-plugins-core-4.0.17-5.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY\n\x1b[0m’, ‘CentOS Linux 8 - BaseOS 1.6 MB/s | 1.6 kB 00:00 \n’, ‘\x1b[91mFailed to set locale, defaulting to C.UTF-8\nImporting GPG key 0x8483C65D:\n Userid : "CentOS (CentOS Official Signing Key) security@centos.org"\n Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D\n From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial\n\x1b[0m’, ‘Key imported successfully\n’, ‘Running transaction check\n’, ‘Transaction check succeeded.\nRunning transaction test\n’, ‘Transaction test succeeded.\n’, ‘Running transaction\n’, ’ Preparing : 1/1’, ’ \n Installing : python3-six-1.11.0-8.el8.noarch 1/5’, ’ \n Installing : python3-dateutil-1:2.6.1-6.el8.noarch 2/5’, ’ \n Installing : python3-dnf-plugins-core-4.0.17-5.el8.noarch 3/5’, ’ \n Installing : dnf-plugins-core-4.0.17-5.el8.noarch 4/5’, ’ \n Installing : epel-release-8-8.el8.noarch 5/5’, ’ \n Running scriptlet: epel-release-8-8.el8.noarch 5/5’, ’ \n Verifying : dnf-plugins-core-4.0.17-5.el8.noarch 1/5’, ’ \n Verifying : python3-dateutil-1:2.6.1-6.el8.noarch 2/5 \n Verifying : python3-dnf-plugins-core-4.0.17-5.el8.noarch 3/5’, ’ \n Verifying : python3-six-1.11.0-8.el8.noarch 4/5 \n Verifying : epel-release-8-8.el8.noarch 5/5’, ’ \n\nInstalled:\n dnf-plugins-core-4.0.17-5.el8.noarch \n epel-release-8-8.el8.noarch \n python3-dateutil-1:2.6.1-6.el8.noarch \n python3-dnf-plugins-core-4.0.17-5.el8.noarch \n python3-six-1.11.0-8.el8.noarch \n\n’, ‘Complete!\n’, ‘Extra Packages for Enterprise Linux Modular 8 - 676 kB/s | 527 kB 00:00 \n’, ‘Extra Packages for Enterprise Linux 8 - x86_64 11 MB/s | 8.7 MB 00:00 \n’, ‘Dependencies resolved.\n’, ‘================================================================================\n Package Architecture Version Repository Size\n================================================================================\nEnabling module streams:\n postgresql 10 \n\nTransaction Summary\n================================================================================\n\n’, ‘Complete!\n’, ‘\x1b[91mFailed to set locale, defaulting to C.UTF-8\n\x1b[0m’, ‘\x1b[91mFailed to set locale, defaulting to C.UTF-8\nError: No matching repo to modify: PowerTools.\n\x1b[0m’, ‘Removing intermediate container f64ef2decc40\n’]”}
As already stated, I’m following the same installation method that has worked for several installs using older AWX versions and below are the dependency packages that I have installed:
Install epel repo and then install jq
yum install -y epel-release -y && yum install -y jq
Install docker-ce related packages and dependencies for the rest of the install process
yum -y install git gcc gcc-c++ nodejs gettext device-mapper-persistent-data lvm2 bzip2 python-pip python3-wheel sshpass
Enable docker-ce repo, install docker engine, enable and start the service
yum-config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce
systemctl enable --now docker.service
Install AWX dependencies for python3 Docker-Compose installation
yum install -y python-docker
yum install -y python3-pip
yum install -y python3-devel
pip3 install --upgrade pip
pip3 install ansible
Install Docker python module via pip - required for AWX installation
pip install docker-py
Install Docker-Compose
pip3 install docker-compose
The PostgreSQL DB is local to the AWX install.
The only differences in the environments are miner and are below:
The old AWX 9.3.0 environment:
-
Centos 7.7.1908
-
Docker-Compose = 1.25.4, build unknown
-
Pip3 = 20.0.2 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
-
Python = 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
-
Ansible = 2.9.6
The new environment used for AWX 11.2.0, 13.0.0, 15.0.0
-
Centos 7.9.2009
-
Docker-Compose = 1.27.4, build unknown
-
Pip3 = 20.3.3 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
-
Python = Python 3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
-
Ansible = 2.10.4
The configuration of both CentOS operating systems is the same apart from the version difference, yum if auto updating the OS version on the new server as part of the scripted deployment process.
AWX states it is supported on CentOS 7.7 and later so I would except 7.9 to be ok.
I’ve tried disabling the local CentOS firewall with no success but if it was a firewall issue, I’d expect there to be issues with the other package downloads.
Looking at the error message it seems to be a problem within the Docker environment but as it removes all the containers upon failing there are no logs for this.
I also tried installing version 9.3.0 on new host but ran into a different issue where a package download URL has changed and the 9.3.0 build still references the old one so it fails on this - hence I cannot test with the old AWX version.
https://centos7.iuscommunity.org as referenced by the installer is now https://ius.io/.
This issue does not occur on the newer versions of AWX I am trying to install.
I’ve spent some time searching for an answer to this issue but have been unable to find one, so any help is appreciated.
Thanks