Linux OSBN/Ubuntuusers Planet XING / LinkedIn / Amazon

Spacewalk and already installed outstanding patches

Sometimes Spacewalk still suggests updates and errata for a system even though they have already been installed. Especially for bigger system landscapes this is confusing as planning maintenance using the web interface is hard in this way.

# zypper update scout
Refreshing service 'spacewalk'.
Loading repository data...
Reading installed packages...
No update candidate for 'scout-0.1.1+20180103.0595254-6.1.noarch'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.

Often, the solution for this problem is kinda easy. Within Spacewalk, there is a service called taskomatic being reponsible for executing internal tasks; the appropriate tasks are defined by time in bunches. Usually, Spacewalk systems are configured in a way that the download new software content (updates, errata) every night – sometimes the task for updating repository metadata (channel-repodata-default bunch) simply freezes. In this case, restarting the task scheduler and checking the log might do the trick:

# systemctl restart taskomatic
# tail -f /var/log/rhn/rhn_taskomatic_daemon.log
INFO | jvm 1 | ... [Thread-124] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - File Modified Date:2018-01-24 20:57:35 CET
INFO | jvm 1 | ... [Thread-124] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Channel Modified Date:2018-01-25 23:30:10 CET
INFO | jvm 1 | ... [Thread-124] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Generating new repository metadata for channel 'icinga2'(sha256) 1119 packages, 0 errata
INFO | jvm 1 | ... [Thread-124] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Repository metadata generation for 'icinga2' finished in 9 seconds

Afterwards, web interface information should be back in sync again:

Mit Spacewalk verwaltetes System ohne ausstehende Patches

In addition the client add-on which retrieves packages via Spacewalk sometimes crashes when updating the software profile information (installed packages and versions). This information is being updated in periodic intervals – to immediately update this information run the following command:

# rhn-profile-sync -v
Updating package profile...
Updating hardware profile...

Sharing is caring

Leave a Reply

Your email address will not be published. Required fields are marked *