Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-07-28 Thread Cliff Perry
Tom Brown wrote: I tried this script, and also converted it to Python just for fun. Using both versions, I get the following error message: xmlrpclib.Fault: have permissions to perform this action.'> The message in the server log is similar: redstone.xmlrpc.XmlRpcFault: You do not have pe

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-07-28 Thread Tom Brown
>> proxy being spacewalk proxy - its odd as my perl script works on my >> test system via a proxy but not in my production setup when using a >> proxy, directly to the server is fine. >> >> On the test system that works i see this on the proxy logs >> >> 192.168.122.3 - - [27/Jul/2010:21:13:23

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-07-27 Thread Tom Brown
On 27 July 2010 22:35, Tom Brown wrote: >> When you mean going through a proxy do you mean a web proxy (i.e. squid). I >> had >> trouble building a script using perl and the Spacewalk API to go through a >> web >> proxy to reach the Spacewalk Server amd the RHN Network. > > proxy being spacewalk

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-07-27 Thread Tom Brown
> When you mean going through a proxy do you mean a web proxy (i.e. squid). I > had > trouble building a script using perl and the Spacewalk API to go through a web > proxy to reach the Spacewalk Server amd the RHN Network. proxy being spacewalk proxy - its odd as my perl script works on my test

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-07-27 Thread Eric
- Original Message From: Tom Brown To: spacewalk-list@redhat.com Sent: Tue, July 27, 2010 2:32:09 PM Subject: Re: [Spacewalk-list] Duplicates and Reactivation (solved) > I tried this script, and also converted it to Python just for fun. Using > both >versions, I get the

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-07-27 Thread Tom Brown
I tried this script, and also converted it to Python just for fun. Using both versions, I get the following error message: xmlrpclib.Fault: have permissions to perform this action.'> The message in the server log is similar: redstone.xmlrpc.XmlRpcFault: You do not have permissions to perfo

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-05-20 Thread Sascha Bendix
Hello, > xmlrpclib.Fault: have permissions to perform this action.'> the user my installation is using got no roles but is associated with a system group which consists of all systems that are registered on the spacewalk server. How are the rights on your installation set? Which spacewalk versi

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-05-19 Thread Edward Simmonds
I tried this script, and also converted it to Python just for fun. Using both versions, I get the following error message: xmlrpclib.Fault: The message in the server log is similar: redstone.xmlrpc.XmlRpcFault: You do not have permissions to perform this action. at com.redhat.rhn.fr

Re: [Spacewalk-list] Duplicates and Reactivation (solved)

2010-05-12 Thread Sascha Bendix
Hi, inspired by the solution which was posted by Tom I took a closer look at the xmlrpc interface. To make long story short: The following cgi script returns a reactivation key for the machine you are coming from. When registring with this key the problem of duplicates is avoided. #!/usr/bin/pe

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-11 Thread Jonas Bygdén
Please, share if it's ok with you. If nothing else, it's good to see different ways to solve problems like this. /Jonas On 11/05/10 13:53, Colin Coe wrote: I have a python version of the script if anyone is interested. It's newer and has not had as much testing but there's no warranty on my

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-11 Thread Colin Coe
t; De : spacewalk-list-boun...@redhat.com > [mailto:spacewalk-list-boun...@redhat.com] De la part de Colin Coe > Envoyé : mardi 11 mai 2010 09:10 > À : spacewalk-list@redhat.com > Objet : Re: [Spacewalk-list] Duplicates and Reactivation > > Oh, yeah, the script. > > Here'

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-11 Thread Lezier Cyril
Thanks a lot for this beautiful script Colin. -Message d'origine- De : spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] De la part de Colin Coe Envoyé : mardi 11 mai 2010 09:10 À : spacewalk-list@redhat.com Objet : Re: [Spacewalk-list] Duplicate

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-11 Thread Colin Coe
Oh, yeah, the script. Here's the whole script. Use what you want, ignore the rest. On Mon, May 10, 2010 at 11:44 PM, Tom Brown wrote: > >> I call custom API scripts in the %post script to deal with this. >> >> > > in a 'am i registered, if so delete me' then 'register system' kind of way? > >

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-11 Thread Colin Coe
No. Client: Hi, Mr Spacewalk/Satellite Server! SatServer: Hi, you're new here, have a unique ID! Client: Cool, thanks. Say, does anyone else have my name? SatServer: Why yes, two other clients have your name. Client: Yeah, well, they were me in a past life. Delete them please. SatServer: Consid

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-10 Thread Tom Brown
I call custom API scripts in the %post script to deal with this. in a 'am i registered, if so delete me' then 'register system' kind of way? would you mind sharing that snippet? ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-10 Thread Colin Coe
I call custom API scripts in the %post script to deal with this. On Mon, May 10, 2010 at 9:46 PM, Tom Brown wrote: > >> >> I want to reduce the manual work to do when reinstalling a system and >> therefore avoid duplicates in my spacewalk installation. >> >> The only way to do that is to generate

Re: [Spacewalk-list] Duplicates and Reactivation

2010-05-10 Thread Tom Brown
I want to reduce the manual work to do when reinstalling a system and therefore avoid duplicates in my spacewalk installation. The only way to do that is to generate a reactivation key for each system. As far as I found out this can only be done by using the web interface manually. Is there a

[Spacewalk-list] Duplicates and Reactivation

2010-05-10 Thread Sascha Bendix
Hi, I want to reduce the manual work to do when reinstalling a system and therefore avoid duplicates in my spacewalk installation. The only way to do that is to generate a reactivation key for each system. As far as I found out this can only be done by using the web interface manually. Is there