<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hey Andy thanks for the reply.<br>
    <br>
    RE: apply RHEL errata to CentOS: Ya I tend to do things a little
    differently, but I normally get there. CentOS is typically used for
    "customers" and getting them to apply patches is as we all know
    painful at best so  being able to know when they are needed is
    really beneficial to both my workflow and applying pressure when
    patching is needed.<br>
    <br>
    CentOS announces errata notifications just like RH. I can forward
    you a few if you wish.<br>
    <a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos-announce">http://lists.centos.org/mailman/listinfo/centos-announce</a><br>
    Is there a web resource to pull them from like you do with RH I'm
    unsure of. The CentOS announcements actually point back to RH for
    the real description so the errata seem to follow a very 1 to 1
    relationship. Clearly the underling packages are different though.<br>
    <br>
     In general what I've done seems to be working great the CentOS 5
    clients are getting the proper errata's listed but the 6 clients are
    not getting any listings.<br>
    <img src="cid:part1.04080708.08070003@lbl.gov" alt=""><br>
    <br>
    I'm happy to help in anyway I can at digging up CentOS info and
    testing. However my Python skills are terrible and work load
    prevents it from improving much, so offering patches is pretty much
    out of the question. Sorry.<br>
    <br>
    As for the ending error yes it occurs every time.<br>
    <br>
    John<br>
    <br>
    <br>
    <br>
    On 1/12/2012 6:57 AM, Speagle, Andy wrote:
    <blockquote
cite="mid:188F4C6C277F4843A5E712D5458E827708B902@mbxsvc-300.ad.wichita.edu"
      type="cite">
      <pre wrap="">Hi John,

Let's see if'n I can't clarify things for you... see below.

</pre>
      <blockquote type="cite">
        <pre wrap="">After upgrading to 1.6 I decided to give clone-errata another try.
I managed to have some success with version .2 getting my CentOS 5 x64
base channel errata working.
Couldn't get any others to work though, then I discovered that clone-
errata was up to ver 0.9

I'm now getting more errata published but they don't seem to apply to my
6 clients at all.
The ChanMap and SuffixMap sections are a bit confusing as the examples on
the web seem to reference RHEL channels only not CentOS ones.
</pre>
      </blockquote>
      <pre wrap="">
Ok, let me make sure I understand what you're trying to do.  You're connecting to RHN in order to pull errata from RHEL software channels, but are trying to apply those errata to CentOS channels in Spacewalk, yes?  If that's the case, then this simply isn't going to work.  Errata from RHN are meant for RHEL software channels, not CentOS channels.  
 
</pre>
      <blockquote type="cite">
        <pre wrap="">Any how this is what I've done:
[ChanMap]
rhel-x86_64-server-5=centos5-x86_64
rhel-x86_64-server-supplementary-5=centos5-x86_64-extras
rhel-x86_64-server-6=centos6-x86_64
rhel-x86_64-server-optional-6=centos6-x86_64-extras

[ChanSuffixMap]
rhel-x86_64-server-5=R5-64
rhel-x86_64-server-supplementary-5=R5-64-S
rhel-x86_64-server-6=R6-64
rhel-x86_64-server-optional-6=R6-64-O

Clearly I've at least confused the Suffix Map as I used both S and O.
Have I messed this up royally or what?
</pre>
      </blockquote>
      <pre wrap="">
The suffix map is intended to map official RHEL software channels from RHN with whatever names you gave your RHEL channels in spacewalk.  In my case, they're mostly the same, to save myself some hassle... but this allows you some flexibility in your channel naming convention.
 
</pre>
      <blockquote type="cite">
        <pre wrap="">Here are my channel labels and repos they point to:
centos5-x86_64 -- <a class="moz-txt-link-freetext" href="http://mirror.centos.org/centos-5/5/os/x86_64/">http://mirror.centos.org/centos-5/5/os/x86_64/</a>
centos5-x86_64-extras -- <a class="moz-txt-link-freetext" href="http://mirror.centos.org/centos/5/extras/x86_64/">http://mirror.centos.org/centos/5/extras/x86_64/</a>
centos5-x86_64-updates --
<a class="moz-txt-link-freetext" href="http://mirror.centos.org/centos-5/5/updates/x86_64/">http://mirror.centos.org/centos-5/5/updates/x86_64/</a>

centos6-x86_64 -- <a class="moz-txt-link-freetext" href="http://mirror.centos.org/centos-6/6/os/x86_64/">http://mirror.centos.org/centos-6/6/os/x86_64/</a>
centos6-x86_64-extras -- <a class="moz-txt-link-freetext" href="http://mirror.centos.org/centos/6/extras/x86_64/">http://mirror.centos.org/centos/6/extras/x86_64/</a>
centos6-x86_64-updates --
<a class="moz-txt-link-freetext" href="http://mirror.centos.org/centos-6/6/updates/x86_64/">http://mirror.centos.org/centos-6/6/updates/x86_64/</a>
</pre>
      </blockquote>
      <pre wrap="">
I wasn't aware that the CentOS maintainers published any official errata for their software... please clue me in if'n that's not the case.  Remember, just because they may be named the same thing, and lay down the exact same software; these packages are not the same.

</pre>
      <blockquote type="cite">
        <pre wrap="">I almost forgot, I'm getting this error when clone-errata exits:
</pre>
        <blockquote type="cite">
          <pre wrap="">Skipping errata due to missing package(s)...
RHSA-2008:0529
Traceback (most recent call last):
  File "./rhn-clone-errata-0.9.0.py", line 807, in <module>
    main()
  File "./rhn-clone-errata-0.9.0.py", line 716, in main
    0)
  File "./rhn-clone-errata-0.9.0.py", line 445, in searchNVREA
    return

</pre>
        </blockquote>
        <pre wrap="">self.server.packages.findByNvrea(self.rhnSession,name,version,release,arch
label)
</pre>
        <blockquote type="cite">
          <pre wrap="">  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in
</pre>
        </blockquote>
        <pre wrap="">_parse_response
</pre>
        <blockquote type="cite">
          <pre wrap="">    return u.close()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: Could not
find method: findByNvrea in class:
com.redhat.rhn.frontend.xmlrpc.packages.PackagesHandler with params:
[java.lang.String, java.lang.String, java.lang.String,
java.lang.String, java.lang.String]'>
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
This last part has me initially stumped at first look.  Does this happen every time?

Thanks,

Andy

_______________________________________________
Spacewalk-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a>
</pre>
    </blockquote>
  </body>
</html>