<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 08/11/2009 09:25 AM, Andy Speagle wrote:
<blockquote cite="mid:1249997116.8731.267.camel@stilgar.wichita.edu"
 type="cite">
  <pre wrap="">On Mon, 2009-08-10 at 19:39 -0500, Justin Sherrill wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Ah, yes, I have done this before... they all produce the same error.
Here's what she looks like.

# rhnreg_ks --serverUrl=<a class="moz-txt-link-freetext" href="https://">https://</a><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:

  </pre>
  <blockquote type="cite">
    <pre wrap="">redhat mgmt key      :
1-28ef2e19220231062d6ab036e00ddf38,1-037880d329934283fd3264f97aa33317
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Spacewalk-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></pre>
</blockquote>
<br>
<br>
FYI, here's /var/lib/cobbler/snippets/redhat_register in Cobbler 2.0:<br>
<br>
# begin Red Hat management server registration<br>
#if $redhat_management_type != "off" and $redhat_management_key != ""<br>
mkdir -p /usr/share/rhn/<br>
   #if $redhat_management_type == "site"<br>
      #set $mycert_file = "RHN-ORG-TRUSTED-SSL-CERT"<br>
      #set $mycert = "/usr/share/rhn/" + $mycert_file<br>
wget <a class="moz-txt-link-freetext" href="http://$redhat_management_server/pub/RHN-ORG-TRUSTED-SSL-CERT">http://$redhat_management_server/pub/RHN-ORG-TRUSTED-SSL-CERT</a> -O
$mycert   <br>
perl -npe 's/RHNS-CA-CERT/$mycert_file/g' -i /etc/sysconfig/rhn/*  <br>
   #end if<br>
   #if $redhat_management_type == "hosted"<br>
      #set $mycert = "/usr/share/rhn/RHNS-CA-CERT"<br>
   #end if <br>
   #set $endpoint = <a class="moz-txt-link-rfc2396E" href="https://%s/XMLRPC">"https://%s/XMLRPC"</a> % $redhat_management_server<br>
rhnreg_ks --serverUrl=$endpoint --sslCACert=$mycert
--activationkey=$redhat_management_key<br>
#else<br>
# not configured to register to any Red Hat management server (ok)<br>
#end if<br>
# end Red Hat management server registration<br>
<br>
<br>
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.<br>
<br>
A:  the field should be stored as a string, as that is what cobbler
thinks the key is, so just split the string on " "<br>
B:  I'd like a patch to the snippet so upstream can match what you're
shipping with Spacewalk.<br>
<br>
If there's something else going on, let me know.   <br>
<br>
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.<br>
<br>
--Michael<br>
<br>
<br>
<br>
<br>
</body>
</html>