Walid,

The errata creation as I’m using it here via “errata.create” doesn’t publish in 
the same step.  So, the errata creation is happening regardless of the 
destination channel’s existence.  It seems to me that you are trying to create 
errata for a channel named:

rhel-x86_64-server-5

But that this channel doesn’t actually exist on your system with that label.  
Can you confirm or deny that, please?

Thanks,

Andy

From: [email protected] 
[mailto:[email protected]] On Behalf Of Walid
Sent: Thursday, August 11, 2011 3:06 PM
To: [email protected]
Subject: Re: [Spacewalk-list] rhn-clone-errata.py and proxy authenticaition


I used the mapping found in version 0.6 as a guide as follows in my config file:

[root@tlca064 rhn]# cat /etc/rhn-clone.cfg
[Spacewalk]
spw_server=localhost
spw_user=admin
spw_pass=spwlkpassword
publish=1
[RHN]
rhn_server=xmlrpc.rhn.redhat.com<http://xmlrpc.rhn.redhat.com>
rhn_user=rhnuser
rhn_pass=rhnpass
[ChanMap]
rhel-x86_64-server-6=rhel-x86_64-server-6
rhel-x86_64-server-fastrack-6=rhel-x86_64-server-6-fasttrack
rhn-tools-rhel-x86_64-server-6=rhel-x86_64-server-6-rhn
rhel-x86_64-server-optional-6=rhel-x86_64-server-6-optional
rhel-x86_64-server-supplementary-6=rhel-x86_64-server-6-supplementary
rhel-i386-server-6=rhel-i386-server-6
rhel-i386-server-fastrack-6=rhel-i386-server-6-fasttrack
rhn-tools-rhel-i386-server-6=rhel-i386-server-6-rhn
rhel-i386-server-optional-6=rhel-i386-server-6-optional
rhel-i386-server-supplementary-6=rhel-i386-server-6-supplementary
rhel-x86_64-server-5=rhel-x86_64-server-5
rhn-tools-rhel-x86_64-server-5=rhel-x86_64-server-rhntools-5
rhel-x86_64-server-productivity-5=rhel-x86_64-server-productivity-5
rhel-x86_64-server-supplementary-5=rhel-x86_64-server-supplementary-5
rhel-x86_64-server-vt-5=rhel-x86_64-server-vt-5
rhel-i386-server-5=rhel-i386-server-5
rhn-tools-rhel-i386-server-5=rhel-i386-server-rhntools-5
rhel-i386-server-productivity-5=rhel-i386-server-productivity-5
rhel-i386-server-supplementary-5=rhel-i386-server-supplementary-5
rhel-i386-server-vt-5=rhel-i386-server-vt-5

[ChanSuffixMap]
rhel-x86_64-server-6=R6-64
rhel-x86_64-server-fastrack-6=R6-64-F
rhn-tools-rhel-x86_64-server-6=R6-64-T
rhel-x86_64-server-optional-6=R6-64-O
rhel-x86_64-server-supplementary-6=R6-64-S
rhel-i386-server-6=R6-32
rhel-i386-server-fastrack-6=R6-32-F
rhn-tools-rhel-i386-server-6=R6-32-T
rhel-i386-server-optional-6=R6-32-O
rhel-i386-server-supplementary-6=R6-32-S
rhel-x86_64-server-5=R5-64
rhn-tools-rhel-x86_64-server-5=R5-64-T
rhel-x86_64-server-productivity-5=R5-64-P
rhel-x86_64-server-supplementary-5=R5-64-S
rhel-x86_64-server-vt-5=R5-64-V
rhel-i386-server-5=R5-32
rhn-tools-rhel-i386-server-5=R5-32-T
rhel-i386-server-productivity-5=R5-32-P
rhel-i386-server-supplementary-5=R5-32-S
rhel-i386-server-vt-5=R5-32-V
---------------------------------------- end of config file ----


the error i have now is

Hmmm... Package Missing: libhugetlbfs
Hmmm... Package Missing: libhugetlbfs-devel
Hmmm... Package Missing: libhugetlbfs
Hmmm... Package Missing: libhugetlbfs-devel
In here
In here
In here
        5/21/08 - libhugetlbfs bug fix and enhancement update
        Errata Created: 1580
