The day has come. I have to have an EE to talk to network devices. I'm following Calvin Remsburg's tutorial at
https://www.youtube.com/watch?v=mTllPoQQFjg. Around the 46 minute point, he builds the EE.
When build my EE, the RHEL 9 box on which I'm doing the build is ruined. After doing it twice, the box will only run for 30 seconds. Happily, I was working in a sandbox, so no harm done, but what do I do?
Before running ansible-builder I must install pip so I can install builder
> python -m ensurepip --upgrade
> python -m pip install ansible-builder
I create 3 files:
execution-environment.yml
<#
---
version: 1
dependencies:
galaxy: requirements.yml
python: requirements.txt
additional_build_steps:
prepend: |
RUN pip3 install --upgrade pip setuptools
append:
- RUN ls -la /etc
#>
requirements.yml
<#
collections:
- juniper.device
#>
requirements.txt
<#
junos-eznc
jsnapy
jxmlease
#>
Then execute the build from a locally registered base image:
> ansible-builder build --tag kevinplaying --build-arg EE_BASE_IMAGE=
quay-remote.rtfx.mycompanysc.com/ansible/awx-ee:latest -v 3
When I did it the first time I was being stopped by some firewalls. I got that fixed. After that, it runs happily along until:
...
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
+ cp /tmp/src/requirements.txt /output/requirements.txt
++ ls -1 '/output/wheels/*whl'
++ wc -l
+ '[' 0 -gt 0 ']'
++ get-extras-packages
+ /usr/bin/dnf clean all
44 files removed
+ rm -rf /var/cache/dnf /var/cache/yum
+ rm -rf /var/lib/dnf/history.sqlite /var/lib/dnf/history.sqlite-shm /var/lib/dnf/history.sqlite-wal
+ rm -rf /var/log/dnf.librepo.log /var/log/dnf.log /var/log/dnf.rpm.log /var/log/hawkey.log
+ rm -rf /tmp/venv
Remote side unexpectedly closed network connection
(The server closed the the connection, because it powered itself off completely.)
Is "dnf" a sign the process did not finish? Is it just trying to abandon ship cleanly? Any guesses what's dying? I'll attach the log files in a post shortly.