<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I thought of that but my main hesitation is the issues I have had with doing scratch installs lately.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>All my post rename issues have been able to be remedied by editing files, hoping the same would apply here.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com] <b>On Behalf Of </b>Larry Letelier<br><b>Sent:</b> Monday, October 24, 2011 9:50 AM<br><b>To:</b> spacewalk-list@redhat.com<br><b>Subject:</b> Re: [Spacewalk-list] issues with host rename<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>Rich, <br><br>Can you re-install spacewsalk completly, <br>this time with the correct FQDN ?<br><br>-- Larry<br></span><br>On 24/10/11 10:56, Gomes, Rich wrote: <o:p></o:p></p><div><p>I have not been able to find anything on the python errors listed below. (I did find a previous thread from the list discussing the issue, but with no fix) <o:p></o:p></p><p>  <o:p></o:p></p><p>Has anyone been successful in fixing this? <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Thanks, <o:p></o:p></p><p>Rich <o:p></o:p></p><p>  <o:p></o:p></p><div><div><p><b>From:</b> Gomes, Rich <br><b>Sent:</b> Friday, October 21, 2011 11:33 AM<br><b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br><b>Subject:</b> RE: [Spacewalk-list] issues with host rename <o:p></o:p></p></div></div><p>  <o:p></o:p></p><p>Getting further but not quite there yet… <o:p></o:p></p><p>Since the spacewalk-hostname-rename script failed so quickly, I decided to perform the steps manually: <o:p></o:p></p><p><a href="https://fedorahosted.org/spacewalk/wiki/How_to_rename_or_change_a_satellite_hostname">https://fedorahosted.org/spacewalk/wiki/How_to_rename_or_change_a_satellite_hostname</a> <o:p></o:p></p><p>  <o:p></o:p></p><p>Once I did that, I re-ran <o:p></o:p></p><p>spacewalk-setup --disconnected --answer-file=<FILENAME> with my previous answerfile with new hostname added <o:p></o:p></p><p>  <o:p></o:p></p><p>Osa-dispatcher would start but would go stale. Log files indicated a bad password, performed the following: <o:p></o:p></p><p>  <o:p></o:p></p><p>sbin/service jabberd stop<br>/sbin/service osa-dispatcher stop<br>remove jabberd auth db:<br>rm -Rf /var/lib/jabberd/db/*<br>/sbin/service jabberd start<br>/sbin/service osa-dispatcher start <o:p></o:p></p><p>  <o:p></o:p></p><p>Osa then started without issues. <o:p></o:p></p><p>  <o:p></o:p></p><p>Presently everything appears to be fine until I try to run ‘rhnpush’ <o:p></o:p></p><p>  <o:p></o:p></p><p>Errors in httpd/error_log indicate: <o:p></o:p></p><p>[Fri Oct 21 11:24:31 2011] [error] [client 127.0.0.1] PythonHeaderParserHandler spacewalk.server.apacheServer::HeaderParserHandler: Traceback (most recent call last): <o:p></o:p></p><p>[Fri Oct 21 11:24:31 2011] [error] [client 127.0.0.1] PythonHeaderParserHandler spacewalk.server.apacheServer::HeaderParserHandler:   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n    result = object(req) <o:p></o:p></p><p>[Fri Oct 21 11:24:31 2011] [error] [client 127.0.0.1] PythonHeaderParserHandler spacewalk.server.apacheServer::HeaderParserHandler:   File "/usr/lib/python2.4/site-packages/spacewalk/server/apacheHandler.py", line 73, in headerParserHandler\n    ret = apacheSession.headerParserHandler(self, req) <o:p></o:p></p><p>[Fri Oct 21 11:24:31 2011] [error] [client 127.0.0.1] PythonHeaderParserHandler spacewalk.server.apacheServer::HeaderParserHandler:   File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnApache.py", line 75, in headerParserHandler\n    ret = self._init_request_processor(req) <o:p></o:p></p><p>[Fri Oct 21 11:24:31 2011] [error] [client 127.0.0.1] PythonHeaderParserHandler spacewalk.server.apacheServer::HeaderParserHandler:   File "/usr/lib/python2.4/site-packages/spacewalk/server/apacheHandler.py", line 109, in _init_request_processor\n    self._req_processor = apachePOST(self.clientVersion, req) <o:p></o:p></p><p>[Fri Oct 21 11:24:31 2011] [error] [client 127.0.0.1] PythonHeaderParserHandler spacewalk.server.apacheServer::HeaderParserHandler:   File "/usr/lib/python2.4/site-packages/spacewalk/server/apacheRequest.py", line 68, in __init__\n    self.parser._parser.returns_unicode = 0 <o:p></o:p></p><p>[Fri Oct 21 11:24:31 2011] [error] [client 127.0.0.1] PythonHeaderParserHandler spacewalk.server.apacheServer::HeaderParserHandler: AttributeError: SgmlopParser instance has no attribute '_parser' <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>All that I have found in googling is to remove the package ‘python-sgmlop’ and restart Spacewalk services <o:p></o:p></p><p>I do not have that package installed. <o:p></o:p></p><p>Is there something else causing the issue or something else I am missing? <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Thanks, <o:p></o:p></p><p>Rich <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><div><div><p><b>From:</b> <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> <a href="mailto:[mailto:spacewalk-list-bounces@redhat.com]">[mailto:spacewalk-list-bounces@redhat.com]</a> <b>On Behalf Of </b>Gomes, Rich<br><b>Sent:</b> Thursday, October 20, 2011 4:19 PM<br><b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br><b>Subject:</b> Re: [Spacewalk-list] issues with host rename <o:p></o:p></p></div></div><p>  <o:p></o:p></p><p>I am still having issues with osa loading the cert. <o:p></o:p></p><p>  <o:p></o:p></p><p>I went thru every file where I could find the old name and replaced it with the new name: <o:p></o:p></p><p>/etc/cobbler/settings <o:p></o:p></p><p>/etc/pki/spacewalk/jabberd/server.pem <o:p></o:p></p><p>/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT <o:p></o:p></p><p>/etc/jabberd/c2s.xml-swsave <o:p></o:p></p><p>/etc/jabberd/sm.xml-swsave <o:p></o:p></p><p>/etc/sysconfig/rhn/systemid.save <o:p></o:p></p><p>/etc/pki/tls/certs/spacewalk.crt <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>I am pretty sure that just replacing the name in the certs is not enough due to the actual hashes not changing. So I ran the following: <o:p></o:p></p><p>  <o:p></o:p></p><p>rhn-ssl-tool --gen-ca --force --set-common-name="newhostname" <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Still receiving the error below: <o:p></o:p></p><p>  <o:p></o:p></p><p>Starting osa-dispatcher: RHN 5802 2011/10/20 16:14:38 -04:00: ('Traceback caught:',) <o:p></o:p></p><p>RHN 5802 2011/10/20 16:14:38 -04:00: ('Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 608, in connect\n    self.verify_peer(ssl)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 688, in verify_peer\n    raise SSLVerifyError("Mismatch: peer name: %s; common name: %s" %\nSSLVerifyError: Mismatch: peer name: newhostname; common name: oldhostname.\n',) <o:p></o:p></p><p>                                                           [FAILED] <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>What am I missing here? <o:p></o:p></p><p>What file is osa pulling the common name from? <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Thanks, <o:p></o:p></p><p>Rich <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><div><div><p><b>From:</b> Gomes, Rich <br><b>Sent:</b> Thursday, October 20, 2011 12:39 PM<br><b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br><b>Subject:</b> RE: [Spacewalk-list] issues with host rename <o:p></o:p></p></div></div><p>  <o:p></o:p></p><p>Ok, that worked. Thanks!! <o:p></o:p></p><p>  <o:p></o:p></p><p>Now have an issue when starting osa: <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Starting osa-dispatcher: RHN 7591 2011/10/20 12:36:08 -04:00: ('Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 250, in setup_connection\n    c = self._get_jabber_client(js)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 307, in _get_jabber_client\n    c.connect()\n  File "/usr/share/rhn/osad/jabber_lib.py", line 564, in connect\n    jabber.Client.connect(self)\n  File "/usr/lib/python2.4/site-packages/jabber/xmlstream.py", line 466, in connect\n    socket.AF_UNSPEC, socket.SOCK_STREAM)\ngaierror: (-2, \'Name or service not known\')\n',) <o:p></o:p></p><p>                                                           [  OK  ] <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Thoughts? <o:p></o:p></p><p>  <o:p></o:p></p><div><div><p><b>From:</b> <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> <a href="mailto:[mailto:spacewalk-list-bounces@redhat.com]">[mailto:spacewalk-list-bounces@redhat.com]</a> <b>On Behalf Of </b>Larry Letelier<br><b>Sent:</b> Thursday, October 20, 2011 11:47 AM<br><b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br><b>Subject:</b> Re: [Spacewalk-list] issues with host rename <o:p></o:p></p></div></div><p>  <o:p></o:p></p><p>On 20/10/11 12:37, Gomes, Rich wrote: <o:p></o:p></p><div><p>I am having issues with a SW server (1.5) that I am running. Currently it is running without issue but there is a need for a name change. <o:p></o:p></p><p>Since it is a VM, I am cloning it as the new name and then powering off the original. <o:p></o:p></p><p>Once the new server is up I do the following: <o:p></o:p></p><p>  <o:p></o:p></p><p>1 – Change IP to be that of original <o:p></o:p></p><p>2 – Change hostname in both /etc/hosts and /etc/sysconfig/network <o:p></o:p></p><p>3 – Reboot and verify name change <o:p></o:p></p><p>4 – Run spacewalk-hostname-rename script <o:p></o:p></p><p>  <o:p></o:p></p><p>Each time I receive the following: <o:p></o:p></p><p>  <o:p></o:p></p><p>[root@newhostname ~]# spacewalk-hostname-rename xx.xx.xx.xx  Validating IP ... OK ============================================= <o:p></o:p></p><p>hostname: newhostname <o:p></o:p></p><p>ip: xx.xx.xx.xx <o:p></o:p></p><p>============================================= <o:p></o:p></p><p>Stopping rhn-satellite services ... OK <o:p></o:p></p><p>Testing DB connection ... ERROR: <o:p></o:p></p><p>ORA-12505: TNS:listener does not currently know of SID given in connect descriptor <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>SP2-0306: Invalid option. <o:p></o:p></p><p>Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <o:p></o:p></p><p>      <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] <o:p></o:p></p><p>SP2-0306: Invalid option. <o:p></o:p></p><p>Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <o:p></o:p></p><p>      <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] <o:p></o:p></p><p>SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus FAILED Your database isn't running. <o:p></o:p></p><p>Fix the problem and run /usr/bin/spacewalk-hostname-rename again <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>I would think it would be easier to build a new SW server from scratch but that has not worked out. Every time I try, with version 1.3, 1.4, and 1.5 everything goes smoothly but Taskomatic service will not stay running and I have not found a fix for it. <o:p></o:p></p><p>This server was\is running successfully so I decided to to just clone it and rename it. <o:p></o:p></p><p>  <o:p></o:p></p><p>Interestingly, if I change host name back to original, it does me now good. <o:p></o:p></p><p>And also, tnsnames and listener.ora both have ‘localhost’ specified, not new hostname. <o:p></o:p></p><p>Changing this to the new hostname does not good either. <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Has anyone else run into this? <o:p></o:p></p><p>How can this be fixed? <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>Thanks, <o:p></o:p></p><p>  <o:p></o:p></p><p>Rich <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p>  <o:p></o:p></p><p><b>  </b><o:p></o:p></p><p><b>  </b><o:p></o:p></p><p><b>  </b><o:p></o:p></p><p><b>Rich Gomes</b> | Senior Systems Administrator,  AUCA System Services | ARAMARK Uniform & Career Apparel <o:p></o:p></p><p>Tel: 781.763.4508 |  Fax: 781.763.2508 <o:p></o:p></p><p><a href="mailto:Rich.Gomes@wearguard-crest.com">Rich.Gomes@wearguard-crest.com</a> | <a href="http://www.aramark-uniform.com/" title="http://www.aramark-uniform.com/">www.aramark-uniform.com</a> <o:p></o:p></p><p>  <o:p></o:p></p></div><p>  <o:p></o:p></p><pre>_______________________________________________  <o:p></o:p></pre><pre>Spacewalk-list mailing list  <o:p></o:p></pre><pre><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>  <o:p></o:p></pre><pre><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a>  <o:p></o:p></pre><p><br>Rich: <br><br>Try this, <o:p></o:p></p><pre>-> Stop the osa-dispatcher and jabberd service.  <o:p></o:p></pre><pre>-> #rm -f /var/lib/jabberd/db/*  <o:p></o:p></pre><pre>   <o:p></o:p></pre><pre>-> Switch to the oracle user and using sqlplus clear out the client and dispatcher tables.  <o:p></o:p></pre><pre>   <o:p></o:p></pre><p>   sqlplus $(spacewalk-cfg-get default_db) <o:p></o:p></p><p>  <o:p></o:p></p><pre>   delete from rhnPushDispatcher;  <o:p></o:p></pre><pre>   delete from rhnpushclient;  <o:p></o:p></pre><pre>   commit;  <o:p></o:p></pre><pre>   <o:p></o:p></pre><pre>   quit  <o:p></o:p></pre><pre>   <o:p></o:p></pre><pre>-> Now restart the jabberd and osa-dispatcher services  <o:p></o:p></pre><p><br>Good luck-<br><br><br>-- Larry Letelier <o:p></o:p></p></div><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>Spacewalk-list mailing list<o:p></o:p></pre><pre><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><o:p></o:p></pre><pre><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></pre></div></body></html>