options.publish True
Fault Code: 1201 - redstone.xmlrpc.XmlRpcFault: Invalid channel label
Error Creating Errata!
Traceback (most recent call last):
  File "/repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py>", 
line 715, in ?
    main()
  File "/repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py>", 
line 697, in main
    spwPublish = mySPW.errataPublish (spwErrataName, 
[chanMap[options.src_channel]], 0)
  File "/repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py>", 
line 447, in errataPublish
    errata = self.server.errata.publish(self.rhnSession,name,channels)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1201: 'redstone.xmlrpc.XmlRpcFault: Invalid channel 
label'>

if i try a begin date 1/1/2009 i do not get the error, however the publish 
command seems not take affect, i have put a print statement in the code just 
before publish and it did not get executed, here is the command i used last.

 /repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py> -f 
/etc/rhn-clone.cfg  --src-channel='rhel-x86_64-server-5' -x 
"proxyuser:[email protected]:8090<http://proxyuser:[email protected]:8090>"
 --no-spw-proxy --publish -b 20090101 -v

side questions: what tool is best to debug a python code line by line like C 
debuggers, where you can set a break for a specific line to examine variables 
before it executes?

much apperciated for your replies

TIA

Walid
On 11 August 2011 18:42, Speagle, Andy 
<[email protected]<mailto:[email protected]>> wrote:
Hi Walid,

This bit of output leads me to believe that you don’t have the channel mappings 
setup quite right.  Looks through the script for how to setup channel maps and 
suffixes.

xmlrpclib.Fault: <Fault 1201: 'redstone.xmlrpc.XmlRpcFault: Invalid channel 
label'>

Andy

From: 
[email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Walid
Sent: Thursday, August 11, 2011 10:25 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [Spacewalk-list] rhn-clone-errata.py and proxy authenticaition

Dear Andy,

I was using 0.6 not 0.4 on spacewalk 1.4. now it works, however it never 
completes successfully, i tried not to publish first and also this does not 
finish without any errors, last try to publish i got the following errors

 /repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py> -f 
/etc/rhn-clone.cfg  --src-channel='rhel-x86_64-server-5' -x 
"user:[email protected]:8090<http://user:[email protected]:8090>"
 --no-spw-proxy -i



Hmmm... Package Missing: libX11
Hmmm... Package Missing: libX11-devel
Hmmm... Package Missing: libX11
Hmmm... Package Missing: libX11-devel
In here
In here
In here
        5/21/08 - libX11 bug fix update
        Errata Created: 1578
Error Creating Errata!
Traceback (most recent call last):
  File "/repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py>", 
line 715, in ?
    main()
  File "/repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py>", 
line 697, in main
    spwPublish = mySPW.errataPublish (spwErrataName, 
[chanMap[options.src_channel]], 0)
  File "/repo/rhn-clone-errata-0.8.4.py<http://rhn-clone-errata-0.8.4.py>", 
line 447, in errataPublish
    errata = self.server.errata.publish(self.rhnSession,name,channels)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1201: 'redstone.xmlrpc.XmlRpcFault: Invalid channel 
label'>


kind regards

Walid


On 10 August 2011 20:22, Speagle, Andy 
<[email protected]<mailto:[email protected]>> wrote:
> I am using 0.4 version of the script "/repo/rhn-clone-errata.py" and still 
> not lucky yet in getting any
> erratas.
Hi Walid,

Version 0.4 is a bit old.  Proxy support code was added in v0.5 ... I have 
attached v0.8.4 which includes support for multiple proxy methods.  I haven't 
had a lot of opportunity to have it tested in the wild, so please let me know 
your mileage and I'll clean things up as necessary.  Also, lots of things have 
changed since 0.4, so be sure to read the internal help within the script to 
give you a clue how things work.

Good luck.

Andy Speagle
System & Storage Administrator
UCATS - Wichita State University

P: 316.978.3869<tel:316.978.3869>
C: 316.617.2431<tel:316.617.2431>




_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/spacewalk-list


_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to