Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread Trevor T Kates
Josh:

Thank you. Those two patches appear to have fixed the problem.


Trevor T. Kates

> -Original Message-
> From: Joshua Roys [mailto:joshua.r...@gtri.gatech.edu]
> Sent: Wednesday, March 03, 2010 10:36 AM
> To: spacewalk-list@redhat.com
> Cc: Trevor T Kates (Services - 6); j.h.hodr...@leeds.ac.uk;
> chad.pritch...@murraystate.edu
> Subject: Re: [Spacewalk-list] Configuration File Import Problem
> 
> On 03/02/2010 08:28 AM, Trevor T Kates wrote:
> > # ls -Z /etc/X11/xorg.conf
> > -rw-r--r-- root root
>   /etc/X11/xorg.conf
> >
> > On 03/01/2010 07:59 PM, Trevor T Kates wrote:
> >> On the client system, rhn_check reported the following:
> >>
> >> D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf']) XML-RPC
> >> error while talking to http://spacewalk.domain.com/CONFIG-
> MANAGEMENT:
> >> cannot marshal None unless allow_none is enabled Traceback (most
> recent call last):
> >> File "/usr/share/rhn/config_client/rpc_cli_repository.py", line
> 120, in put_files
> >>   self.system_id, action_id, params)
> >> File "/usr/share/rhn/config_client/rpc_cli_repository.py", line
> 51, in rpc_call
> >>   (self, method_name) + params)
> >> File "/usr/share/rhn/config_common/repository.py", line 365, in
> rpc_call
> >>   sys.exit(2)
> >> SystemExit: 2
> >> D: Sending back response ((6,), 'Fatal error in Python code
> >> occurred', {})
> >>
> 
> Hello,
> 
> Can one of you please try the attached patch?
> 
> # cd /usr/share/rhn/config_common/
> # patch -p5 < try-to-fix-cfg-mgmt.diff
> 
> Josh
CONFIDENTIALITY NOTICE:  This electronic message contains
information which may be legally confidential and or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect.  The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful.  If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it.  Thank you.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread Joshua Roys

On 03/04/2010 08:55 AM, Marcus Moeller wrote:

Dear Josh,

Shouldn't it be:

+select cc.id, cv.checksum_type, cv.checksum, file_size, contents, 
is_binary

+  from rhnConfigContent cc, rhnChecksumView cv

+ where cv.checksum = :checksum

+   and cv.checksum_type = :checksum_type

 and file_size = :file_size

-   and checksum_id = c.id

+   and checksum_id = cc.id
^->  note the difference in the last line.

Best Regards
Marcus


I'm not 100% certain, since I am not the original author of this code, 
but it looks like it's trying to find a file by a checksum here... so I 
had it compare the (implicit cc.)checksum_id to the (cv.)id.


This is rhnConfigContent (cc.):
http://git.fedorahosted.org/git/spacewalk.git/?p=spacewalk.git;a=blob;f=schema/spacewalk/common/tables/rhnConfigContent.sql;h=57ed53e0d73fac256aca53ba343f1c5fd40f9d8a;hb=HEAD

This is rhnChecksumView (cv.):
http://git.fedorahosted.org/git/spacewalk.git/?p=spacewalk.git;a=blob;f=schema/spacewalk/common/views/rhnChecksumView.sql;h=4c3dfe12aca430613aec2b63090d2062affb4f5a;hb=HEAD

Thanks,

Josh



smime.p7s
Description: S/MIME Cryptographic Signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread Joshua Roys

On 03/04/2010 08:43 AM, Trevor T Kates wrote:

Josh:

I applied the patch you provided; however, I am now getting a 500 Internal 
Server Error on CONFIG-MANAGEMENT. This is the relevant output from rhn_check 
-v:

D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
XML-RPC call error:
Traceback (most recent call last):
   File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
put_files
 self.system_id, action_id, params)
   File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
rpc_call
 (self, method_name) + params)
   File "/usr/share/rhn/config_common/repository.py", line 360, in rpc_call
 sys.exit(1)
