[tools] RHEL5
Etienne Lequeux
etienne.lequeux at alcatel-lucent.fr
Mon Aug 27 20:50:54 CEST 2007
LO,
Tried to use mrepo, using RHEL5, to get RHEL5 Server updates from RHN,
with no success :( using mrepo svn 5702)
I tried to follow instructions from
http://lists.rpmforge.net/pipermail/tools/2007-May/000827.html
What I did:
- Extracted the /usr/share/rhn directory from r running RH4 to usr/share/mrepo/rhn
- Created /etc/sysconfig/rhn/sources containing : up2date default
- Created /etc/sysconfig/rhn/up2date-uuid containing :
uuid[comment]=Universally Unique ID for this server
rhnuuid=UUID
- genned a systemid, using:
gensystemid -a i386 -r 5Server -p xxx -u yyy /var/mirror/mrepo/rhel5s-i386
- did a mrepo.conf like:
[rhel5s]
name = Red Hat Advanced Server ($arch)
release = 5
arch = i386
updates = rhns:///rhel-i386-server-5
but, with: mrepo -uvvv
fails like:
...
Setting option rhnlogin in section [main] to: yyy:xxx
Setting option arch in section [rhel5s] to: i386
rhel5s-i386: Updating Red Hat Advanced Server 5 (i386)
rhel5s-i386: Mirror packages from rhns:///rhel-i386-server-5 to /var/mirror/mrepo/rhel5s-i386/updates
Traceback (most recent call last):
File "/usr/bin/rhnget", line 501, in ?
main()
File "/usr/bin/rhnget", line 480, in main
mirrorrhn(op.uri, op.destination)
File "/usr/bin/rhnget", line 349, in mirrorrhn
systemid = rhnlogin(url, path)
File "/usr/bin/rhnget", line 316, in rhnlogin
li = rpcServer.doCall(server.up2date.login, systemid)
File "/usr/share/mrepo/rhn/up2date_client/rpcServer.py", line 248, in doCall
raise up2dateErrors.CommunicationError(e.args[0])
up2date_client.up2dateErrors.CommunicationError: Error communicating with server. The message was:
timed out
mrepo: Mirroring failed for rhns:///rhel-i386-server-5 with message:
Failed with return code: 256
(yum updates OK)
-> Am I wrong somewhere ?
TIA
Etienne\
More information about the tools
mailing list