<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1726374109;
        mso-list-type:hybrid;
        mso-list-template-ids:1877660436 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi!<o:p></o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal>This is what I’m trying to do:<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>Mirror the RPM files from Fedora EPEL5 and 6 repositories locally in-house using lftp – Works fine<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>Download Fedora EPEL 5 and 6 comps files using wget (*-comps-el5.xml.gz and *-comps-el6.xml.gz) – Works fine<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>Rename and unpack the comps files – Works fine<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>Download Fedora EPEL 5 and 6 errata files using wget (updateinfo.xml.gz) – Works fine<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>Rename and unpack the files (updateinfo.xml) – Works fine<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>6.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>Create YUM repo data for the locally in-house mirrored Fedora EPEL repos using createrepo with the –g option – Works fine<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>7.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>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<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>8.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>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.<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>9.<span style='font:7.0pt "Times New Roman"'>       </span></span><![endif]><span dir=LTR></span>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<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This is a cut out of how my channel set-up looks like:<o:p></o:p></p><p class=MsoPlainText>Parent - Red Hat Enterprise Linux 6 Workstation x86_64<o:p></o:p></p><p class=MsoPlainText>                Child - Red Hat Enterprise Linux 6 Workstation x86_64 Updates<o:p></o:p></p><p class=MsoPlainText>                Child - Red Hat Enterprise Linux 6 Workstation x86_64 Optional<o:p></o:p></p><p class=MsoPlainText>                Child - Red Hat Enterprise Linux 6 Workstation x86_64 Supplementary<o:p></o:p></p><p class=MsoPlainText>                Child - Fedora EPEL for Red Hat Enterprise Linux 6 Workstation x86_64<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=FR>Parent - Red Hat Enterprise Linux 6 Server x86_64<o:p></o:p></span></p><p class=MsoPlainText><span lang=FR>                Child - Red Hat Enterprise Linux 6 Server x86_64 Updates<o:p></o:p></span></p><p class=MsoPlainText><span lang=FR>                Child - Red Hat Enterprise Linux 6 Server x86_64 Optional<o:p></o:p></span></p><p class=MsoPlainText><span lang=FR>                </span>Child - Red Hat Enterprise Linux 6 Server x86_64 Supplementary<o:p></o:p></p><p class=MsoPlainText>                Child - Fedora EPEL for Red Hat Enterprise Linux 6 Server x86_64<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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: <o:p></o:p></p><p class=MsoNormal>xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: ERROR: date out of range for timestamp'><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anyone else who has bumped into the same problem? How did you solve it?<o:p></o:p></p><p class=MsoNormal>Any help or tip is appreciated.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best regards<o:p></o:p></p><p class=MsoNormal>Frank Mikkelsen Blohmé<o:p></o:p></p><p class=MsoNormal>IT Group - System Specialist Linux<o:p></o:p></p><p class=MsoNormal>Axis Communication AB – Lund, Sweden<o:p></o:p></p></div></body></html>