[Bug 2064201] Re: Use Debian-specific partx path in kpartx rule

Launchpad Bug Tracker 2064201 at bugs.launchpad.net
Wed Jun 5 08:00:09 UTC 2024


This bug was fixed in the package multipath-tools - 0.8.3-1ubuntu2.4

---------------
multipath-tools (0.8.3-1ubuntu2.4) focal; urgency=medium

  * Use Debian-specific partx path in kpartx rule (LP: #2064201)
    - d/p/lp2064201-kpartx-rules-use-Debian-specific-partx-path.patch

 -- Chengen Du <chengen.du at canonical.com>  Tue, 30 Apr 2024 07:49:10
+0000

** Changed in: multipath-tools (Ubuntu Focal)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2064201

Title:
  Use Debian-specific partx path in kpartx rule

Status in multipath-tools package in Ubuntu:
  New
Status in multipath-tools source package in Bionic:
  In Progress
Status in multipath-tools source package in Focal:
  Fix Released

Bug description:
  [Impact]
  The issue arises from the installation of the udev rules file /lib/udev/rules.d/68-del-part-nodes.rules by kpartx.
  This file references /usr/sbin/partx, but on Debian, partx is located in /usr/bin.
  This incorrect path leads to the following error:
  systemd-udevd[3302364]: sdrg: Process '/usr/sbin/partx -d --nr 1-1024 /dev/sdrg' failed with exit code 1.

  [Fix]
  The upstream has a patched fix available.
  https://salsa.debian.org/linux-blocks-team/multipath-tools/-/blob/master/debian/patches/0003-kpartx-rules-use-Debian-specific-partx-path.patch?ref_type=heads

  [Test Plan]
  1. Prepare a VM with two NICs and setup an iSCSI target
  root at focal:~# cat /etc/tgt/conf.d/iscsi.conf 
  <target iqn.2024-05.storage.com:disk1>
  	backing-store /dev/sdX
  </target>
  2. Prepare another VM and execute iSCSI discovery and login
  iscsiadm -m discovery -t sendtargets -p XXX
  iscsiadm -m node --login
  3. Show multipath topology
  multipath -ll
  4. Use the following command to trigger the udev rule
  udevadm trigger --subsystem-match="block" --name-match=sdX
  5. Confirm that there is no following error in /var/log/syslog
  systemd-udevd[1788]: sdX: Process '/usr/sssbin/partx -d --nr 1-1024 /dev/sdX' failed with exit code 1.

  [Where problems could occur]
  The patch specifically targets a single udev rule responsible for deleting partition devnodes for slave devices associated with specific aggregate devices, like multipath. This modification solely adjusts the path of the partx command. If the path is incorrect, the devnode will persist.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/2064201/+subscriptions




More information about the Ubuntu-sponsors mailing list