ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
132 stars 158 forks source link

Can't build new EE as Centos 8 EOL #102

Closed wohnout closed 2 years ago

wohnout commented 2 years ago

I've tried to build new custom EE today and I am getting this error:

[2/3] STEP 5/5: RUN assemble
++ source /etc/os-release
+++ NAME='CentOS Linux'
+++ VERSION=8
+++ ID=centos
+++ ID_LIKE='rhel fedora'
+++ VERSION_ID=8
+++ PLATFORM_ID=platform:el8
+++ PRETTY_NAME='CentOS Linux 8'
+++ ANSI_COLOR='0;31'

+++ CPE_NAME=cpe:/o:centos:centos:8

+++ HOME_URL=https://centos.org/
+++ BUG_REPORT_URL=https://bugs.centos.org/
+++ CENTOS_MANTISBT_PROJECT=CentOS-8
+++ CENTOS_MANTISBT_PROJECT_VERSION=8
++ echo centos
+ RELEASE=centos
+ PKGMGR=
+ PKGMGR_OPTS=
+ '[' -z ']'
+ PKGMGR=/usr/bin/dnf
+ '[' -f /usr/bin/microdnf ']'
+ mkdir -p /output/bindep
+ mkdir -p /output/wheels
+ mkdir -p /tmp/src
+ cd /tmp/src
+ /usr/bin/dnf update -y
CentOS Linux 8 - AppStream                       45  B/s |  38  B     00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
[3/3] STEP 1/18: FROM quay.io/ansible/ansible-runner:stable-2.11-latest
Error: error building at STEP "RUN assemble": error while running runtime: exit status 1

Is there any possibility to switch to stream ? Or is this issue of ansible-builder?

wohnout commented 2 years ago

workaround for this is to create custom builder image using this Dockerfile:

FROM quay.io/ansible/ansible-builder:latest
RUN dnf -y --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
RUN dnf -y distro-sync

and set EE_BUILDER_IMAGE to this newly created image

shanemcd commented 2 years ago

Please make sure you have the latest version of all base images. We've since updated everything to use centos 8 stream.

wohnout commented 2 years ago

Thanks for help. Manual update of all images helped.