Howdy again, everyone! I've been battling setting up a Katello (via nightlies,
granted) server on rhel 6.4 with the purpose
of managing a bunch of rhel 5.6 clients for the past week. According to the docs, this
shouldn't be an issue out of the box.
One of the main issues I've ran into is the has that rhel 6.4 (and Katello, by
default) uses in generating
it's repos is sha256. This is something that rhel 5.x does not support natively (only
sha1). 'createrepo' shipped with Katello
*does* have the option to generate the hash's with sha1, however, using the '-s
hashtype' arg.
I'm hoping to be able to put in a bug report this week documenting this, with the
request being an option to specify the hash
you want to use when generating a repo.
In the meantime, I've documented what needs to be done to work around this issue.
Please bear in mind my rhel5 consumers do *not* have internet access, so everything had to
be setup somewhere on my local lan. I just used my Katello server. Anyway, here it is
and hopefully it's good enough and accurate enough to be added to the official
Documentation:
----------
1) On your Katello server (or wherever) create a rhel5 friendly repo (I used
/var/www/html/pub/rhsm):
- Add the following rpm's from
http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-s...
subscription-manager-1.0.12-1.el5.centos.x86_64.rpm
subscription-manager-debuginfo-1.0.12-1.el5.centos.x86_64.rpm
subscription-manager-firstboot-1.0.12-1.el5.centos.x86_64.rpm
subscription-manager-gui-1.0.12-1.el5.centos.x86_64.rpm
subscription-manager-migration-1.0.12-1.el5.centos.x86_64.rpm
python-rhsm-1.10.1-1.el5.centos.x86_64.rpm
python-rhsm-1.9.1-1.el5.centos.x86_64.rpm
python-rhsm-debuginfo-1.10.1-1.el5.centos.x86_64.rpm
python-rhsm-debuginfo-1.9.1-1.el5.centos.x86_64.rpm
virt-what-1.11-2.el5.x86_64.rpm
- Add the below rpm from
http://skvidal.fedorapeople.org/hashlib/
python-hashlib-20081119-2.x86_64.rpm
- Add the below rpm from your rhel 5.x repo (or wherever you can find it):
virt-what-1.11-2.el5.x86_64.rpm
- Create the repo - 'createrepo -s sha1 .'
2) Add the repo on your client:
[rhsm]
name=Subscription Manger $releasever - $basearch
baseurl=http://<your-server.name/path/to/repo
enabled=1
gpgcheck=0
3) Install subscription-manager and python-hashlib
- yum install subscription-manager python-hashlib
4) A couple times, I've ran into this error when using subscription-manager:
"'module' object has no attribute 'get_warnings'"
- vi /usr/share/rhsm/subscription_manager/hwprobe.py : remove dmidecode.get_warnings()
(lines 439-443, although your line numbers may vary)
- I'm not sure why I don't always get that error, but it's happened a couple
different times following the above steps exactly.
-------------
I'll be sending a couple more emails shortly with other issues :)
--
"I find your lack of faith disturbing."
--Darth Vader