<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Despite the downgrade recommendations, I gave this a shot anyways on CentOS 6.3 with Cobbler 2.2.  <div><br>I ran the `spacewalk-hostname-rename <ip>` and got the following:<br><div>"Changing cobbler settings... FAILED".</div><div><br></div><div>I manually edited /etc/cobbler/settings to change the hostname parameter, which needs to be changed in multiple places in this file. Then, I commented out the following in /usr/bin/spacewalk-hostname-rename:</div><div><br></div><div>#echo -n "Changing cobbler settings ..." | tee -a $LOG</div><div>## --enabled tftp=no means, everything stayes configured from previous configuration</div><div>#/usr/bin/cobbler-setup --enable-tftp=no >> $LOG 2>&1</div><div>#print_status $?</div><div><br></div><div>This portion of the script will always fail as it is ultimately looks for cobbler templates in /usr/share/cobbler/ which does not exist (at least not with cobbler 2.2; perhaps this was the case with cobbler 2.0)</div><div><br></div><div>The rename script finished successfully and all the spacewalk services start without issues, including cobbler and osa-dispatcher.</div><div><br></div><div><br></div><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Thu, 30 Aug 2012 06:55:34 -0700<br>From: fnwsa@yahoo.com<br>To: jhutar@redhat.com; spacewalk-list@redhat.com<br>Subject: Re: [Spacewalk-list] FQDN can't solve 'Unable to connect to jabber servers'<br><br><div style="color:#000;background-color:#fff;font-family:garamond, new york, times, serif;font-size:12pt">The cobbler version is 2.2.3.<br><div><span><br></span></div><div>This spacewalk-hostname-rename issue is not solved yet. I had to give it up finally to save time.<br>After manually replaced all hostname with its FQDN in files under /etc/jabberd, osa-dispatcher starts working. At least the client was upgraded successfully.<br><br>Thanks!<br><br></div><div>nz<br><br></div>  <div style="font-family:garamond, new york, times, serif;font-size:12pt"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Jan Hutař <jhutar@redhat.com><br> <b><span style="font-weight:bold">To:</span></b> fnwsa@yahoo.com; spacewalk-list@redhat.com <br><b><span style="font-weight:bold">Cc:</span></b>
 fnwsa@yahoo.com; Paul Robert Marino <prmarino1@gmail.com>; "spacewalk-list@redhat.com" <spacewalk-list@redhat.com> <br> <b><span style="font-weight:bold">Sent:</span></b> Thursday, August 30, 2012 12:25:22 AM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [Spacewalk-list] FQDN can't solve 'Unable to connect to jabber servers'<br> </font> </div> <br>On Thu, 23 Aug 2012 12:36:06 -0700 (PDT) <a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a> wrote:<br><br>> One issue is gone and another issue is coming right away -<br>> this is our life :( :)<br>> <br>> # spacewalk-hostname-rename 192.168.10.99<br>> ......<br>> Validating IP ... OK<br>> =============================================<br>> hostname: spacewalkhost.ourdomain.com<br>> ip: 192.168.10.99<br>> =============================================<br>> Stopping rhn-satellite services ... OK<br>> Testing DB
 connection ... psql:<stdin>:1: ERROR:  syntax error<br>> at or near "off" LINE 1: set feed off;<br>> Updating /etc/rhn/rhn.conf ... OK<br>> Actual SSL key pair package:<br>> rhn-org-httpd-ssl-key-pair-spacewalkhost.ourdomain-1.0-1.noarch<br>> Starting generation of new SSL certificate: Generating SSL<br>> certificate: Removing old SSL certificate<br>> (rhn-org-httpd-ssl-key-pair-spacewalkhost.ourdomain-1.0-1.noarch) ...<br>> OK Installing new SSL certificate<br>> (rhn-org-httpd-ssl-key-pair-spacewalkhost.ourdomain-1.0-2.noarch.rpm) ...<br>> OK Deploying jabberd certificate ... OK Regenerating new<br>> bootstrap client-config-overrides.txt ... OK Updating<br>> NOCpulse.ini ... OK Updating monitoring data ... OK Updating<br>> other DB entries ... OK Changing cobbler settings ... FAILED<br>> Fix the problem and run /usr/bin/spacewalk-hostname-rename<br>> again<br>> <br>> # tail
 /var/log/rhn/rhn_hostname_rename.log:<br>> Changing cobbler settings ... Traceback (most recent call<br>> last): File "/usr/bin/cobbler-setup", line 78, in <module><br>>     main()<br>>   File "/usr/bin/cobbler-setup", line 55, in main<br>>     answers = dict(loadFile(DEFAULTS))<br>>   File "/usr/bin/cobbler-setup", line 26, in loadFile<br>>     return load(open(fl).read())<br>> IOError: [Errno 2] No such file or directory:<br>> '/usr/share/cobbler/installer_templates/defaults' FAILED<br><br>This is strange. Which version of cobbler package you have?<br><br>Regards,<br>Jan<br><br><br><br>> # service cobblerd status<br>> cobblerd is stopped<br>> <br>> # service cobblerd start<br>> Starting cobbler
 daemon:                                   [<br>> OK  ]<br>> <br>> # service cobblerd status<br>> cobblerd (pid 12373) is running...<br>> <br>> Please help. Thanks.<br>>  <br>> <br>> nz<br>> <br>> <br>> <br>> ________________________________<br>>  From: "<a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>" <<a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>><br>> To: "<a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>" <<a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>>; Paul Robert Marino<br>> <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>>; "<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>"<br>> <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>>; "<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>"<br>> <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>> Sent: Thursday, August 23, 2012<br>> 2:19:06 PM Subject: Re: [Spacewalk-list] FQDN can't solve<br>> 'Unable to connect to jabber servers' <br>> <br>> This issue is fixed by using<br>> <br>> # patch /usr/bin/spacewalk-hostname-rename /root/spacewalk-hostname-rename_patch<br>> # (the codes in<br>> # <a href="https://bugzilla.redhat.com/show_bug.cgi?id=809444" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=809444</a>)<br>> <br>>  <br>> nz<br>> <br>> <br>> <br>> ________________________________<br>>  From: "<a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>" <<a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>><br>> To: Paul Robert Marino <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>>;<br>> "<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>" <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>> Sent:<br>> Thursday, August 23, 2012 1:44:56 PM Subject: Re:<br>> [Spacewalk-list] FQDN can't solve 'Unable to connect to jabber<br>> servers' <br>> <br>> Paul,<br>> <br>> I've
 found the issue and answer in the link you<br>> provided:<a href="https://bugzilla.redhat.com/show_bug.cgi?id=809444" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=809444</a> I<br>> am studying your answer now. I don't quite understand it.<br>> <br>>  <br>> nz<br>> <br>> <br>> <br>> ________________________________<br>>  From: Paul Robert Marino <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>><br>> To: <a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>; <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a> <br>> Sent: Thursday, August 23, 2012 11:03:28 AM<br>> Subject: Re: [Spacewalk-list] FQDN can't solve 'Unable to<br>> connect to jabber servers' <br>> On Thu, Aug 23, 2012 at 10:29 AM,  <<a href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>> wrote:<br>> > Hi, I've got a tough issue - Unable to connect to jabber<br>> > servers<br>> ><br>> > # service osa-dispatcher start<br>> > Starting osa-dispatcher: RHN 32080 2012/08/23 09:58:53<br>> > -04:00: ('Not<br>>  able to<br>> > reconnect',)<br>> > RHN 32080 2012/08/23 09:58:53 -04:00: ('Traceback (most<br>> > recent call last):\n File<br>> > "/usr/share/rhn/osad/jabber_lib.py", line 252, in<br>> > setup_connection\n c = self._get_jabber_client(js)\n  File<br>> > "/usr/share/rhn/osad/jabber_lib.py", line 309, in<br>> > _get_jabber_client\n    c.connect()\n  File<br>> > "/usr/share/rhn/osad/jabber_lib.py", line 589, in connect\n<br>> >   raise SSLDisabledError\nSSLDisabledError\n',) [  OK  ]<br>> ><br>> > I've changed all spacewalk server's hostname
 with its FQDN<br>> > in all config files I can found:<br>> ><br>> > # grep osa /etc/rhn/rhn.conf<br>> > osa-dispatcher.jabber_server = spacewalkhost.ourdomain.com<br>> > osa-dispatcher.jabber_username = rhn-dispatcher-sat<br>> > osa-dispatcher.jabber_password = rhn-dispatcher-RANDOM_STRING<br>> > osa-dispatcher.osa_ssl_cert =<br>>  /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT<br>> ><br>> > # grep spacewalkhost /etc/jabberd/*<br>> > /etc/jabberd/c2s.xml:    <id require-starttls="false"<br>> > pemfile="/etc/pki/spacewalk/jabberd/server.pem" realm=""<br>> > register-enable="true">spacewalkhost.ourdomain.com</id><br>> > /etc/jabberd/server.pem:8ZHSDZRzaSm7bNl2l8om83QrPMG/WDJh40PANPh/b60asdvSb5uwpb6dc4rxxxxx<br>> > /etc/jabberd/sm.xml:  <id>spacewalkhost.ourdomain.com</id><br>> > /etc/jabberd/sm.xml:   
 <id>spacewalkhost.ourdomain.com</id><br>> ><br>> > # grep<br>> > # spacewalkhost /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT<br>> >         Issuer: C=US, ST=..., L=..., O=...,<br>> >OU=spacewalkhost.ourdomain.com,<br>> > CN=spacewalkhost.ourdomain.com<br>> >         Subject: C=US, ST=..., L=..., O=...,<br>> >OU=spacewalkhost.ourdomain.com,<br>> > CN=spacewalkhost.ourdomain.com<br>> ><br>> ><br>>  DirName:/C=US/ST=.../L=.../O=.../OU=spacewalkhost.ourdomain.com/CN=spacewalkhost.ourdomain.com<br>> ><br>> > # tail /var/log/rhn/osa-dispatcher.log<br>> > 2012/08/23 10:17:16 -04:00 32080 0.0.0.0:<br>> > osad/jabber_lib.__init__ 2012/08/23 10:17:16 -04:00 32080<br>> > 0.0.0.0: osad/jabber_lib.connect('Server did not return a<br>> > <features /> stanza, reconnecting',) 2012/08/23
 10:17:17<br>> > -04:00 32080 0.0.0.0: osad/jabber_lib.connect('Server did<br>> > not return a <features /> stanza, reconnecting',) 2012/08/23<br>> > 10:17:18 -04:00 32080 0.0.0.0: osad/jabber_lib.connect<br>> > ('Server did not return a <features /> stanza,<br>> > reconnecting',) 2012/08/23 10:17:19 -04:00 32080 0.0.0.0:<br>> > osad/jabber_lib.connect('ERROR', 'Not able to reconnect')<br>> > 2012/08/23 10:17:19 -04:00 32080 0.0.0.0:<br>> > osad/jabber_lib.print_message('SSLError',) 2012/08/23<br>> > 10:17:19 -04:00 32080 0.0.0.0:<br>> ><br>>  osad/jabber_lib.print_message('Could not connect to jabber<br>> server',<br>> > 'spacewalkhost.ourdomain.com')<br>> > 2012/08/23 10:17:19 -04:00 32080 0.0.0.0:<br>> > osad/jabber_lib.setup_connection('ERROR', 'Traceback (most<br>> > recent call last):\n  File<br>> >
 "/usr/share/rhn/osad/jabber_lib.py", line 252, in<br>> > setup_connection\n    c = self._get_jabber_client(js)\n<br>> > File "/usr/share/rhn/osad/jabber_lib.py", line 309, in<br>> > _get_jabber_client\n c.connect()\n  File<br>> > "/usr/share/rhn/osad/jabber_lib.py", line 589, in connect\n<br>> >   raise SSLDisabledError\nSSLDisabledError\n') 2012/08/23<br>> > 10:17:19 -04:00 32080 0.0.0.0:<br>> > osad/jabber_lib.setup_connection('Could not connect to any<br>> > jabber server',) 2012/08/23 10:17:19 -04:00 32080 0.0.0.0:<br>> > osad/jabber_lib.main('Unable to connect to jabber servers,<br>> > sleeping 10 seconds',)<br>> ><br>> > # tail /var/log/messages<br>> > Aug 23<br>>  10:20:46 spacewalkhost jabberd/c2s[15904]: [7]<br>> [::ffff:192.168.10.99,<br>> > port=48416] connect<br>> > Aug 23 10:20:46 spacewalkhost jabberd/c2s[15904]:
 [7]<br>> > [::ffff:192.168.10.99, port=48416] disconnect jid=unbound,<br>> > packets: 0 Aug 23 10:20:47 spacewalkhost jabberd/c2s[15904]:<br>> > [7] [::ffff:192.168.10.99, port=48417] connect<br>> > Aug 23 10:20:47 spacewalkhost jabberd/c2s[15904]: [7]<br>> > [::ffff:192.168.10.99, port=48417] disconnect jid=unbound,<br>> > packets: 0 Aug 23 10:20:58 spacewalkhost jabberd/c2s[15904]:<br>> > [7] [::ffff:192.168.10.99, port=48418] connect<br>> > Aug 23 10:20:58 spacewalkhost jabberd/c2s[15904]: [7]<br>> > [::ffff:192.168.10.99, port=48418] disconnect jid=unbound,<br>> > packets: 0 Aug 23 10:20:59 spacewalkhost jabberd/c2s[15904]:<br>> > [7] [::ffff:192.168.10.99, port=48419] connect<br>> > Aug 23 10:20:59 spacewalkhost jabberd/c2s[15904]: [7]<br>> > [::ffff:192.168.10.99, port=48419]<br>>  disconnect jid=unbound, packets: 0<br>> > Aug 23 10:21:00 spacewalkhost
 jabberd/c2s[15904]: [7]<br>> > [::ffff:192.168.10.99, port=48425] connect<br>> > Aug 23 10:21:00 spacewalkhost jabberd/c2s[15904]: [7]<br>> > [::ffff:192.168.10.99, port=48425] disconnect jid=unbound,<br>> > packets: 0<br>> ><br>> > Why does the spacewalk server's hostname rather than its<br>> > FQDN display in messages? What do I still miss? Please help<br>> > and thank you in advance!<br>> in answer to the log question Thats because its syslog or<br>> rsyslog writing that log file and thats how its configured by<br>> default<br>> <br>> Also there is more to renaming the host than altering a few<br>> config files there is actually a tool for this<br>> The current version of the tool has a bug with PostgreSQL but<br>> if you download the latest version from the git repo it should<br>> work. see the bug report here<br>> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=809444" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=809444</a><br>> <br>> ><br>> > Nick<br>> ><br>> > _______________________________________________<br>> > Spacewalk-list mailing list<br>> > <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>> > <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>> <br>> <br>> <br>> _______________________________________________<br>> Spacewalk-list mailing list<br>> <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br><br><br>-- <br>Jan Hutar     Systems Management QA<br><a href="mailto:jhutar@redhat.com">jhutar@redhat.com</a>     Red Hat, Inc.<br><br><br> </div> </div>  </div><br>_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list</div></div>                                    </div></body>
</html>