On 08/11/2009 09:25 AM, Andy Speagle wrote:
On Mon, 2009-08-10 at 19:39 -0500, Justin Sherrill wrote:
Can you try running the registration command that isn't working
manually
on a system?

We might get an error message that tells us why it's not working.

-Justin

Ah, yes, I have done this before... they all produce the same error.
Here's what she looks like.

# rhnreg_ks --serverUrl=https://<myserver>/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--activationkey=1-037880d329934283fd3264f97aa33317,1-bc356b33a64a3b6c422a35a9bc019a7d

Error Message:
     Could not find token '1-bc356b33a64a3b6c422a35a9bc019a7d'
Error Class Code: 60
Error Class Info:
      The activation token specified could not be found on the server.
      Please retry with a valid key.

Not terribly sexy, I'm sure... Also, as I said before... that "unknown"
key has changed... it looks to be being generated for each install... it
was something different the last time that I went through an install.

An excerpt from an earlier posting of mine:

redhat mgmt key      :
1-28ef2e19220231062d6ab036e00ddf38,1-037880d329934283fd3264f97aa33317

And looking at the output of "cobbler profile report" ... this hasn't
changed.  So... the "unknown" key reported by cobbler is different than
what was fed to my system for the last install...

Thoughts?

Andy
------------------------------------------------------------------------

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


FYI, here's /var/lib/cobbler/snippets/redhat_register in Cobbler 2.0:

# begin Red Hat management server registration
#if $redhat_management_type != "off" and $redhat_management_key != ""
mkdir -p /usr/share/rhn/
   #if $redhat_management_type == "site"
      #set $mycert_file = "RHN-ORG-TRUSTED-SSL-CERT"
      #set $mycert = "/usr/share/rhn/" + $mycert_file
wget http://$redhat_management_server/pub/RHN-ORG-TRUSTED-SSL-CERT -O $mycert
perl -npe 's/RHNS-CA-CERT/$mycert_file/g' -i /etc/sysconfig/rhn/*
   #end if
   #if $redhat_management_type == "hosted"
      #set $mycert = "/usr/share/rhn/RHNS-CA-CERT"
   #end if
   #set $endpoint = "https://%s/XMLRPC"; % $redhat_management_server
rhnreg_ks --serverUrl=$endpoint --sslCACert=$mycert --activationkey=$redhat_management_key
#else
# not configured to register to any Red Hat management server (ok)
#end if
# end Red Hat management server registration


There's no for loop, so this doesn't support multiple keys in there. If you do intend to put that there with a new snippet, a couple of things.

A: the field should be stored as a string, as that is what cobbler thinks the key is, so just split the string on " " B: I'd like a patch to the snippet so upstream can match what you're shipping with Spacewalk.

If there's something else going on, let me know.

It could be the Spacewalk code is just trying to insert a comma seperated list in there, as from the report, that appears to be what it is doing... that won't take as in stock Cobbler 1.6.X.

--Michael




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

Reply via email to