[Spacewalk-list] clone-errata ChanMap advice

Speagle, Andy andy.speagle at wichita.edu
Thu Jan 12 14:57:21 UTC 2012


Hi John,

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

> 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.

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.  
 
> 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?

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.
 
> Here are my channel labels and repos they point to:
> centos5-x86_64 -- http://mirror.centos.org/centos-5/5/os/x86_64/
> centos5-x86_64-extras -- http://mirror.centos.org/centos/5/extras/x86_64/
> centos5-x86_64-updates --
> http://mirror.centos.org/centos-5/5/updates/x86_64/
> 
> centos6-x86_64 -- http://mirror.centos.org/centos-6/6/os/x86_64/
> centos6-x86_64-extras -- http://mirror.centos.org/centos/6/extras/x86_64/
> centos6-x86_64-updates --
> http://mirror.centos.org/centos-6/6/updates/x86_64/

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.

> I almost forgot, I'm getting this error when clone-errata exits:
> > 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
> >
> self.server.packages.findByNvrea(self.rhnSession,name,version,release,arch
> label)
> >   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
> _parse_response
> >     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]'>

This last part has me initially stumped at first look.  Does this happen every time?

Thanks,

Andy




More information about the Spacewalk-list mailing list