Alan,
Thank you again for your help!
I have done mrepo configuration, but failed at 'mrepo -uvvv' with lots of
errors like:
---------------------------------------------------------------------------
AttributeError: SafeTransport instance has no attribute '_use_datetime'
mrepo: Mirroring failed for rhns:///rhel-i386-server-vt-5 with message:
Failed with return code: 256
---------------------------------------------------------------------------
It looks like a datetime issue.
# date
Fri Aug 3 15:27:10 EDT 2012
# rpm -q rhpl
rhpl-0.221-2.el6.rf.x86_64
I've googled a lot but haven't found a solution yet. Any help will be greatly
appreciated!
nz
________________________________
From: Alan Pittman <[email protected]>
To: "'[email protected]'" <[email protected]>; "'[email protected]'"
<[email protected]>
Sent: Friday, August 3, 2012 9:24:43 AM
Subject: RE: [Spacewalk-list] Repository URL?
Nick,
Unfortunately, Spacewalk won’t/can’t connect to RHN. What mrepo will do is
connect(logon) to RHN and pull all of the RPMs and place them in a series on
directories. With the appropriate options, mrepo will then create a local
repository which then can be used to populate the Spacewalk database.
Follow the steps to install mrepo (if you haven’t already) and run the
gensystemid script (should be one of the steps in the install doc). Once that’s
done, you’ll have to create or update the mrepo.conf file. Here’s a portion of
mine so that you have an idea what to configure:
root@taeps001 etc]# cat ./mrepo.conf
### Configuration file for mrepo
### The [main] section allows to override mrepo's default settings
### The mrepo-example.conf gives an overview of all the possible settings
[main]
srcdir = /clonefs
wwwdir = /var/www/mrepo
confdir = /etc/mrepo.conf.d
arch = i386 x86_64
mailto = root@localhost
smtp-server = localhost
rhnlogin = <rhnuserid>:<rhnpassword>
### Any other section is considered a definition for a distribution
### You can put distribution sections in /etc/mrepo.conf.d/
### Examples can be found in the documentation at:
### /usr/share/doc/mrepo-0.8.7/dists/.
[5Server-x86_64]
name = Red Hat Enterprise Server ($release) ($arch)
release = 5
arch = x86_64
metadata = repomd repoview
iso = /clonefs/5Server-x86_64/rhel-server-5.7-x86_64-dvd.iso
### Additional repositories
updates = rhns:///rhel-$arch-server-5
# vt = rhns:///rhel-$arch-server-$repo-5
supplementary = rhns:///rhel-$arch-server-$repo-5
# fastrack = rhns:///rhel-$arch-server-$repo-5
# hts = rhns:///rhel-$arch-server-$repo-5
rhn-tools = rhns:///$repo-rhel-$arch-server-5
### RPMforge repository
# rpmforge =
rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/el$release/en/$arch/RPMS.dag/
#rpmforge = ftp://apt.sw.be/pub/dag/pub/redhat/el$release/en/$arch/RPMS.dag/
rpmforge = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.dag/
### EPEL repository
# EPEL = http://mirror.chpc.utah.edu/pub/epel/$release/$arch/
EPEL = http://mirror.metrocast.net/fedora/epel/5/x86_64/
### ELrepo repository
elrepo = http://elrepo.org/linux/elrepo/el5/$arch/
#elrepo-testing = http://elrepo.org/linux/testing/el5/$arch/
### OpenVZ repositories
#ovzkernel = http://download.openvz.org/kernel/rhel5/
#ovztemplate = http://download.openvz.org/template/
#ovzutils = http://download.openvz.org/utils/
### Fedora EPEL packages (incompatible with RPMforge)
#epel = http://download.fedora.redhat.com/pub/epel/$release/$arch/
### Custom repository for your own RPM packages
mondo = http://www.mondorescue.org/ftp/rhel/5/x86_64
spacewalk = http://spacewalk.redhat.com/yum/1.7/RHEL/5/x86_64
From:[email protected] [mailto:[email protected]]
Sent: Friday, August 03, 2012 9:07 AM
To: Alan Pittman; '[email protected]'
Subject: Re: [Spacewalk-list] Repository URL?
Hi Alan,
Thank you very much for your very helpful reply!!
My purpose is to patch all of our RHEL5x/6x systems, so I need to "connect to
RHN and download all of the available RPMS and populate your Spacewalk
repository" as you said. Please correct me if I am wrong here.
I've just installed mrepo, but still don't understand the whole picture. With
mrepor's help, can Spacewalk connect directly to the RHN servers? What URL
should be used in the Repository URL? Yes, I have RHN userid and password.
Have a nice day!
Nick
________________________________
From:Alan Pittman <[email protected]>
To: "'[email protected]'" <[email protected]>; "'[email protected]'"
<[email protected]>
Sent: Thursday, August 2, 2012 9:42:35 PM
Subject: RE: [Spacewalk-list] Repository URL?
Nick,
When I click on the link, the browser takes me to the repodata
sub-directory. When I tried backing up a couple of levels, I never saw any
RPMs.
Can I assume that you want to connect to RHN and download all of the available
RPMS and populate your Spacewalk repository? If so, you’ll have to download and
install a utility called mrepo because Spacewalk doesn’t have the ability to
connect directly to the RHN servers.
Also, must also have a valid RHN userid and password for mrepo to connect.
aep
From:[email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Thursday, August 02, 2012 5:01 PM
To: [email protected]
Subject: [Spacewalk-list] Repository URL?
Hi, I am now trying to create my first Repository for RHEL 6 (64bit) systems.
Can I use the following link as Repository URL in Spacewalk's Create New
Repository page?
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/x86_64/Debuginfo/repodata/
If it's not the right one, where can I find it?
Thank you in advance!
Nick
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list