[SRU][Ubuntu 22.04] Duplicate link for NVMe device by-id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Won't Fix
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When working with NVMe/TCP host functionality, connecting to NVMe subsystem through multiple controllers can lead to an invalid device link created in /dev/disc/by-id/ being created.
Steps to reproduce:
Step 1: Install Ubuntu 22.04 LTS (ubuntu-
Step 2: Install nvme-cli package, currently installed version is nvme version 1.16
Step 3: In the os terminal, type any nvme connect-all to connect to NVMe subsystems and check the duplicate entries in /dev/disk/by-id/.
This may cause users to choose the wrong link and would not be able to work with it.
[Fix]
udev-rules: fix nvme symlink creation on namespace changes
https:/
[Test Plan]
Connect to NVMe/TCP subsystem using nvme connect-all. This was tested against a few Dell Storage systems.
Steps to Reproduce:
1. Use nvme connect-all to connect to an NVMe/TCP subsystems
2. Check /dev/disk/by-id. The symlinks for NVMe devices should have the namespace id appended to them. E.g., if there is /dev/disk/
[ Where problems could occur ]
This issue may be experienced by users who use NVMe/TCP solutions.
Regression risk is low, because the existing symlink pattern is kept for backwards compatibility. This patch adds a new symlink pattern that includes the namespace ID, which will remain persistent throughout a boot.
[ Other Info ]
Expected Behavior:
No duplicate entries of NVMe subsystems should exist.
Related branches
- Lukas Märdian: Approve
-
Diff: 434 lines (+299/-55)9 files modifieddebian/patches/lp2009743/network-dhcp4-do-not-ignore-the-gateway-even-if-the-desti.patch (+60/-0)
debian/patches/lp2009743/test-network-add-one-more-testcase-for-DHCPv4-classless-r.patch (+36/-0)
debian/patches/lp2013543-core-reorder-systemd-arguments-on-reexec.patch (+58/-0)
debian/patches/lp2028180-udev-rules-fix-nvme-symlink-creation-on-namespace-changes.patch (+59/-0)
debian/patches/lp2031683-sd-bus-bus_message_type_from_string-is-not-pure.patch (+62/-0)
debian/patches/series (+5/-1)
debian/systemd.postinst (+18/-15)
debian/tests/tests-in-lxd (+1/-1)
dev/null (+0/-38)
- Lukas Märdian: Approve
-
Diff: 796 lines (+623/-45)16 files modifieddebian/patches/lp1977630-fix_machinectl_pull_tar.patch (+81/-0)
debian/patches/lp1978079-efi-pstore-not-cleared-on-boot.patch (+5/-4)
debian/patches/lp1991829-add-CAP_LINUX_IMMUTABLE-to-systemd-machined-so-it-ca.patch (+29/-0)
debian/patches/lp1999275/binfmt-check-if-binfmt-is-mounted-before-applying-rules.patch (+80/-0)
debian/patches/lp1999275/binfmt-util-also-check-if-binfmt-is-mounted-in-read-write.patch (+41/-0)
debian/patches/lp1999275/binfmt-util-split-out-binfmt_mounted.patch (+69/-0)
debian/patches/lp1999275/unit-check-more-specific-path-to-be-written-by-systemd-bi.patch (+26/-0)
debian/patches/lp2009743/network-dhcp4-do-not-ignore-the-gateway-even-if-the-desti.patch (+59/-0)
debian/patches/lp2009743/test-network-add-one-more-testcase-for-DHCPv4-classless-r.patch (+33/-0)
debian/patches/lp2013543-core-reorder-systemd-arguments-on-reexec.patch (+58/-0)
debian/patches/lp2025563-shutdown-get-only-active-md-arrays.patch (+67/-0)
debian/patches/lp2028180-udev-rules-fix-nvme-symlink-creation-on-namespace-changes.patch (+47/-0)
debian/patches/series (+11/-1)
debian/systemd.postinst (+16/-1)
debian/tests/tests-in-lxd (+1/-1)
dev/null (+0/-38)
tags: | added: systemd-sru-next |
description: | updated |
Changed in systemd (Ubuntu Kinetic): | |
status: | New → Won't Fix |
description: | updated |
description: | updated |
Changed in systemd (Ubuntu Lunar): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Jammy): | |
status: | New → In Progress |
tags: |
added: verification-done-jammy removed: verification-failed-jammy |
I checked that this commit is present in v253 stable since v253.2, so we already have this in Mantic.