<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;}
@font-face
        {font-family:"Lucida Grande";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
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;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.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'>Ok, that worked. Thanks!!<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'>Now have an issue when starting osa:<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><p class=MsoPlainText>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 class=MsoPlainText>                                                           [  OK  ]<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></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><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thoughts?<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> Thursday, October 20, 2011 11:47 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>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 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><p class=MsoNormal style='line-height:13.5pt'><br>Rich: <br><br>Try this, <br><br><br><br><span class=apple-style-span><span style='font-size:10.0pt;font-family:"Lucida Grande","serif";color:#333333;background:#F8F4E6'><o:p></o:p></span></span></p><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>-> Stop the osa-dispatcher and jabberd service.<o:p></o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>-></span><span style='font-family:"Lucida Grande","serif";color:#333333;background:#F8F4E6'> #rm -f /var/lib/jabberd/db/*<o:p></o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>-></span><span style='font-family:"Lucida Grande","serif";color:#333333;background:#F8F4E6'> Switch to the oracle user and using sqlplus clear out the client and dispatcher tables.<o:p></o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></pre><p style='margin:0in;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;background-image:initial;background-attachment:initial;background-origin: initial;background-clip: initial;border-style:initial;border-color:initial;background-position:initial initial;background-repeat:initial initial'><span style='font-size:10.0pt;font-family:"Lucida Grande","serif";color:#333333;background:#F8F4E6'>   sqlplus $(spacewalk-cfg-get default_db)</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;background-image:initial;background-attachment:initial;background-origin: initial;background-clip: initial;border-style:initial;border-color:initial;min-height: 8pt;background-position:initial initial;background-repeat:initial         initial'><span style='font-size:10.0pt;font-family:"Lucida Grande","serif";color:#333333;background:#F8F4E6'> <o:p></o:p></span></p><pre style='line-height:13.5pt;vertical-align:baseline;overflow-x: auto;overflow-y: auto;white-space:pre-line;background-image:initial;background-attachment:initial;background-origin: initial;background-clip: initial;border-style:initial;border-color:initial;background-position:initial initial;background-repeat:initial initial'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>   delete from rhnPushDispatcher;<o:p></o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>   delete from rhnpushclient;<o:p></o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>   commit;<o:p></o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>   quit<o:p></o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'><o:p> </o:p></span></pre><pre style='line-height:13.5pt;vertical-align:baseline'><span style='font-family:"Arial","sans-serif";color:#333333;border:none windowtext 1.0pt;padding:0in'>-> Now restart the jabberd and osa-dispatcher services</span><span style='font-family:"Lucida Grande","serif";color:#333333;background:#F8F4E6'><o:p></o:p></span></pre><p class=MsoNormal><br>Good luck-<br><br><br>-- Larry Letelier<o:p></o:p></p></div></body></html>