composer-cli fails with a DepsolveError when trying to build an image

Posted on

I'm on 9.4 with kernel 5.14.0-427.22.1.el9_4.x86_64, I'm trying to build an image using composer-cli. I have all the required applications installed. I run the following command to start the image creation:

sudo composer-cli compose start rhel_img qcow2

But I get this error message:

ERROR: DepsolveError: DNF error occurred: RepoError: There was a problem reading a repository: Failed to download metadata for repo '6cea7e7363a055ffb1e78661f4f11174a8137fb2fcdcf73b1d15a0ca7a465241' [baseos: https://cdn.redhat.com/content/dist/rhel9/9.4/x86_64/baseos/os]: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

At face value it looks like a dnf error, but I'm able to search and install applications using dnf and I don't get any errors, e.g.

Updating Subscription Management repositories.
Last metadata expiration check: 0:20:33 ago on Mon 01 Jul 2024 11:41:28 AM EDT.
Dependencies resolved.
...
Installed:
  gssproxy-0.8.4-6.el9.x86_64 keyutils-1.6.3-1.el9.x86_64         libev-4.33-5.el9.x86_64 libnfsidmap-1:2.5.4-25.el9.x86_64 libverto-libev-0.3.2-3.el9.x86_64 nfs-utils-1:2.5.4-25.el9.x86_64
  rpcbind-1.2.6-7.el9.x86_64  sssd-nfs-idmap-2.9.4-6.el9_4.x86_64

Complete!

Note that I get the same error message if I try to use Image Builder in the Cockpit UI.

Responses