Mirrorlist error when trying to build EE

202 views
Skip to first unread message

arjuna jankie

unread,
Jul 12, 2023, 7:43:00 AM7/12/23
to AWX Project
Hi everyone,

I am trying to use to the community.general.ilo_redfish_config module to configure my company's ilo configuration, but I think the module is not default installed in the awx stack. So after doing some research I was trying to set up my own excution environment, but I ran through a error with mirrorlist of cent os stream 8. See the error:
 366.0 CentOS Stream 8 - AppStream                     0.0  B/s |   0  B     06:00
366.0 Errors during downloading metadata for repository 'appstream':
366.0   - Curl error (28): Timeout was reached for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Connection timed out after 30000 milliseconds]
366.0 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Connection timed out after 30000 milliseconds]

I used a execution-environment.yaml to get image running, but the changes that I mad (changing the mirrorlist) didn't work. see my execution.envirnment.yaml:
---
version: 1

build_arg_defaults:
  EE_BASE_IMAGE: 'quay.io/ansible/ansible-runner:latest'

dependencies:
  galaxy: requirements.yaml
  python: requirements.txt
  system: bindep.txt


additional_build_steps:
  prepend: |
    RUN whoami
    RUN cat /etc/os-release
  append:
    - RUN echo This image is brought you kindly by thedatabaseme
    - RUN ls -la /etc
    - RUN alternatives --set python /usr/bin/python3
    - COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
    - RUN mkdir -p /var/run/receptor
    - RUN cd /etc/yum.repos.d/
    - RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
    - RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
    - RUN yum update -y
    - USER 1000
    - RUN git lfs install

Can someone please give some advise what to do to get the EE working or what I can different just to configure my business ilo configuration?

AWX Project

unread,
Jul 14, 2023, 1:29:58 PM7/14/23
to AWX Project
ansible builder 3.0 offer more flexible for users to provide commands during the build process. For example you would need to add mirrors in a step that occurs before the building begins


AWX Team
Reply all
Reply to author
Forward
0 new messages