Comment 7 for bug 2060271

Revision history for this message
John A Meinel (jameinel) wrote :

And before triggering and edge refresh, I'm going to -edge and seeing what it has:
root@juju-c9bfb2-1:/var/log/juju# grep -rnI "downloading "
machine-1.log:118:2024-04-05 14:37:21 INFO juju.downloader download.go:109 downloading from ch:amd64/jammy/github-runner-141
unit-gh-edge-0.log:11:2024-04-05 14:37:21 INFO juju.worker.uniter.charm bundles.go:81 downloading ch:amd64/jammy/github-runner-141 from API server

No indication that anything should have changed
root@juju-c9bfb2-1:/var/lib/juju/agents/unit-gh-edge-0/charm# grep -r "Weak hash algorithm" venv/wheel
grep: venv/wheel/__pycache__/wheelfile.cpython-310.pyc: binary file matches
venv/wheel/wheelfile.py: f"Weak hash algorithm ({algorithm}) is not permitted by "
root@juju-c9bfb2-1:/var/lib/juju/agents/unit-gh-edge-0/charm# ls scripts/
build-image.sh repo_policy_compliance_service.py

Still at 141.

Doing a refresh:
$ juju refresh gh-edge
Added charm-hub charm "github-runner", revision 145 in channel latest/edge, to the model
no change to endpoints in space "alpha": cos-agent, debug-ssh
root@juju-c9bfb2-1:/var/log/juju# grep -rnI "downloading "
machine-1.log:118:2024-04-05 14:37:21 INFO juju.downloader download.go:109 downloading from ch:amd64/jammy/github-runner-141
machine-1.log:123:2024-04-05 15:08:21 INFO juju.downloader download.go:109 downloading from ch:amd64/jammy/github-runner-145
machine-1.log:126:2024-04-05 15:08:25 INFO juju.downloader download.go:109 downloading from ch:amd64/jammy/github-runner-145
machine-1.log:129:2024-04-05 15:08:28 INFO juju.downloader download.go:109 downloading from ch:amd64/jammy/github-runner-145
unit-gh-edge-0.log:11:2024-04-05 14:37:21 INFO juju.worker.uniter.charm bundles.go:81 downloading ch:amd64/jammy/github-runner-141 from API server
unit-gh-edge-0.log:159:2024-04-05 15:08:21 INFO juju.worker.uniter.charm bundles.go:81 downloading ch:amd64/jammy/github-runner-145 from API server
unit-gh-edge-0.log:165:2024-04-05 15:08:25 INFO juju.worker.uniter.charm bundles.go:81 downloading ch:amd64/jammy/github-runner-145 from API server
unit-gh-edge-0.log:171:2024-04-05 15:08:28 INFO juju.worker.uniter.charm bundles.go:81 downloading ch:amd64/jammy/github-runner-145 from API server

In this case, we are triggering a download of Unit agent <- controller 3 times because the controller hasn't finished its download from charmhub.

After that:
root@juju-c9bfb2-1:/var/lib/juju/agents/unit-gh-edge-0/charm# ls scripts/
build-lxd-image.sh build-openstack-image.sh repo_policy_compliance_service.py

We are certainly at least at 143. catting build-openstack-image.sh:
# Uninstall unattended-upgrades, to avoid lock errors when unattended-upgrades is active in the runner
DEBIAN_FRONTEND=noninteractive /usr/bin/systemctl stop apt-daily.timer
DEBIAN_FRONTEND=noninteractive /usr/bin/systemctl disable apt-daily.timer
DEBIAN_FRONTEND=noninteractive /usr/bin/systemctl mask apt-daily.service
DEBIAN_FRONTEND=noninteractive /usr/bin/systemctl stop apt-daily-upgrade.timer
DEBIAN_FRONTEND=noninteractive /usr/bin/systemctl disable apt-daily-upgrade.timer
DEBIAN_FRONTEND=noninteractive /usr/bin/systemctl mask apt-daily-upgrade.service
DEBIAN_FRONTEND=noninteractive /usr/bin/systemctl daemon-reload
DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get purge unattended-upgrades -yq