[Spacewalk-list] Getting RHEL content
Colin Coe
colin.coe at gmail.com
Mon Nov 9 01:47:07 UTC 2009
Hi all
Still struggling with getting RHEL content into spacewalk.
I've installed mrepo (manually from EPEL, "mrepo-0.8.6-5.el5") and
configured it by adding my RHN and proxy details to /etc/mrepo.conf as well
as copying /usr/share/doc/mrepo-0.8.6/dists/rhel5s.conf to
/etc/mrepo.conf.d/rhel5s.conf and disabling rpmforge.
I've created the RHEL5 channels and below is the output of a quick API
script to dump the channel details.
---
$VAR1 = {
'gpg_key_url' => '
http://sat.server.com/pub/RPM-GPG-KEY-redhat-release',
'arch_name' => 'x86_64',
'end_of_life' => '',
'name' => 'RHEL FasTrack v. 5 for 64-bit x86_64',
'description' => 'Red Hat Enterprise Linux - Server FasTrack early
access to low impact fixes v. 5 for 64-bit AMD64 / Intel64',
'parent_channel_label' => 'rhel-x86_64-server-5',
'gpg_key_fp' => '47DB 2877 89B2 1722 B6D9 5DDE 5326 8101 3701
7186',
'gpg_key_id' => '37017186',
'summary' => 'Red Hat Enterprise Linux FasTrack v. 5 for 64-bit
AMD64 / Intel64 Server',
'id' => '107',
'label' => 'rhel-x86_64-server-fastrack-5'
};
$VAR1 = {
'gpg_key_url' => '
http://sat.server.com/pub/RPM-GPG-KEY-redhat-release',
'arch_name' => 'x86_64',
'end_of_life' => '',
'name' => 'Hed Rat Network Tools for RHEL Server v.5 64-bit
x86_64',
'description' => 'Red Hat Network Tools for RHEL 5 Server x86_64',
'parent_channel_label' => 'rhel-x86_64-server-5',
'gpg_key_fp' => '47DB 2877 89B2 1722 B6D9 5DDE 5326 8101 3701
7186',
'gpg_key_id' => '37017186',
'summary' => 'Red Hat Network Tools for RHEL 5 Server x86_64',
'id' => '108',
'label' => 'hrn-tools-rhel-x86_64-server-5'
};
$VAR1 = {
'gpg_key_url' => '
http://sat.server.com/pub/RPM-GPG-KEY-redhat-release',
'arch_name' => 'x86_64',
'end_of_life' => '',
'name' => 'HedRat Enterprise Linux Server 5 ',
'description' => 'Red Hat Enterprise Linux - Server core
components v. 5 for 64-bit AMD64 / Intel64',
'parent_channel_label' => '',
'gpg_key_fp' => '47DB 2877 89B2 1722 B6D9 5DDE 5326 8101 3701
7186',
'gpg_key_id' => '37017186',
'summary' => 'HedRat Enterprise Linux v. 5 for 64-bit AMD64 /
Intel64 Server',
'id' => '101',
'label' => 'rhel-x86_64-server-5'
};
$VAR1 = {
'gpg_key_url' => '
http://sat.server.com/pub/RPM-GPG-KEY-redhat-release',
'arch_name' => 'x86_64',
'end_of_life' => '',
'name' => 'RHEL Virtualization v. 5 for 64-bit x86_64',
'description' => 'Red Hat Enterprise Linux - Server virtualization
environment v. 5 for 64-bit AMD64 / Intel64 ',
'parent_channel_label' => 'rhel-x86_64-server-5',
'gpg_key_fp' => '47DB 2877 89B2 1722 B6D9 5DDE 5326 8101 3701
7186',
'gpg_key_id' => '37017186',
'summary' => 'Red Hat Enterprise Linux Virtualization Environment
v. 5 for 64-bit AMD64 / Intel64 Server',
'id' => '110',
'label' => 'rhel-x86_64-server-vt-5'
};
$VAR1 = {
'gpg_key_url' => '
http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL',
'arch_name' => 'x86_64',
'end_of_life' => '',
'name' => 'EPEL 5 x86_64',
'description' => '',
'parent_channel_label' => 'rhel-x86_64-server-5',
'gpg_key_fp' => 'B940 BE07 7D71 0A28 7D7F 2DD1 119C C036 2175
21F6',
'gpg_key_id' => '217521F6',
'summary' => 'EPEL 5 x86_64',
'id' => '102',
'label' => 'epel-5-x86_64'
};
$VAR1 = {
'gpg_key_url' => '
http://sat.server.com/pub/RPM-GPG-KEY-redhat-release',
'arch_name' => 'x86_64',
'end_of_life' => '',
'name' => 'RHEL Supplementary v. 5 for 64-bit x86_64',
'description' => 'Red Hat Enterprise Linux - Server supplementary
software with non-standard SLAs and/or licenses v. 5 for 64-bit AMD64 /
Intel64',
'parent_channel_label' => 'rhel-x86_64-server-5',
'gpg_key_fp' => '47DB 2877 89B2 1722 B6D9 5DDE 5326 8101 3701
7186',
'gpg_key_id' => '37017186',
'summary' => 'Red Hat Enterprise Linux Supplementary Software v. 5
for 64-bit AMD64 / Intel64 Server',
'id' => '109',
'label' => 'rhel-x86_64-server-supplementary-5'
};
---
When I run spacewalk-repo-sync I get python tracebacks. For example:
---
spacewalk-repo-sync --channel epel-5-x86_64 --url
http://download.fedora.redhat.com/pub/epel/5/x86_64/ --type yum --label
epel-5-x86_64
Traceback (most recent call last):
File "/usr/bin/spacewalk-repo-sync", line 71, in ?
sys.exit(abs(main() or 0))
File "/usr/bin/spacewalk-repo-sync", line 65, in main
sync.main()
File "/usr/share/rhn/satellite_tools/reposync.py", line 91, in main
self.import_packages(self.plugin.list_packages())
File "/usr/share/rhn/satellite_tools/repo_plugins/yum_src.py", line 42, in
list_packages
sack.populate(repo, 'metadata', None, 0)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in
populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 226, in
_check_db_version
return repo._check_db_version(mdtype)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1229, in
_check_db_version
repoXML = self.repoXML
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1392, in
<lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1388, in
_getRepoXML
raise Errors.RepoError, msg
yum.Errors.RepoError: Cannot retrieve repository metadata (repomd.xml) for
repository: epel-5-x86_64-epel-5-x86_64. Please verify its path and try
again
---
The error given on the last line appears to be the channel label and channel
name concatenated but spacewalk-repo-sync complains if either --channel or
--label are ommitted.
Thanks in advance and apologies for the long post.
CC
--
RHCE#805007969328369
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20091109/539bd306/attachment.htm>
More information about the Spacewalk-list
mailing list