shiftstack / dev-install

13 stars 16 forks source link

Step "Install container-tools module" fails with 404 #172

Closed pierreprinetti closed 2 years ago

pierreprinetti commented 2 years ago

Note that the initial warning is unrelated.

TASK [Install container-tools module] **********************************************************************************
[WARNING]: Consider using the dnf module rather than running 'dnf'.  If you need to use command because dnf is
insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid
of this message.
fatal: [standalone]: FAILED! => {"changed": true, "cmd": "dnf module disable -y container-tools:rhel8\ndnf module enable -y container-tools:\"3.0\"\n", "delta": "0:00:08.245101", "end": "2021-11-18 09:24:27.818698", "msg": "non-zero return code", "rc": 1, "start": "2021-11-18 09:24:19.573597", "stderr": "Errors during downloading metadata for repository 'rhel-8-for-x86_64-highavailability-eus-rpms':\n  - Status code: 404 for https://cdn.redhat.com/content/eus/rhel8/8/x86_64/highavailability/os/repodata/repomd.xml (IP: 2.16.30.83)\nError: Failed to download metadata for repo 'rhel-8-for-x86_64-highavailability-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried\nErrors during downloading metadata for repository 'rhel-8-for-x86_64-highavailability-eus-rpms':\n  - Status code: 404 for https://cdn.redhat.com/content/eus/rhel8/8/x86_64/highavailability/os/repodata/repomd.xml (IP: 2.16.30.83)\nError: Failed to download metadata for repo 'rhel-8-for-x86_64-highavailability-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "stderr_lines": ["Errors during downloading metadata for repository 'rhel-8-for-x86_64-highavailability-eus-rpms':", "  - Status code: 404 for https://cdn.redhat.com/content/eus/rhel8/8/x86_64/highavailability/os/repodata/repomd.xml (IP: 2.16.30.83)", "Error: Failed to download metadata for repo 'rhel-8-for-x86_64-highavailability-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "Errors during downloading metadata for repository 'rhel-8-for-x86_64-highavailability-eus-rpms':", "  - Status code: 404 for https://cdn.redhat.com/content/eus/rhel8/8/x86_64/highavailability/os/repodata/repomd.xml (IP: 2.16.30.83)", "Error: Failed to download metadata for repo 'rhel-8-for-x86_64-highavailability-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried"], "stdout": "Updating Subscription Management repositories.\nRed Hat Enterprise Linux 8 for x86_64 - High Av  11  B/s |  10  B     00:00    \nUpdating Subscription Management repositories.\nRed Hat Enterprise Linux 8 for x86_64 - High Av  11  B/s |  10  B     00:00    ", "stdout_lines": ["Updating Subscription Management repositories.", "Red Hat Enterprise Linux 8 for x86_64 - High Av  11  B/s |  10  B     00:00    ", "Updating Subscription Management repositories.", "Red Hat Enterprise Linux 8 for x86_64 - High Av  11  B/s |  10  B     00:00    "]}

For better readability, here's the same command run from a root shell directly:

# dnf module disable -y container-tools:rhel8
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - High Availability - Extended Update Support (RP 7.9  B/s |  10  B     00:01
Errors during downloading metadata for repository 'rhel-8-for-x86_64-highavailability-eus-rpms':
  - Status code: 404 for https://cdn.redhat.com/content/eus/rhel8/8/x86_64/highavailability/os/repodata/repomd.xml (IP: 95.101.44.251)
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-highavailability-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
EmilienM commented 2 years ago

Error: Failed to download metadata for repo 'rhel-8-for-x86_64-highavailability-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried is a sporadic issue. You need to retry, this is likely a CDN issue.

EmilienM commented 2 years ago

your issue is probably a wrong OS (RHEL 8.5 instead of 8.4).

pierreprinetti commented 2 years ago

Indeed, it does not reproduce on 8.4.