I've seen this error a couple of weeks back. After adding a bunch of
debugging code in cobbler I found that Spacewalk is passing tokens with a
newline character at the end. The spacewalk java was a bit to complex for me
so I just hacked in a fix to the cobbler code rather than trying to identify
the source.
Finding the fault in the spacewalk code where the newline is added or the
spot in the cobbler code where the newline is passed to spcewalk and
submitting the appropriate bugzilla report is left as an exercise for the
reader.

Hope this helps =D

/usr/lib/python2.4/site-packages/cobbler/remote.py

--- remote.py.old       2009-05-01 09:30:00.000000000 +1000
+++ remote.py   2009-04-08 11:04:17.000000000 +1000
@@ -941,20 +941,23 @@
     def __validate_token(self,token):
         """
         Checks to see if an API method can be called when
         the given token is passed in.  Updates the timestamp
         of the token automatically to prevent the need to
         repeatedly call login().  Any method that needs
         access control should call this before doing anything
         else.
         """

+        #clear newline passed by spacewalk =(
+        str.strip(token)
+
         self.__invalidate_expired_tokens()

         #if not self.auth_enabled:
         #    user = self.get_user_from_token(token)
         #    # old stuff, preserving for future usage
         #    # if user == "<system>":
         #    #    self.token_cache[token] = (time.time(), user) # update to
prevent timeout
         #    #    return True

         if self.token_cache.has_key(token):

==============================================================





On Fri, May 1, 2009 at 2:06 AM, <[email protected]> wrote:

> John,
>
>   One thing I was looking for, but didn't see: have you seen any errors
> about trying to talk to <whatsit>_API_RW? I had that problem, even though it
> was supposedly fixed. I applied the rewrite rule, and everything was
> wonderful with CentOS 5.2 and Spacewalk 0.5
>
>     mark, about to be offline in a couple hours....
>
> _______________________________________________
> Spacewalk-list mailing list
> [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