<br>Hello everydoby <br><br> I have trayed to use the tool “ rhn-clone-errata.py 0.3" but obtain this error..<br>"./rhn-clone-errata.py -s localhost -l nehemias -p xxxxxxxx -c rhel-i386-server-5 -u"<br><br>Error Creating Errata!<br>
Traceback (most recent call last):<br>  File "./rhn-clone-errata.py", line 565, in ?<br>    main()<br>  File "./rhn-clone-errata.py", line 557, in main<br>    0)<br>  File "./rhn-clone-errata.py", line 367, in errataCreate<br>
    new_errata = self.server.errata.create(self.rhnSession,info,bugs,keywords,packages,publish,channels)<br>  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__<br>    return self.__send(self.__name, args)<br>
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request<br>    verbose=self.__verbose<br>  File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request<br>    return self._parse_response(h.getfile(), sock)<br>
  File "/usr/lib/python2.4/xmlrpclib.py", line 1286, in _parse_response<br>    return u.close()<br>  File "/usr/lib/python2.4/xmlrpclib.py", line 744, in close<br>    raise Fault(**self._stack[0])<br>xmlrpclib.Fault: <Fault 1201: 'redstone.xmlrpc.XmlRpcFault: Invalid channel label'><br>
<br>But when I get there the same syntax finished in  "v" : "./rhn-clone-errata.py -s localhost -l nehemias -p xxxxxxx -c rhel-i386-server-5 -v"<br><br> I get the following<br>RHBA-2009:0452<br>    Errata already exists.  RHBA-2009:0452:R5-32<br>
RHBA-2009:1112<br>    Errata already exists.  RHBA-2009:1112:R5-32<br>RHBA-2009:1120<br>    Errata already exists.  RHBA-2009:1120:R5-32<br>RHBA-2009:0482<br>    Errata already exists.  RHBA-2009:0482:R5-32<br>RHEA-2009:1121<br>
    Errata already exists.  RHEA-2009:1121:R5-32<br>RHBA-2009:0483<br>    Errata already exists.  RHBA-2009:0483:R5-32<br>RHBA-2009:1079<br>    Errata already exists.  RHBA-2009:1079:R5-32<br>RHBA-2009:0462<br>...etc...etc..<br>
<br>#SPW 0.6  <br>#RHEL 5.4 i386<br><br><br>What is happening? <br>Where I get the 04 versions rhn-clone-errata.py? <br><br><br><br><div class="gmail_quote">2009/10/17 Mullis, Josh (CCI - Atlanta) <span dir="ltr"><<a href="mailto:josh.mullis@cox.com">josh.mullis@cox.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  
  

<div>
<br>
<br>
Andy,<br>
<br>
Great work on this script.<br>
It is a very nice addition to spacewalk...<br>
<br>
<br>
I am having one problem and it's probably something I'm doing wrong:<br>
When I'm running the script, I get a good bit of the "Hmmm... Package Missing:" errors.<br>
<br>
For example, when I'm cloning the rhel-x86_64-server-5 errata from RHN, kpartx is one of the packages that it says it's missing.<br>
<br>
I can search for kpartx in the package search page and I have a main package called "kpartx", and it has all the versions inside.<br>
<br>
<br>
<br>
It might be a database problem, but I figured I'd see if you've seen this before.<br>
<br>
Using:<br>
- spacewalk v0.6<br>
- rhn-clone-errata.py v0.4<br>
<br>
<br>
Many thanks!<br><font color="#888888">
-Josh</font><div><div></div><div class="h5"><br>
<br>
<br>
On Wed, 2009-10-14 at 08:07 -0400, Andy Speagle wrote:
<blockquote type="CITE">
<pre>On Wed, 2009-10-14 at 03:30 -0500, <a href="mailto:RLehmann@timocom.com" target="_blank">RLehmann@timocom.com</a> wrote:
> is there a way to push RHN Erratas into Spacewalk 0.6 on an RHEL 5
> Server?

The best way to do this is to use the API to replicate the errata from
RHN into your Spacewalk server.  I've proven the concept on my own
Spacewalk 0.6 server with a python script ... and a few caveats.

1) There doesn't seem to be a way to efficiently "merge" errata like you
would in a commercial Satellite with access to official RHN errata.  

2) Publishing an entire erratum into all channels on your Spacewalk
server for which it is relevant can result in undesired behaviour.  For
instance, if you have an erratum that effects both RHEL4 and RHEL5
(assuming you are managing both flavours) the RPMs meant for RHEL5 are
pushed into the RHEL4 channel as well, since it's just checking version.

The best way I've found to avoid this is to split each erratum into
multiple errata, one for each RHEL version and arch, and append a
version-arch code to the end of the advisory name, such as,
RHSA-XXXX:YYYY:R5-64 (RHEL5 - x86_64).

3) Subsequent cloning of these errata for publishing into separate
"production" channels doesn't work as one would expect from the WebUI.
Cloning works fantastically, however, the publishing step strips the
RPMs from the cloned erratum and does not push the relevant RPMs into
the destination "production" channel.  I have filed a bug on this one.

The only way I've found to do this properly is via the API, where
"server.errata.clone()" does indeed push the packages to the destination
channel and retains them in the cloned errata.

4) There's no way via the v0.6 API to specify the "issue date" for an
erratum.  This date is merely the date in which you created the erratum.
This makes cloning errata into "production" a little more tricky, since
I can't rely on "issue date" in my Spacewalk server.  I have submitted a
bug/feature request for that one too.

----

I hope that helps.
</pre>
</blockquote>
</div></div></div>

<br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br>