Problem:
I have just added CentOS Stream 9 to my new (testing) katello server running 4.5. However, the sync of BaseOS fails with:
A file located at the url http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/images/boot.iso failed validation due to checksum.
I have checked the checksums in the .treeinfo file and compared them with the available isos and the error is correct. The sha256 of the iso which I get from http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/images/boot.iso is
cf4156d110e6a822c720bdc9e0addd18e90d0c94da302986912bed69aec4ef05 boot.iso
f7b68bd16e6f727eedb99d424425bd345be29616687442095282594ea447f203 efiboot.img
http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/.treeinfo says
[checksums]
images/boot.iso = sha256:c4980cd238a373313ddb2e7cc51ca7763f9f8a26e1e1195efbfb8452a4805ce3
images/efiboot.img = sha256:f7b68bd16e6f727eedb99d424425bd345be29616687442095282594ea447f203
images/install.img = sha256:38e4d73d5c53c04f7a23544c8d0d9abadb93355994c8d0dbf9519ec27bb2ce61
images/pxeboot/initrd.img = sha256:b7b313430ff53793c4f6b82131709dbc2fdce73a4ca3f98df51e15585a3f0788
images/pxeboot/vmlinuz = sha256:440e9d1a3028bc838377b804a179753d857a9a364946354eeaab868e13962419
efiboot.img is correct.
So far so good. I don’t mind the incorrect iso. It doesn’t need to be sync right now.
However, nothing else has been added to the repository. Package count is still 0.
Expected outcome:
Sync everything you can with correct checksums. I don’t see the reason why it should sync all rpms only because a single checksum is incorrect…
Foreman and Proxy versions:
Katello 4.5.0, Foreman 3.3
Distribution and version:
AlmaLinux 8