40-vm-hotadd.rules attempts to set non-existent sysfs parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Dan Streetman | ||
Bionic |
Fix Released
|
Medium
|
Dan Streetman | ||
Focal |
Fix Released
|
Medium
|
Dan Streetman |
Bug Description
[impact]
40-vm-hotadd.rules unconditionally tries onlining memory, which results in logged error messages if the memory is already online
[test case]
since this rules file restricts operation to only hyper-v or xen guests, boot a hyper-v or xen vm guest, and check for logged error msgs like:
Apr 29 22:36:46 focal01 systemd-udevd[266]: memory7: /usr/lib/
alternately, to test on a vm guest other than hyper-v or xen, comment/remove the 'GOTO="
[regression potential]
as this adds a check before attempting to online memory for hyper-v and xen vm guests, any regression would likely involve failure to correctly online all memory on those guest platforms.
[scope]
this rule has been around for a long time, so is needed for x/b/f/g.
[original description]
In focal, udev's 40-vm-hotadd.rules (from debian/
Apr 29 22:36:46 focal01 systemd-udevd[266]: memory7: /usr/lib/
Perhaps 40-vm-hotadd.rules needs to be updated for 5.4 semantics, removed, or something else. This behavior is present on systems upgraded from 18.04 (via d-r-u) as well as new focal systems, upon first reboot of the VM.
udev: 245.4-4ubuntu3
tags: | added: id-5eac701c52dbda63e8c9b00c |
description: | updated |
Changed in systemd (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Xenial): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Focal): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Note that same udevd rule exists as far back as 16.04 LTS:
ubuntu@ xenial- test:~$ md5sum /lib/udev/ rules.d/ 40-vm-hotadd. rules 4a86b743b82a2a5 b4 /lib/udev/ rules.d/ 40-vm-hotadd. rules
d8569b53b5bd187
ubuntu@ focal-test: ~$ md5sum /usr/lib/ udev/rules. d/40-vm- hotadd. rules 4a86b743b82a2a5 b4 /usr/lib/ udev/rules. d/40-vm- hotadd. rules
d8569b53b5bd187
There is a previous bug, https:/ /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/1518457 which addressed a different symptom but may be related.