atp

Atp's external memory

yum problems

Not an obvious solution

So, going back and fixing up auth on our few remaining older systems (centos 5, not internet facing) came across the error below. Solution was beautifully non obvious, so it goes here in the external memory pack.

yum --enablerepo=my-repo-x86_64  list updates
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: a.centos.mirror
 * epel: another.centos.mirror
 * extras: and.a.further.centos.mirror
 * updates: centos-updates.co.uk
my-repo-x86_64                                                                                                                                                       | 2.9 kB     00:00     
my-repo-x86_64/primary_db                                                                                                                                            | 7.1 kB     00:00     
http://myreposerver.internal.domain/my-repo/repodata/7d1016c9fcac64ee6c0fe9b5b\
58ed1e791dae601b1b0be13ea8af523761fbabd-primary.sqlite.bz2: [Errno -3] \
Error performing checksum
Trying other mirror.
my-repo-x86_64/primary_db                                                                                                                                            | 7.1 kB     00:00     
Error: failure: repodata/7d1016c9fcac64ee6c0fe9b5b58ed1e791dae601b1b0be13ea8af5\
23761fbabd-primary.sqlite.bz2 from my-repo-x86_64: [Errno 256] \
No more mirrors to try.

Do not pass go. Do not collect your new sssd binaries.

After rummaging through all sorts of posts that pointed the finger at the network, and advising things like putting 

http_caching=none

in your /etc/yum.conf

I eventually tracked it down to this;

 yum -y install python-hashlib

Obvious.

The repos were on a more up to date centos, so we also wasted a bit of time with that. For some reason all the public repos are fine, but anything made on centos 6 and above requires this on the centos 5 clients. This also applies to pulp repositories.

Written by atp

Monday 29 September 2014 at 5:37 pm

Posted in Annoyances, Linux

Leave a Reply