Enabling Spacewalks OSAD for Ubuntu clients
What is OSAD?
Spacewalk clients are checking in with Spacewalk every 240 minutes by default. You can change this in /etc/rhn/rhnsd but it will still be polling for scheduled actions and not receiving them instantly.
OSAD solves this problem. Its based on Jabber and runs a osa-dispatcher on the Spacewalk server which tells clients to please check-in immediately when there are actions scheduled for them.
You can read more on it here https://fedorahosted.org/spacewalk/wiki/OsadHowTo
Do I really need it?
That depends on your individual setup and what you are using Spacewalk for. For most people its probably ok to have scheduled actions be performed with a delay. For some it might not.
Especially if you want to use the “Command Execution” capability of Spacewalk, you certainly want them to be executed asap. I’ll be showing you how to get that working with Ubuntu clients in my next article.
So read on after the jump how to get OSAD running.
Thanks to Martin Juhl for building the needed packages for Ubuntu and putting them on Launchpad . Why they still havent made it into debian or ubuntu repos is a good question.
You will need the following packages
– osad_5.11.27-1ubuntu1.all
– pyjabber_0.5.0-1.4ubuntu3.all
dpkg -i osad_5.11.27-1ubuntu1.all.deb
cd /usr/share/rhn
wget http://spacewalk.example.com/pub/RHN-ORG-TRUSTED-SSL-CERT
service osad start
update-rc.d osad defaults
Also make sure port 5222 is open and ‘osa-dispatcher’ is started on the spacewalk-server.
Now you should see in your systems details page
Also, scheduled actions, like package installs, should be picked up within seconds.
Unfortunately, there’s no OSAD Package for trusty Ubuntu on launchpad.
I installed the versions for saucy on trusty without any problems.
Hi,
How can u do that?
I try to install osad_5.11.27-1ubuntu1~precise5_all.deb and rhncfg_5.10.14-1ubuntu1~precise2_all.deb. But I get error about packages.Such as:
root@spaceclient:/home/awtadm# dpkg -i osad_5.11.27-1ubuntu1~precise5_all.deb
dpkg-deb: error: `osad_5.11.27-1ubuntu1~precise5_all.deb’ is not a debian format archive
dpkg: error processing archive osad_5.11.27-1ubuntu1~precise5_all.deb (–install):
subprocess dpkg-deb –control returned error exit status 2
Errors were encountered while processing:
osad_5.11.27-1ubuntu1~precise5_all.deb
root@spaceclient:/home/awtadm# dpkg -i pyjabber_0.5.0-1.4ubuntu3~precise1_all.deb
dpkg-deb: error: `pyjabber_0.5.0-1.4ubuntu3~precise1_all.deb’ is not a debian format archive
dpkg: error processing archive pyjabber_0.5.0-1.4ubuntu3~precise1_all.deb (–install):
subprocess dpkg-deb –control returned error exit status 2
Errors were encountered while processing:
pyjabber_0.5.0-1.4ubuntu3~precise1_all.deb
It means those packages not for trusty.
How can you install them?