Hi!
I've been trying to figure out how to clone/sync the errata in one channel into
another channel within the same Spacewalk server (version 1.8) but haven't
found any resolution.
This is what I'm trying to do:
1. Mirror the RPM files from Fedora EPEL5 and 6 repositories locally
in-house using lftp - Works fine
2. Download Fedora EPEL 5 and 6 comps files using wget
(*-comps-el5.xml.gz and *-comps-el6.xml.gz) - Works fine
3. Rename and unpack the comps files - Works fine
4. Download Fedora EPEL 5 and 6 errata files using wget
(updateinfo.xml.gz) - Works fine
5. Rename and unpack the files (updateinfo.xml) - Works fine
6. Create YUM repo data for the locally in-house mirrored Fedora EPEL
repos using createrepo with the -g option - Works fine
7. Sync the locally in-house mirrored Fedora EPEL repos (now with YUM
data and group info) into Spacewalk channels using spacewalk-repo-sync - Works
fine
8. Sync the errata info from Fedora EPEL 5 and 6 errata files into
Spacewalk channels using ya-errata-import.pl - Works for one channel with
Fedora EPEL 5 RPMs and one channel with Fedora EPEL 6 RPMs.
9. Now I'd like to sync or clone the errata in the Fedora EPEL 5 and 6
channels into other channels, this is where I haven't gotten it to work
This is a cut out of how my channel set-up looks like:
Parent - Red Hat Enterprise Linux 6 Workstation x86_64
Child - Red Hat Enterprise Linux 6 Workstation x86_64 Updates
Child - Red Hat Enterprise Linux 6 Workstation x86_64 Optional
Child - Red Hat Enterprise Linux 6 Workstation x86_64
Supplementary
Child - Fedora EPEL for Red Hat Enterprise Linux 6 Workstation
x86_64
Parent - Red Hat Enterprise Linux 6 Server x86_64
Child - Red Hat Enterprise Linux 6 Server x86_64 Updates
Child - Red Hat Enterprise Linux 6 Server x86_64 Optional
Child - Red Hat Enterprise Linux 6 Server x86_64 Supplementary
Child - Fedora EPEL for Red Hat Enterprise Linux 6 Server x86_64
I can sync in the errata info from a Fedora EPEL errata file into one channel,
when I want to sync the same errata info into another channel it fails. I
believe the problem to be that each errata ID is already in the Spacewalk
database and that's why it fails.
I have tried to reconfigure the rhn-clone-errata script to do the task of
taking the errata from one channel, suffixing the errata ID, and clone it into
another channel, but it seems that the rhn-clone-errata script isn't compatible
with this kind of task. I get strange errors when running:
xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal
exception: ERROR: date out of range for timestamp'>
When cloning the channel in the Spacewalk GUI it works just fine, all packages
and all the errata gets cloned, but I have not been able to do the same command
line wise. I have tried to clone using spacecmd, but then only the packages got
cloned, not the errata. It is not manageable having to clone it manually after
each and every update.
Anyone else who has bumped into the same problem? How did you solve it?
Any help or tip is appreciated.
Best regards
Frank Mikkelsen Blohmé
IT Group - System Specialist Linux
Axis Communication AB - Lund, Sweden
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list