<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thank you Robert. I may have fixed it. I have changed my Spacewalk server name. Just where are all of those config files?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks,<br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p style="margin-top:0; margin-bottom:0"></p>
<div><br>
-- <br>
Paul Deveau<br>
Analyste de syst¨¨mes principal|Senior Systems Analyst<br>
Technologies de l¡¯information|Information Technology<br>
Universit¨¦ d¡¯Ottawa|University of Ottawa<br>
613-562-5800 (3774)</div>
<br>
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Robert Paschedag <robert.paschedag@web.de><br>
<b>Sent:</b> Monday, January 28, 2019 1:01 PM<br>
<b>To:</b> spacewalk-list@redhat.com; Paul Deveau; spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] Migreating servers to new Spacewalk server</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Am 28. Januar 2019 17:15:32 MEZ schrieb Paul Deveau <pdeveau@uottawa.ca>:<br>
>Hi,<br>
><br>
><br>
>Two things:<br>
><br>
><br>
> 1.  What is the best way to migrate Spacewalk clients to a new server?<br>
>2.  Have created a new Spacewalk server and have deleted Spacewalk<br>
>clients from the original server and re-registered the servers to the<br>
>new server. OSAD no longer starts. I get the following error:<br>
><br>
><br>
># systemctl status osad.service<br>
>¡ñ osad.service - OSAD daemon<br>
>Loaded: loaded (/usr/lib/systemd/system/osad.service; disabled; vendor<br>
>preset: disabled)<br>
>Active: failed (Result: exit-code) since Fri 2019-01-25 15:00:00 EST;<br>
>5s ago<br>
>Process: 13335 ExecStart=/usr/sbin/osad --pid-file /var/run/osad.pid<br>
>(code=exited, status=1/FAILURE)<br>
> Main PID: 5067 (code=exited, status=0/SUCCESS)<br>
><br>
>Jan 25 15:00:00 CAP-D100 osad[13335]: Error: [('SSL routines',<br>
>'ssl3_get_server_certificate', 'certificate verify failed')]<br>
>Jan 25 15:00:00 CAP-D100 osad[13335]: 2019-01-25 15:00:00<br>
>rhn_log.log_error: Traceback caught:<br>
>Jan 25 15:00:00 CAP-D100 osad[13335]: 2019-01-25 15:00:00<br>
>rhn_log.log_error: Traceback (most recent call last):<br>
>Jan 25 15:00:00 CAP-D100 osad[13335]: File<br>
>"/usr/share/rhn/osad/jabber_lib.py", line 662, in connect<br>
>Jan 25 15:00:00 CAP-D100 osad[13335]: ssl.do_handshake()<br>
>Jan 25 15:00:00 CAP-D100 osad[13335]: Error: [('SSL routines',<br>
>'ssl3_get_server_certificate', 'certificate verify failed')]<br>
>Jan 25 15:00:00 CAP-D100 systemd[1]: osad.service: control process<br>
>exited, code=exited status=1<br>
>Jan 25 15:00:00 CAP-D100 systemd[1]: Failed to start OSAD daemon.<br>
>Jan 25 15:00:00 CAP-D100 systemd[1]: Unit osad.service entered failed<br>
>state.<br>
>Jan 25 15:00:00 CAP-D100 systemd[1]: osad.service failed.<br>
><br>
><br>
><br>
>Thank you.<br>
><br>
Deletion of software on client isn't necessary.<br>
<br>
Get the CA cert of your new spacewalk server (RHN-ORG-TRUSTED-SSL-CERT) onto your clients.<br>
Add the cert to the "trusted certificates" on the client (see update-ca-certificates) and<br>
Re-register the client with "rhnreg_ks --force --activationkey <your_key> --serverUrl <fqdn_of_your_server/XMLRPC"<br>
<br>
Delete the osad-auth.conf from /etc/sysconfig/rhn and restart osad.<br>
<br>
That should be it, as long you did not change the server name. In this case, you have to modify your configs on *all* clients.<br>
<br>
Robert<br>
<br>
><br>
>--<br>
>Paul Deveau<br>
>Analyste de syst¨¨mes principal|Senior Systems Analyst<br>
>Technologies de l¡¯information|Information Technology<br>
>Universit¨¦ d¡¯Ottawa|University of Ottawa<br>
>613-562-5800 (3774)<br>
<br>
<br>
-- <br>
sent from my mobile device<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>