SystemExit: 1
D: Sending back response ((6,), 'Fatal error in Python code occurred', {})

Thank you for the help thus far.



Hello,

I just sent another patch a bit ago to fix what might be your new 
problem...  look on the server in /var/log/rhn/* (and in the mailbox 
that tracebacks are sent to- traceback_mail in /etc/rhn/rhn.conf) for 
something like this:


SQL Error generated: ('ORA-00918: column ambiguously defined\n', 918,
'select id, c.checksum_type, c.checksum, file_size, contents,
is_binary from rhnConfigContent, rhnChecksumView c where c.checksum =
:checksum and c.checksum_type = :checksum_type and file_size =
:file_size and checksum_id = c.id')

If you see something else, please reply with the error you find. 
Otherwise, see if the attached patch helps.


server# cd /usr/share/rhn/server/
server# patch -p3 < try-to-fix-an-ora-00918.diff

Thanks,

Josh
diff --git a/backend/server/configFilesHandler.py 
b/backend/server/configFilesHandler.py
index fca9484..3882a70 100644
--- a/backend/server/configFilesHandler.py
+++ b/backend/server/configFilesHandler.py
@@ -222,12 +222,12 @@ class ConfigFilesHandler(rhnHandler):
 return result
 
 _query_content_lookup = rhnSQL.Statement("""
-select id, c.checksum_type, c.checksum, file_size, contents, is_binary
-  from rhnConfigContent, rhnChecksumView c
- where c.checksum = :checksum
-   and c.checksum_type = :checksum_type
+select cc.id, cv.checksum_type, cv.checksum, file_size, contents, 
is_binary
+  from rhnConfigContent cc, rhnChecksumView cv
+ where cv.checksum = :checksum
+   and cv.checksum_type = :checksum_type
and file_size = :file_size
-   and checksum_id = c.id
+   and checksum_id = cv.id
 """)
 
 _query_insert_content = rhnSQL.Statement("""



smime.p7s
Description: S/MIME Cryptographic Signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread Marcus Moeller

Dear Josh,

Shouldn't it be:

+select cc.id, cv.checksum_type, cv.checksum, file_size, contents, 
is_binary

+  from rhnConfigContent cc, rhnChecksumView cv

+ where cv.checksum = :checksum

+   and cv.checksum_type = :checksum_type

   and file_size = :file_size

-   and checksum_id = c.id

+   and checksum_id = cc.id
^-> note the difference in the last line.

Best Regards
Marcus

smime.p7s
Description: S/MIME Cryptographic Signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread Trevor T Kates
Josh:

I applied the patch you provided; however, I am now getting a 500 Internal 
Server Error on CONFIG-MANAGEMENT. This is the relevant output from rhn_check 
-v:

D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
XML-RPC call error: 
Traceback (most recent call last):
  File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
put_files
self.system_id, action_id, params)
  File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
rpc_call
(self, method_name) + params)
  File "/usr/share/rhn/config_common/repository.py", line 360, in rpc_call
sys.exit(1)
SystemExit: 1
D: Sending back response ((6,), 'Fatal error in Python code occurred', {})

Thank you for the help thus far.


Trevor T. Kates

> -Original Message-
> From: Joshua Roys [mailto:joshua.r...@gtri.gatech.edu]
> Sent: Wednesday, March 03, 2010 10:36 AM
> To: spacewalk-list@redhat.com
> Cc: Trevor T Kates (Services - 6); j.h.hodr...@leeds.ac.uk;
> chad.pritch...@murraystate.edu
> Subject: Re: [Spacewalk-list] Configuration File Import Problem
> 
> On 03/02/2010 08:28 AM, Trevor T Kates wrote:
> > # ls -Z /etc/X11/xorg.conf
> > -rw-r--r-- root root
>   /etc/X11/xorg.conf
> >
> > On 03/01/2010 07:59 PM, Trevor T Kates wrote:
> >> On the client system, rhn_check reported the following:
> >>
> >> D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf']) XML-RPC
> >> error while talking to http://spacewalk.domain.com/CONFIG-
> MANAGEMENT:
> >> cannot marshal None unless allow_none is enabled Traceback (most
> recent call last):
> >> File "/usr/share/rhn/config_client/rpc_cli_repository.py", line
> 120, in put_files
> >>   self.system_id, action_id, params)
> >> File "/usr/share/rhn/config_client/rpc_cli_repository.py", line
> 51, in rpc_call
> >>   (self, method_name) + params)
> >> File "/usr/share/rhn/config_common/repository.py", line 365, in
> rpc_call
> >>   sys.exit(2)
> >> SystemExit: 2
> >> D: Sending back response ((6,), 'Fatal error in Python code
> >> occurred', {})
> >>
> 
> Hello,
> 
> Can one of you please try the attached patch?
> 
> # cd /usr/share/rhn/config_common/
> # patch -p5 < try-to-fix-cfg-mgmt.diff
> 
> Josh
CONFIDENTIALITY NOTICE:  This electronic message contains
information which may be legally confidential and or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect.  The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful.  If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it.  Thank you.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread Joshua Roys

On 03/04/2010 04:20 AM, Marcus Moeller wrote:

Hi.


I've tried the patch and it works for me. Thanks a lot !
I've created a bugzilla entry for this a while back: 
https://bugzilla.redhat.com/show_bug.cgi?id=54. Shall I update it ?


Still got an:

XML-RPC call error:

while trying

rhncfg-manager  upload-channel

Best Regards
Marcus

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Hello,

Your error is different.  Please try the attached patch?

server# cd /usr/share/rhn/server/
server# patch -p3 < try-to-fix-an-ora-00918.diff

Thanks,

Josh
diff --git a/backend/server/configFilesHandler.py 
b/backend/server/configFilesHandler.py
index fca9484..3882a70 100644
--- a/backend/server/configFilesHandler.py
+++ b/backend/server/configFilesHandler.py
@@ -222,12 +222,12 @@ class ConfigFilesHandler(rhnHandler):
 return result
 
 _query_content_lookup = rhnSQL.Statement("""
-select id, c.checksum_type, c.checksum, file_size, contents, is_binary
-  from rhnConfigContent, rhnChecksumView c
- where c.checksum = :checksum
-   and c.checksum_type = :checksum_type
+select cc.id, cv.checksum_type, cv.checksum, file_size, contents, 
is_binary
+  from rhnConfigContent cc, rhnChecksumView cv
+ where cv.checksum = :checksum
+   and cv.checksum_type = :checksum_type
and file_size = :file_size
-   and checksum_id = c.id
+   and checksum_id = cv.id
 """)
 
 _query_insert_content = rhnSQL.Statement("""



smime.p7s
Description: S/MIME Cryptographic Signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread Marcus Moeller
Hi.

> I've tried the patch and it works for me. Thanks a lot !
> I've created a bugzilla entry for this a while back: 
> https://bugzilla.redhat.com/show_bug.cgi?id=54. Shall I update it ?

Still got an:

XML-RPC call error: 

while trying

rhncfg-manager  upload-channel

Best Regards
Marcus

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-04 Thread VANHAEREN Ben EXT-IT
Hi,

I've tried the patch and it works for me. Thanks a lot !
I've created a bugzilla entry for this a while back: 
https://bugzilla.redhat.com/show_bug.cgi?id=54. Shall I update it ?

Best regards,

-Original Message-
From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of 
spacewalk-list-requ...@redhat.com
Sent: Wednesday 3 March 2010 18:00
To: spacewalk-list@redhat.com
Subject: Spacewalk-list Digest, Vol 22, Issue 8

Send Spacewalk-list mailing list submissions to
spacewalk-list@redhat.com

To subscribe or unsubscribe via the World Wide Web, visit
https://www.redhat.com/mailman/listinfo/spacewalk-list
or, via email, send a message with subject or body 'help' to
spacewalk-list-requ...@redhat.com

You can reach the person managing the list at
spacewalk-list-ow...@redhat.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Spacewalk-list digest..."


Today's Topics:

   1. Re: Configuration File Import Problem (Joshua Roys)
   2. Re: Cleaning  software channels (John Hodrien)


--

Message: 1
Date: Wed, 3 Mar 2010 10:35:59 -0500
From: Joshua Roys 
To: 
Cc: chad.pritch...@murraystate.edu, trevor.t.ka...@dom.com
Subject: Re: [Spacewalk-list] Configuration File Import Problem
Message-ID: <4b8e81df.7090...@gtri.gatech.edu>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

On 03/02/2010 08:28 AM, Trevor T Kates wrote:
> # ls -Z /etc/X11/xorg.conf
> -rw-r--r-- root root  
> /etc/X11/xorg.conf
>
> On 03/01/2010 07:59 PM, Trevor T Kates wrote:
>> On the client system, rhn_check reported the following:
>>
>> D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
>> XML-RPC error while talking to 
>> http://spacewalk.domain.com/CONFIG-MANAGEMENT: cannot marshal None unless 
>> allow_none is enabled
>> Traceback (most recent call last):
>> File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
>> put_files
>>   self.system_id, action_id, params)
>> File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
>> rpc_call
>>   (self, method_name) + params)
>> File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
>>   sys.exit(2)
>> SystemExit: 2
>> D: Sending back response ((6,), 'Fatal error in Python code occurred', {})
>>

Hello,

Can one of you please try the attached patch?

# cd /usr/share/rhn/config_common/
# patch -p5 < try-to-fix-cfg-mgmt.diff

Josh
-- next part --
An embedded and charset-unspecified text was scrubbed...
Name: try-to-fix-cfg-mgmt.diff
URL: 
<https://www.redhat.com/archives/spacewalk-list/attachments/20100303/d36ebc6a/attachment.pl>
-- next part --
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2719 bytes
Desc: S/MIME Cryptographic Signature
URL: 
<https://www.redhat.com/archives/spacewalk-list/attachments/20100303/d36ebc6a/attachment.bin>

--

Message: 2
Date: Wed, 3 Mar 2010 16:26:26 + (GMT)
From: John Hodrien 
To: "spacewalk-list@redhat.com" 
Subject: Re: [Spacewalk-list] Cleaning  software channels
Message-ID: 
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Wed, 3 Mar 2010, rob morrien wrote:

> hello,
>
>
> Yes its works in the satellite, but when you open a terminal box
> you still can find the packages on your system.
>
> at this moment it lloks clean/empthy for spacewalk but on the unix box you
> can still find the packages.
>
>
> regards rob

Spacewalk should have rebuilt the repo files.  It's not just yum cache?

Failing that, delete the /var/cache/rhn/repodata/ directory, do
a yum clean all, yum list on the client, and spacewalk will rebuild the
repodata.

jh



--

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

End of Spacewalk-list Digest, Vol 22, Issue 8
*



Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is 
confidential and may contain information which is protected by intellectual 
property rights.
This information is intended for the exclusive use of the recipient(s) named 
ab

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-03 Thread Joshua Roys

On 03/02/2010 08:28 AM, Trevor T Kates wrote:

# ls -Z /etc/X11/xorg.conf
-rw-r--r-- root root
/etc/X11/xorg.conf

On 03/01/2010 07:59 PM, Trevor T Kates wrote:

On the client system, rhn_check reported the following:

D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
XML-RPC error while talking to http://spacewalk.domain.com/CONFIG-MANAGEMENT: 
cannot marshal None unless allow_none is enabled
Traceback (most recent call last):
File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
put_files
  self.system_id, action_id, params)
File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
rpc_call
  (self, method_name) + params)
File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
  sys.exit(2)
SystemExit: 2
D: Sending back response ((6,), 'Fatal error in Python code occurred', {})



Hello,

Can one of you please try the attached patch?

# cd /usr/share/rhn/config_common/
# patch -p5 < try-to-fix-cfg-mgmt.diff

Josh
diff --git a/client/tools/rhncfg/config_common/repository.py 
b/client/tools/rhncfg/config_common/repository.py
index 78abc9e..bc71a7d 100644
--- a/client/tools/rhncfg/config_common/repository.py
+++ b/client/tools/rhncfg/config_common/repository.py
@@ -28,10 +28,10 @@ import utils
 from rhn_log import log_debug, die
 #from rhn_rpc import rpclib
 try:
-from selinux import getfilecon
+from selinux import lgetfilecon
 except:
 # on rhel4 we do not support selinux
-def getfilecon(path):
+def lgetfilecon(path):
 return [0, ''];
 
 
@@ -132,7 +132,9 @@ class Repository:
 ret['group'] = gr_name
 self._gid_cache[gid] = gr_name
 
-ret['selinux_ctx'] = getfilecon(path)[1]
+ret['selinux_ctx'] = lgetfilecon(path)[1]
+if ret['selinux_ctx'] == None:
+ret['selinux_ctx'] = ''
 
 return ret
 



smime.p7s
Description: S/MIME Cryptographic Signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-02 Thread Trevor T Kates
Just to clarify, I am receiving this error when using the Spacewalk 0.8 web 
interface for the server. Under Systems ->  -> Configuration -> 
Add Files -> Import Files -> typing /etc/X11/xorg.conf into the text field and 
scheduling the import, I receive the fatal Python error mentioned earlier. My 
client systems have SELinux disabled. I posted the requested command outputs in 
an earlier reply as well.

Thank you.


Trevor T. Kates

-Original Message-
From: Miroslav Suchý [mailto:msu...@redhat.com] 
Sent: Tuesday, March 02, 2010 3:46 AM
To: spacewalk-list@redhat.com
Cc: Trevor T Kates (Services - 6)
Subject: Re: [Spacewalk-list] Configuration File Import Problem

On 03/01/2010 07:59 PM, Trevor T Kates wrote:
> On the client system, rhn_check reported the following:
>
> D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
> XML-RPC error while talking to http://spacewalk.domain.com/CONFIG-MANAGEMENT: 
> cannot marshal None unless allow_none is enabled
> Traceback (most recent call last):
>File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
> put_files
>  self.system_id, action_id, params)
>File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
> rpc_call
>  (self, method_name) + params)
>File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
>  sys.exit(2)
> SystemExit: 2
> D: Sending back response ((6,), 'Fatal error in Python code occurred', {})
>

It is error in client, which try to send None value over XMLRPC, which 
is not allowed. Weird.
It seem to happend during upload of /etc/X11/xorg.conf
Can you please send output of:
  stat /etc/X11/xorg.conf
  ls -Z /etc/X11/xorg.conf
Thx


-- 
Miroslav Suchy
Red Hat Satellite Engineering
CONFIDENTIALITY NOTICE:  This electronic message contains
information which may be legally confidential and or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect.  The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful.  If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it.  Thank you.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-02 Thread Trevor T Kates
# stat /etc/X11/xorg.conf
  File: `/etc/X11/xorg.conf'
  Size: 2532Blocks: 8   IO Block: 4096  regular file
Device: fd00h/64768dInode: 10945691 Links: 1
Access: (0644/-rw-r--r--)  Uid: (0/   root)   Gid: ( 0/root)
Access: 2010-03-01 16:14:54.0 -0500
Modify: 2010-02-25 10:17:51.0 -0500
Change: 2010-02-25 10:17:51.0 -0500

# ls -Z /etc/X11/xorg.conf
-rw-r--r-- root root
/etc/X11/xorg.conf


Trevor T. Kates

-Original Message-
From: Miroslav Suchý [mailto:msu...@redhat.com] 
Sent: Tuesday, March 02, 2010 3:46 AM
To: spacewalk-list@redhat.com
Cc: Trevor T Kates (Services - 6)
Subject: Re: [Spacewalk-list] Configuration File Import Problem

On 03/01/2010 07:59 PM, Trevor T Kates wrote:
> On the client system, rhn_check reported the following:
>
> D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
> XML-RPC error while talking to http://spacewalk.domain.com/CONFIG-MANAGEMENT: 
> cannot marshal None unless allow_none is enabled
> Traceback (most recent call last):
>File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
> put_files
>  self.system_id, action_id, params)
>File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
> rpc_call
>  (self, method_name) + params)
>File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
>  sys.exit(2)
> SystemExit: 2
> D: Sending back response ((6,), 'Fatal error in Python code occurred', {})
>

It is error in client, which try to send None value over XMLRPC, which 
is not allowed. Weird.
It seem to happend during upload of /etc/X11/xorg.conf
Can you please send output of:
  stat /etc/X11/xorg.conf
  ls -Z /etc/X11/xorg.conf
Thx


-- 
Miroslav Suchy
Red Hat Satellite Engineering
CONFIDENTIALITY NOTICE:  This electronic message contains
information which may be legally confidential and or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect.  The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful.  If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it.  Thank you.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-02 Thread John Hodrien

On Tue, 2 Mar 2010, Miroslav Suchý wrote:


Selinux related? I've got selinux disabled on the clients, and I get this
error whenever I try to import.


I did not said that. Just that selinux is one of values we upload.
And what does mean import? Do you try to upload it from client to
server. Or download it from server to client?


Sorry, I was only wondering.  I'm reporting this under 0.7.

If I try to import some files from a client using the webui to the system
sandbox, then it fails like this on import.  So Add Files, Import Files.

If I pull files down from the server to a client with rhncfg-client then all
is well.

It's appears to be a property of the file, which was why I was wondering about
selinux:

I try to import:

/etc/X11/xorg.conf  fails
/etc/X11/xorg.conf.backup   succeeds
cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf.fake 
/etc/X11/xorg.conf.fake fails

rm /etc/X11/xorg.conf.fake
mv /etc/X11/xorg.conf.backup /etc/X11/xorg.conf.fake
/etc/X11/xorg.conf.fake succeeds

jh___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-02 Thread Miroslav Suchý

On 03/02/2010 10:25 AM, John Hodrien wrote:

On Tue, 2 Mar 2010, Miroslav Suchý wrote:


On 03/01/2010 07:59 PM, Trevor T Kates wrote:

On the client system, rhn_check reported the following:

D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
XML-RPC error while talking to
http://spacewalk.domain.com/CONFIG-MANAGEMENT: cannot marshal None
unless allow_none is enabled
Traceback (most recent call last):
File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120,
in put_files
self.system_id, action_id, params)
File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51,
in rpc_call
(self, method_name) + params)
File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
sys.exit(2)
SystemExit: 2
D: Sending back response ((6,), 'Fatal error in Python code
occurred', {})



It is error in client, which try to send None value over XMLRPC, which
is not allowed. Weird.
It seem to happend during upload of /etc/X11/xorg.conf
Can you please send output of:
stat /etc/X11/xorg.conf
ls -Z /etc/X11/xorg.conf


Selinux related? I've got selinux disabled on the clients, and I get this
error whenever I try to import.


I did not said that. Just that selinux is one of values we upload.
And what does mean import? Do you try to upload it from client to 
server. Or download it from server to client?



--
Miroslav Suchy
Red Hat Satellite Engineering

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-02 Thread John Hodrien

On Tue, 2 Mar 2010, Miroslav Suchý wrote:


On 03/01/2010 07:59 PM, Trevor T Kates wrote:

On the client system, rhn_check reported the following:

D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
XML-RPC error while talking to http://spacewalk.domain.com/CONFIG-MANAGEMENT: 
cannot marshal None unless allow_none is enabled
Traceback (most recent call last):
   File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
put_files
 self.system_id, action_id, params)
   File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
rpc_call
 (self, method_name) + params)
   File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
 sys.exit(2)
SystemExit: 2
D: Sending back response ((6,), 'Fatal error in Python code occurred', {})



It is error in client, which try to send None value over XMLRPC, which
is not allowed. Weird.
It seem to happend during upload of /etc/X11/xorg.conf
Can you please send output of:
 stat /etc/X11/xorg.conf
 ls -Z /etc/X11/xorg.conf


Selinux related?  I've got selinux disabled on the clients, and I get this
error whenever I try to import.

jh___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Configuration File Import Problem

2010-03-02 Thread Miroslav Suchý

On 03/01/2010 07:59 PM, Trevor T Kates wrote:

On the client system, rhn_check reported the following:

D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
XML-RPC error while talking to http://spacewalk.domain.com/CONFIG-MANAGEMENT: 
cannot marshal None unless allow_none is enabled
Traceback (most recent call last):
   File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
put_files
 self.system_id, action_id, params)
   File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
rpc_call
 (self, method_name) + params)
   File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
 sys.exit(2)
SystemExit: 2
D: Sending back response ((6,), 'Fatal error in Python code occurred', {})



It is error in client, which try to send None value over XMLRPC, which 
is not allowed. Weird.

It seem to happend during upload of /etc/X11/xorg.conf
Can you please send output of:
 stat /etc/X11/xorg.conf
 ls -Z /etc/X11/xorg.conf
Thx


--
Miroslav Suchy
Red Hat Satellite Engineering

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-01 Thread Trevor T Kates
On the client system, rhn_check reported the following:

D: do_call configfiles.upload (68, ['/etc/X11/xorg.conf'])
XML-RPC error while talking to http://spacewalk.domain.com/CONFIG-MANAGEMENT: 
cannot marshal None unless allow_none is enabled
Traceback (most recent call last):
  File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 120, in 
put_files
self.system_id, action_id, params)
  File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 51, in 
rpc_call
(self, method_name) + params)
  File "/usr/share/rhn/config_common/repository.py", line 365, in rpc_call
sys.exit(2)
SystemExit: 2
D: Sending back response ((6,), 'Fatal error in Python code occurred', {})

The rhn_server_xmlrpc.log file recorded the following:

xmlrpc/queue.get(110003, 2, 'checkins enabled')
xmlrpc/up2date.login(110003,)
xmlrpc/registration.welcome_message('lang: None',)
xmlrpc/queue.submit(110003, 68, [6])
xmlrpc/queue.get(110003, 2, 'checkins enabled')
xmlrpc/up2date.listChannels(110003,)

Thanks!


Trevor T. Kates

-Original Message
Date: Mon, 1 Mar 2010 11:22:25 -0500
From: Joshua Roys 
To: 
Subject: Re: [Spacewalk-list] Configuration File Import Problem
Message-ID: <4b8be9c1.60...@gtri.gatech.edu>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

On 03/01/2010 08:58 AM, Trevor T Kates wrote:
> I am running Spacewalk ver 0.8, and I am currently trying to import a
> configuration file (/etc/X11/xorg.conf) from a managed system that is
> registered with Spacewalk; however, the task fails with the following
> message:
>
> Client execution returned ?Fatal error in Python code occurred [[6]]?
> (code -1)
>
> Both the client and the server appear to have the appropriate packages
> and configuration. Any assistance here will be appreciated.
>

Hello,

Please reply with the relevant logs/output from:

spacewalk-server# tail -fn0 /var/log/rhn/* /var/log/httpd/* 
/var/log/tomcat6/catalina.out

(temporarily disable osad/jabberd if you're using it)
(schedule import)

spacewalk-client# rhn_check -v

Thanks,

Josh
CONFIDENTIALITY NOTICE:  This electronic message contains
information which may be legally confidential and or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect.  The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful.  If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it.  Thank you.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Configuration File Import Problem

2010-03-01 Thread Joshua Roys

On 03/01/2010 08:58 AM, Trevor T Kates wrote:

I am running Spacewalk ver 0.8, and I am currently trying to import a
configuration file (/etc/X11/xorg.conf) from a managed system that is
registered with Spacewalk; however, the task fails with the following
message:

Client execution returned “Fatal error in Python code occurred [[6]]”
(code -1)

Both the client and the server appear to have the appropriate packages
and configuration. Any assistance here will be appreciated.



Hello,

Please reply with the relevant logs/output from:

spacewalk-server# tail -fn0 /var/log/rhn/* /var/log/httpd/* 
/var/log/tomcat6/catalina.out


(temporarily disable osad/jabberd if you're using it)
(schedule import)

spacewalk-client# rhn_check -v

Thanks,

Josh



smime.p7s
Description: S/MIME Cryptographic Signature
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list