<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <span id="result_box" class="" lang="en"><span class="hps">Rich, <br>
        <br>
        then make</span> <span class="hps">sure to modify</span> <span
        class="hps">all the files involved.</span><br>
      <span class="hps">the logic</span> <span class="hps">is the same.</span></span><br>
    <br>
    -- Larry<br>
    <br>
    On 24/10/11 11:19, Gomes, Rich wrote:
    <blockquote
cite="mid:716C4F59FAB01649B085832B6DC831BA04D3F0CC@anorpexbe01.AUCA.Corp"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=us-ascii">
      <div>
        <p><span>I thought of that but my main hesitation is the issues
            I have had with doing scratch installs lately. </span></p>
        <p><span>All my post rename issues have been able to be remedied
            by editing files, hoping the same would apply here. </span></p>
        <p><span>   </span></p>
        <p><span>   </span></p>
        <div>
          <div>
            <p><b><span>From:</span></b><span>
                <a class="moz-txt-link-abbreviated" href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>
                [<a class="moz-txt-link-freetext" href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>] <b>On Behalf
                  Of </b>Larry Letelier<br>
                <b>Sent:</b> Monday, October 24, 2011 9:50 AM<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
                <b>Subject:</b> Re: [Spacewalk-list] issues with host
                rename </span></p>
          </div>
        </div>
        <p>   </p>
        <p><span>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: </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) </p>
          <p>  </p>
          <p>Has anyone been successful in fixing this? </p>
          <p>  </p>
          <p>  </p>
          <p>  </p>
          <p>Thanks, </p>
          <p>Rich </p>
          <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 moz-do-not-send="true"
                  href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
                <b>Subject:</b> RE: [Spacewalk-list] issues with host
                rename </p>
            </div>
          </div>
          <p>  </p>
          <p>Getting further but not quite there yet… </p>
          <p>Since the spacewalk-hostname-rename script failed so
            quickly, I decided to perform the steps manually: </p>
          <p><a moz-do-not-send="true"
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>
          </p>
          <p>  </p>
          <p>Once I did that, I re-ran </p>
          <p>spacewalk-setup --disconnected
            --answer-file=<FILENAME> with my previous answerfile
            with new hostname added </p>
          <p>  </p>
          <p>Osa-dispatcher would start but would go stale. Log files
            indicated a bad password, performed the following: </p>
          <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 </p>
          <p>  </p>
          <p>Osa then started without issues. </p>
          <p>  </p>
          <p>Presently everything appears to be fine until I try to run
            ‘rhnpush’ </p>
          <p>  </p>
          <p>Errors in httpd/error_log indicate: </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): </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) </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) </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) </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) </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 </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' </p>
          <p>  </p>
          <p>  </p>
          <p>All that I have found in googling is to remove the package
            ‘python-sgmlop’ and restart Spacewalk services </p>
          <p>I do not have that package installed. </p>
          <p>Is there something else causing the issue or something else
            I am missing? </p>
          <p>  </p>
          <p>  </p>
          <p>  </p>
          <p>Thanks, </p>
          <p>Rich </p>
          <p>  </p>
          <p>  </p>
          <p>  </p>
          <p>  </p>
          <p>  </p>
          <div>
            <div>
              <p><b>From:</b> <a moz-do-not-send="true"
                  href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>
                <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
                <b>Subject:</b> Re: [Spacewalk-list] issues with host
                rename </p>
            </div>
          </div>
          <p>  </p>
          <p>I am still having issues with osa loading the cert. </p>
          <p>  </p>
          <p>I went thru every file where I could find the old name and
            replaced it with the new name: </p>
          <p>/etc/cobbler/settings </p>
          <p>/etc/pki/spacewalk/jabberd/server.pem </p>
          <p>/var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT </p>
          <p>/etc/jabberd/c2s.xml-swsave </p>
          <p>/etc/jabberd/sm.xml-swsave </p>
          <p>/etc/sysconfig/rhn/systemid.save </p>
          <p>/etc/pki/tls/certs/spacewalk.crt </p>
          <p>  </p>
          <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: </p>
          <p>  </p>
          <p>rhn-ssl-tool --gen-ca --force
            --set-common-name="newhostname" </p>
          <p>  </p>
          <p>  </p>
          <p>Still receiving the error below: </p>
          <p>  </p>
          <p>Starting osa-dispatcher: RHN 5802 2011/10/20 16:14:38
            -04:00: ('Traceback caught:',) </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',) </p>
          <p>                                                          
            [FAILED] </p>
          <p>  </p>
          <p>  </p>
          <p>  </p>
          <p>What am I missing here? </p>
          <p>What file is osa pulling the common name from? </p>
          <p>  </p>
          <p>  </p>
          <p>Thanks, </p>
          <p>Rich </p>
          <p>  </p>
          <p>  </p>
          <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 moz-do-not-send="true"
                  href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
                <b>Subject:</b> RE: [Spacewalk-list] issues with host
                rename </p>
            </div>
          </div>
          <p>  </p>
          <p>Ok, that worked. Thanks!! </p>
          <p>  </p>
          <p>Now have an issue when starting osa: </p>
          <p>  </p>
          <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',) </p>
          <p>                                                          
            [  OK  ] </p>
          <p>  </p>
          <p>  </p>
          <p>  </p>
          <p>Thoughts? </p>
          <p>  </p>
          <div>
            <div>
              <p><b>From:</b> <a moz-do-not-send="true"
                  href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>
                <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
                <b>Subject:</b> Re: [Spacewalk-list] issues with host
                rename </p>
            </div>
          </div>
          <p>  </p>
          <p>On 20/10/11 12:37, Gomes, Rich wrote: </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. </p>
            <p>Since it is a VM, I am cloning it as the new name and
              then powering off the original. </p>
            <p>Once the new server is up I do the following: </p>
            <p>  </p>
            <p>1 – Change IP to be that of original </p>
            <p>2 – Change hostname in both /etc/hosts and
              /etc/sysconfig/network </p>
            <p>3 – Reboot and verify name change </p>
            <p>4 – Run spacewalk-hostname-rename script </p>
            <p>  </p>
            <p>Each time I receive the following: </p>
            <p>  </p>
            <p>[root@newhostname ~]# spacewalk-hostname-rename
              xx.xx.xx.xx  Validating IP ... OK
              ============================================= </p>
            <p>hostname: newhostname </p>
            <p>ip: xx.xx.xx.xx </p>
            <p>============================================= </p>
            <p>Stopping rhn-satellite services ... OK </p>
            <p>Testing DB connection ... ERROR: </p>
            <p>ORA-12505: TNS:listener does not currently know of SID
              given in connect descriptor </p>
            <p>  </p>
            <p>  </p>
            <p>SP2-0306: Invalid option. </p>
            <p>Usage: CONN[ECT] [{logon|/|proxy} [AS
              {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where
              <logon> ::=
              <username>[/<password>][@<connect_identifier>]
            </p>
            <p>      <proxy> ::=
              <proxyuser>[<username>][/<password>][@<connect_identifier>]
            </p>
            <p>SP2-0306: Invalid option. </p>
            <p>Usage: CONN[ECT] [{logon|/|proxy} [AS
              {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where
              <logon> ::=
              <username>[/<password>][@<connect_identifier>]
            </p>
            <p>      <proxy> ::=
              <proxyuser>[<username>][/<password>][@<connect_identifier>]
            </p>
            <p>SP2-0157: unable to CONNECT to ORACLE after 3 attempts,
              exiting SQL*Plus FAILED Your database isn't running. </p>
            <p>Fix the problem and run
              /usr/bin/spacewalk-hostname-rename again </p>
            <p>  </p>
            <p>  </p>
            <p>  </p>
            <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. </p>
            <p>This server was\is running successfully so I decided to
              to just clone it and rename it. </p>
            <p>  </p>
            <p>Interestingly, if I change host name back to original, it
              does me now good. </p>
            <p>And also, tnsnames and listener.ora both have ‘localhost’
              specified, not new hostname. </p>
            <p>Changing this to the new hostname does not good either. </p>
            <p>  </p>
            <p>  </p>
            <p>Has anyone else run into this? </p>
            <p>How can this be fixed? </p>
            <p>  </p>
            <p>  </p>
            <p>  </p>
            <p>Thanks, </p>
            <p>  </p>
            <p>Rich </p>
            <p>  </p>
            <p>  </p>
            <p>  </p>
            <p><b>  </b> </p>
            <p><b>  </b> </p>
            <p><b>  </b> </p>
            <p><b>Rich Gomes</b> | Senior Systems Administrator,  AUCA
              System Services | ARAMARK Uniform & Career Apparel </p>
            <p>Tel: 781.763.4508 |  Fax: 781.763.2508 </p>
            <p><a moz-do-not-send="true"
                href="mailto:Rich.Gomes@wearguard-crest.com">Rich.Gomes@wearguard-crest.com</a> |
              <a moz-do-not-send="true"
                href="http://www.aramark-uniform.com/"
                title="http://www.aramark-uniform.com/">www.aramark-uniform.com</a>
            </p>
            <p>  </p>
          </div>
          <p>  </p>
          <pre>_______________________________________________    </pre>
          <pre>Spacewalk-list mailing list    </pre>
          <pre><a moz-do-not-send="true" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>    </pre>
          <pre><a moz-do-not-send="true" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a>    </pre>
          <p><br>
            Rich: <br>
            <br>
            Try this, </p>
          <pre>-> Stop the osa-dispatcher and jabberd service.    </pre>
          <pre>-> #rm -f /var/lib/jabberd/db/*    </pre>
          <pre>     </pre>
          <pre>-> Switch to the oracle user and using sqlplus clear out the client and dispatcher tables.    </pre>
          <pre>     </pre>
          <p>   sqlplus $(spacewalk-cfg-get default_db) </p>
          <p>  </p>
          <pre>   delete from rhnPushDispatcher;    </pre>
          <pre>   delete from rhnpushclient;    </pre>
          <pre>   commit;    </pre>
          <pre>     </pre>
          <pre>   quit    </pre>
          <pre>     </pre>
          <pre>-> Now restart the jabberd and osa-dispatcher services    </pre>
          <p><br>
            Good luck-<br>
            <br>
            <br>
            -- Larry Letelier </p>
        </div>
        <p><br>
          <br>
          <br>
        </p>
        <pre>_______________________________________________  </pre>
        <pre>Spacewalk-list mailing list  </pre>
        <pre><a moz-do-not-send="true" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>  </pre>
        <pre><a moz-do-not-send="true" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a>  </pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
  </body>
</html>