liske/needrestart

Use of uninitialized value $ucode_vars{"AVAIL"}

Opened this issue · 2 comments

Good morning,

today all our OL9 systems got an updated Package of needrestart (upgrade from 3.6-5 to 3.8-1) and since then on every run on Hardware (not VMs) we get:

needrestart -r l -b Use of uninitialized value $ucode_vars{"AVAIL"} in concatenation (.) or string at /sbin/needrestart line 992.

The package is from EPEL Repository. We will now downgrade to the older package on all machines.
Any idea what is happening? This looks like a regression. If you need any more Info please tell me

liske commented

It looks like needrestart is not able to detect the available microcode versions on the filesystem. needrestart -w -v -b should give some more details.

[main] eval /etc/needrestart/needrestart.conf
[main] eval /etc/needrestart/conf.d/custom.conf
[main] needrestart v3.8
[main] running in root mode
[main] systemd detected
NEEDRESTART-VER: 3.8
[ucode] using NeedRestart::uCode::Intel
[ucode] using NeedRestart::uCode::AMD
[uCode/Intel] #0 current revision: 0x0049
++ grep -oE '[^[:space:]]+$'
++ iucode_tool --scan-system

  • sig=found
  • '[' -r /sys/devices/system/cpu/cpu0/microcode/processor_flags ']'
    ++ cat /sys/devices/system/cpu/cpu0/microcode/processor_flags
  • filter='-s found,0x1'
  • test -r /etc/needrestart/iucode.sh
  • . /etc/needrestart/iucode.sh
  • type bsdtar
  • IUCODE_TOOL_EXTRA_OPTIONS=
  • test -r /etc/default/intel-microcode
  • . /etc/default/intel-microcode
    ++ IUCODE_TOOL_EXTRA_OPTIONS=--ignore-broken
  • test '' = no
    ++ find /usr/share/misc -maxdepth 1 -type f -name 'intel-microcode*' -perm /u+r
  • '[' -n '' ']'
  • iucode_tool -l -s found,0x1 --ignore-broken --ignore-broken -tb /lib/firmware/intel-ucode
  • grep found
    [ucode] #0 did not get available microcode version
    [uCode/AMD] #0 cpu vendor id mismatch
    NEEDRESTART-UCSTA: 1
    NEEDRESTART-UCCUR: 0x0049
    Use of uninitialized value $ucode_vars{"AVAIL"} in concatenation (.) or string at /sbin/needrestart line 992.
    NEEDRESTART-UCEXP: