Project

General

Profile

Actions

Bug #27367

open

Log the list of restarted services

Added by Michel BOUISSOU 12 days ago. Updated 3 days ago.

Status:
Pending release
Priority:
2
Category:
Module - system-updates
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

Confirmation of a customer-reported issue (customer ticket, reproduced)

On Rudder 8.3.3, system-updates 8.3.3-1.17-nightly (or not nightly), Debian 12,

It seems that system updates do not restart services when it should.

Given an update campaign configured with : “Reboot or restart services only when needed”

Campaign stderr shows :

Use of uninitialized value $ucode_vars{"CURRENT"} in concatenation (.) or string at /usr/sbin/needrestart line 951.
Use of uninitialized value $ucode_vars{"AVAIL"} in concatenation (.) or string at /usr/sbin/needrestart line 952.

Campaign stdout ends with :

The hook directory /var/rudder/system-update/hooks.d/pre-reboot does not exist, skipping
NEEDRESTART-VER: 3.6
NEEDRESTART-KCUR: 6.12.34+rpt-rpi-2712
NEEDRESTART-KSTA: 0
NEEDRESTART-UCSTA: 1
NEEDRESTART-UCCUR: 
NEEDRESTART-UCEXP: 
NEEDRESTART-SVC: wsdd.service

The hook directory /var/rudder/system-update/hooks.d/post-upgrade does not exist, skipping

Identifying that a service (wsdd.service) needs to be restarted.

But the following day, running manually on the node :

❯ needrestart -rl
Scanning processes...                                                                                                                                                                               
Scanning candidates...                                                                                                                                                                              
Scanning processor microcode...                                                                                                                                                                     
Scanning linux images...                                                                                                                                                                            

Failed to retrieve available kernel versions.

The processor microcode seems to be up-to-date.

Services to be restarted:
 systemctl restart wsdd.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Shows that the same service still needs to be restarted, which probably means that it hasn't been when it should have.

This is not ARM or RaspberryPi specific, as the customer reported this on x86_64 hardware.

Actions

Also available in: Atom PDF