Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-18 Thread Stephen Herr
On 06/14/2012 03:37 PM, Jan Hutař wrote: On Wed, 13 Jun 2012 08:49:46 -0400 Musayev, Ilya imusa...@webmd.net wrote: That is correct. You can also install via RPM. If I'm not mistaken, --noplugings will also cut off rhn-plugin and therefore there will be no rhn repos. Ideally, it would be

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-14 Thread Miroslav Suchý
On 06/13/2012 10:45 PM, Musayev, Ilya wrote: Am I correct in my assumptions and would the proposed changes be acceptable? You are very correct and yes that would be acceptable. -- Miroslav Suchy Red Hat Satellite Engineering ___ Spacewalk-devel

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-14 Thread Jan Hutař
On Wed, 13 Jun 2012 08:49:46 -0400 Musayev, Ilya imusa...@webmd.net wrote: That is correct. You can also install via RPM. If I'm not mistaken, --noplugings will also cut off rhn-plugin and therefore there will be no rhn repos. Ideally, it would be nice to integrate RHN LOCK with

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-13 Thread Jan Hutař
On Thu, 7 Jun 2012 18:32:06 -0400 Musayev, Ilya imusa...@webmd.net wrote: While RHN has a limitation on locking the host from the Web UI, user is still able to run yum operations from the host (granted user has proper access). I wrote a simple YUM plugin to check if the host is locked in

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-13 Thread Musayev, Ilya
That is correct. You can also install via RPM. If I'm not mistaken, --noplugings will also cut off rhn-plugin and therefore there will be no rhn repos. Ideally, it would be nice to integrate RHN LOCK with rhn-yum-plugin. That way if system locked - it is truly locked from both aspects (GUI

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-13 Thread Musayev, Ilya
-boun...@redhat.com] On Behalf Of Musayev, Ilya Sent: Tuesday, June 12, 2012 2:16 PM To: spacewalk-devel@redhat.com Subject: Re: [Spacewalk-devel] YUM RHN Lock Plugin Mirek, I was looking at up2date client libraries, I'm bit confused as to how it functions with RHN/Spacewalk. Specifically, I'm

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-12 Thread Musayev, Ilya
Of Musayev, Ilya Sent: Friday, June 08, 2012 10:50 AM To: spacewalk-devel@redhat.com Cc: spacewalk-devel@redhat.com Subject: Re: [Spacewalk-devel] YUM RHN Lock Plugin Thanks Mirek I will try to polish it, your response is very helpful. Regards Ilya On Jun 8, 2012, at 4:57 AM, Miroslav Suchý msu

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-08 Thread Miroslav Suchý
On 06/08/2012 12:32 AM, Musayev, Ilya wrote: The proof of concept code is below - if you could make any suggestions and improvements - it would be appreciated. Instead of getSystemID(xml) you can use: from rhn import rpclib system_id = re.sub('^ID-', '',

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-08 Thread Cliff Perry
On 06/08/2012 04:55 AM, Miroslav Suchý wrote: On 06/08/2012 12:32 AM, Musayev, Ilya wrote: The proof of concept code is below - if you could make any suggestions and improvements - it would be appreciated. Instead of getSystemID(xml) you can use: from rhn import rpclib system_id =

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-08 Thread Musayev, Ilya
Thanks Mirek I will try to polish it, your response is very helpful. Regards Ilya On Jun 8, 2012, at 4:57 AM, Miroslav Suchý msu...@redhat.com wrote: On 06/08/2012 12:32 AM, Musayev, Ilya wrote: The proof of concept code is below - if you could make any suggestions and improvements - it

[Spacewalk-devel] YUM RHN Lock Plugin

2012-06-07 Thread Musayev, Ilya
While RHN has a limitation on locking the host from the Web UI, user is still able to run yum operations from the host (granted user has proper access). I wrote a simple YUM plugin to check if the host is locked in RHN and if it is, prevent yum usage on the host. Needless to say, this is proof

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-07 Thread Musayev, Ilya
Would anyone know if up2dateAuth module could be used to replace username/password auth to query RHN/SPWLK server via RHN API? On Jun 7, 2012, at 6:33 PM, Musayev, Ilya imusa...@webmd.net wrote: While RHN has a limitation on locking the host from the Web UI, user is still able to run yum