I'm getting a different error now:
# dnf install gcc
CentOS Stream 9 - BaseOS 890 B/s | 3.9 kB 00:04
Errors during downloading metadata for repository 'baseos':
- Downloading successful, but checksum doesn't match. Calculated: 4152182febfc572005903a92f9bf890fbf4c89cbb24fa3c2d18aff986b9507e31e783b83c307a9166dea027966b3a24da1f5c292fbe5323373d5efe4c2450553(sha512) Expected: f14c0fffec622123d1d4d7a32b1cad1855c4cb28242298243b0d07dff81bfc085f75c19958b40ad72f013a2209bf208edaca5c6d395b77df7beeff25c6ed1b46(sha512)
Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
This reminds me to an issue we had in the past with mirrors sync?