[Spacewalk-list] Spacewalk only works with local DB install

Bushby, Bruce (London)(c) bbushby at maninvestments.com
Mon Feb 22 09:03:46 UTC 2010


Hi Stefan

This is usually a hostname/FQDN issue. Make sure your /etc/hosts file is
100% clean and contains:
127.0.0.1	localhost.localdomain	localhost
<ip address>	FQDN	hostname

Then restart spacewalk

Regards
Bruce



 

-----Original Message-----
From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Stefan Bluhm
Sent: 20 February 2010 10:07
To: spacewalk-list at redhat.com
Subject: [Spacewalk-list] Spacewalk only works with local DB install

Hello all,

these are my set-ups:
a) Fedora 12, minimum install, DB on a different server
b) Fedora 12, minimum install, DB on the same server
c) Fedora 12, minimum install, dummy/empty DB running on the same
server, actual DB on a different server

when I run a), I get the error message:
Starting osa-dispatcher: 
/usr/lib/python2.6/site-packages/jabber/jabber.py:68: 
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
  import sha, time
RHN 4765 2010/02/20 09:51:36 +02:00: ('Traceback (most recent call
last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 254, in 
setup_connection\n    c = self._get_jabber_client(js)\n  File 
"/usr/share/rhn/osad/jabber_lib.py", line 311, in 
_get_jabber_client\n    c.connect()\n  File 
"/usr/share/rhn/osad/jabber_lib.py", line 577, in connect\n    
jabber.Client.connect(self)\n  File
"/usr/lib/python2.6/site-packages/jabber/xmlstream.py", line 464, in 
connect\n    else: self._sock.connect((self._hostIP, self._port))\n  
File "<string>", line 1, in connect\nerror: [Errno 111] Connection
refused\n',)


when I run b), the system works fine.

Now I tried to play around with the scenarios and found the following:
When the DB is installed after Spacewalk has been configured for the
first time, I again get the above error message. The DB must be
configured before the spacewalk-setup is run.
To use an external DB, I have to set up scenario c). The local DB MUST
be runnning otherwise again I get the error message.

There is something wrong with the osa-dispatcher that it is always
trying to access the local DB when starting.
Not only that, the DB has to be started together with the
/usr/sbin/rhn-satellite restart script. If the DB is running and the
/usr/sbin/rhn-satellite restart script is started (obviously, the DB
part has been taken out of the start), it will again fail with the same
error message

Can someone please analyse that and fix it? I am happy to help out as I
have all the test scenarios saved

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

**********************************************************************
 Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees only.  It contains information which may be confidential and privileged.  If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man Investments cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man Investments makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man Investments reserves the right to monitor, record and retain all electronic communications through its network to ensure the integrity of its systems, for record keeping and regulatory purposes. 
Visit us at: www.maninvestments.com 
TG0908
**********************************************************************





More information about the Spacewalk-list mailing list