mpathpersist scsi3 pgr broken

Bug #2026881 reported by Arnaud Veron
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
multipath-tools (Ubuntu)
Fix Released
Undecided
Mitchell Dzurick
Jammy
Fix Released
Undecided
Mitchell Dzurick
Lunar
Fix Released
Undecided
Mitchell Dzurick
Mantic
Fix Released
Undecided
Mitchell Dzurick

Bug Description

[Impact]
The command ordering between libmpathpersist and multipathd is not using the correct keyword for commands. The result is when attempting to use mpathpersist a "Missing argument" is displayed and the command can not be executed properly.

This is a regression caused by a CVE fix in release 0.8.8-1ubuntu1.22.04.1,
https://github.com/opensvc/multipath-tools/commit/f812466f68b8e020818c6454d7b7a7e278bc99f6

A patch from upstream fixes this by handling different command ordering: https://github.com/opensvc/multipath-tools/commit/04912e2fea94da2e7ccedabab5725b07ade2bcd4

[Test Plan]
The autopkgtest provide sufficient testing to spot for regressions, specifically tgtbasedmpaths does a full set-up and stress test of the multipath on local iscsi targets. Therefore, the targeted test here will be for mpathpersist and ensuring the command ordering is working, on-top of that, ensuring the multipath-tools package upgrades in-place without any problems.

1. Set up a VM
2. Login to VM, and install required packages
# apt install -y lsscsi multipath-tools open-iscsi tgt
// If testing new PPA add that here
# add-apt-repository -y ppa:mitchdz/multipath-tools-2026881 && apt update -y && apt upgrade -y
3. Setup targets to test against
```
targetname="iqn.2016-11.foo.com:target.iscsi"
cwd=$(pwd)
testdir="/mnt/tgtmpathtest"
localhost="127.0.0.1"
portal="${localhost}:3260"
maxpaths=4
backfn="backingfile"
expectwwid="60000000000000000e00000000010001"
testdisk="/dev/disk/by-id/wwn-0x${expectwwid}"

### Setup mpath devices

# Restart tgtd to make sure modules are all loaded
service tgt restart || echo "Failed to restart tgt" >&2

# prep SINGLE test file
truncate --size 100M ${backfn}

# create target
tgtadm --lld iscsi --op new --mode target --tid 1 -T "${targetname}"
# allow all to bind the target
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
# set backing file
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b "${cwd}/${backfn}"

# scan for targets (locally)
iscsiadm --mode discovery --type sendtargets --portal ${localhost}

# login
echo "login #1"
iscsiadm --mode node --targetname "${targetname}" --portal ${portal} --login
# duplicate this session (always 1)
for i in $(seq 2 ${maxpaths})
do
    echo "extra login #${i}"
    iscsiadm --mode session -r 1 --op new
done

udevadm settle
sleep 5 # sleep a bit to allow device to be created.

# status summary
echo "Status after initial setup"
tgtadm --lld iscsi --mode target --op show
tgtadm --lld iscsi --op show --mode conn --tid 1
iscsiadm --mode session -P 1
lsscsi -liv
multipath -v3 -ll
dmsetup table

echo "Test WWN should now point to DM"
readlink "${testdisk}" | grep dm
```
4. test mpathpersist usage
// Current (failing) case
# dpkg -l multipath-tools | awk '/^ii/ {print $3}'
0.8.8-1ubuntu1.22.04.1
# mpathpersist -v2 --out --register-ignore --param-sark=0x214872831999999 /dev/dm-0
184.785211 | mpatha: adding new path sdd
184.786687 | mpatha: adding new path sda
184.788045 | mpatha: adding new path sdc
184.789458 | mpatha: adding new path sdb
184.790255 | mpatha: pr message=map mpatha setprstatus
184.790521 | mpatha: message=map mpatha setprstatus reply=map mpatha setprstatus: Missing argument
....
// Fixed case
# dpkg -l multipath-tools | awk '/^ii/ {print $3}'
0.8.8-1ubuntu1.22.04.2~jammy5
# mpathpersist -v2 --out --register-ignore --param-sark=0x214872831999999 /dev/dm-0
299.345497 | mpatha: adding new path sdd
299.347042 | mpatha: adding new path sdb
299.348504 | mpatha: adding new path sdc
299.349918 | mpatha: adding new path sda
299.350760 | mpatha: pr message=setprstatus map mpatha
299.351526 | mpatha: message=setprstatus map mpatha reply=ok

5. Test in-place upgrade
# dpkg -l multipath-tools | awk '/^ii/ {print $3}'
0.8.8-1ubuntu1.22.04.1
# multipath -ll
mpatha (360000000000000000e00000000010001) dm-0 IET,VIRTUAL-DISK
size=100M features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 9:0:0:1 sdd 8:48 active ready running
|-+- policy='service-time 0' prio=1 status=enabled
| `- 6:0:0:1 sda 8:0 active ready running
|-+- policy='service-time 0' prio=1 status=enabled
| `- 7:0:0:1 sdb 8:16 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
  `- 8:0:0:1 sdc 8:32 active ready running
# sudo apt install multipath-tools=0.8.8-1ubuntu1.22.04.2~jammy5
# dpkg -l multipath-tools | awk '/^ii/ {print $3}'
0.8.8-1ubuntu1.22.04.2~jammy5
# multipath -ll
mpatha (360000000000000000e00000000010001) dm-0 IET,VIRTUAL-DISK
size=100M features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 9:0:0:1 sdd 8:48 active ready running
|-+- policy='service-time 0' prio=1 status=enabled
| `- 6:0:0:1 sda 8:0 active ready running
|-+- policy='service-time 0' prio=1 status=enabled
| `- 7:0:0:1 sdb 8:16 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
  `- 8:0:0:1 sdc 8:32 active ready running

[Where things can go wrong]
- The applied patch is relatively small and handles different command ordering. A potential issue I foresee is other occurences of a mismatch between the libaries.

Related branches

CVE References

Revision history for this message
Arnaud Veron (arnaudveron) wrote :
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Hi Arnaud, thanks for taking the time to report this bug.

I don't have an easy way to reproduce it locally, but it seems like you have everything set up to verify and confirm the possible fix. Would you be able to test the following PPA and see if the package in it fixes the bug?

https://launchpad.net/~sergiodj/+archive/ubuntu/multipath-tools

If it works, then we can proceed with the SRU process.

Thanks.

tags: added: server-todo
Revision history for this message
Arnaud Veron (arnaudveron) wrote :

Hi Sergio,

Please find the logs below. It works fine with your package.

root@qau22c13n1:~# lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04
root@qau22c13n1:~#
root@qau22c13n1:~# apt-cache policy multipath-tools
multipath-tools:
  Installed: 0.8.8-1ubuntu1.22.04.2~ppa1
  Candidate: 0.8.8-1ubuntu1.22.04.2~ppa1
  Version table:
 *** 0.8.8-1ubuntu1.22.04.2~ppa1 500
        500 https://ppa.launchpadcontent.net/sergiodj/multipath-tools/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.8-1ubuntu1.22.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     0.8.8-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
root@qau22c13n1:~#
root@qau22c13n1:~# mpathpersist -i -k /dev/mapper/36589cfc0000007507940a4aaf05aead6
  PR generation=0x5e, 0 registered reservation key.
root@qau22c13n1:~#
root@qau22c13n1:~# mpathpersist -v2 --out --register-ignore --param-sark=0x214872831593209 /dev/mapper/36589cfc0000007507940a4aaf05aead6
468.142907 | 36589cfc0000007507940a4aaf05aead6: adding new path sdy
468.145936 | 36589cfc0000007507940a4aaf05aead6: adding new path sdx
468.146779 | 36589cfc0000007507940a4aaf05aead6: pr message=setprstatus map 36589cfc0000007507940a4aaf05aead6
468.146850 | 36589cfc0000007507940a4aaf05aead6: message=setprstatus map 36589cfc0000007507940a4aaf05aead6 reply=ok

root@qau22c13n1:~# echo $?
0
root@qau22c13n1:~# mpathpersist -i -k /dev/mapper/36589cfc0000007507940a4aaf05aead6
  PR generation=0x60, 2 registered reservation keys follow:
    0x214872831593209
    0x214872831593209
root@qau22c13n1:~#

=> the key is correctly registered on both paths

root@qau22c13n1:~# mpathpersist -v2 --out --register-ignore --param-rk=0x214872831593209 /dev/mapper/36589cfc0000007507940a4aaf05aead6
500.425873 | 36589cfc0000007507940a4aaf05aead6: adding new path sdy
500.429693 | 36589cfc0000007507940a4aaf05aead6: adding new path sdx
500.430421 | 36589cfc0000007507940a4aaf05aead6: pr message=unsetprstatus map 36589cfc0000007507940a4aaf05aead6
500.430491 | 36589cfc0000007507940a4aaf05aead6: message=unsetprstatus map 36589cfc0000007507940a4aaf05aead6 reply=ok

500.430527 | 36589cfc0000007507940a4aaf05aead6: pr message=unsetprkey map 36589cfc0000007507940a4aaf05aead6
500.430598 | 36589cfc0000007507940a4aaf05aead6: message=unsetprkey map 36589cfc0000007507940a4aaf05aead6 reply=ok

root@qau22c13n1:~#
root@qau22c13n1:~# mpathpersist -i -k /dev/mapper/36589cfc0000007507940a4aaf05aead6
  PR generation=0x62, 0 registered reservation key.
root@qau22c13n1:~#

=> the key is unregistered on both paths

Thanks a lot for the quick resolution.

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Thanks for your help confirming the patch fixes this bug Arnaud! I'll be starting the SRU process for lunar/jammy. For Mantic, the in-progress merge[1] will include this change and resolve this bug.

[1] - https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/2018051

Changed in multipath-tools (Ubuntu Mantic):
status: New → In Progress
assignee: nobody → Mitchell Dzurick (mitchdz)
Changed in multipath-tools (Ubuntu Lunar):
status: New → In Progress
assignee: nobody → Mitchell Dzurick (mitchdz)
Changed in multipath-tools (Ubuntu Jammy):
status: New → In Progress
assignee: nobody → Mitchell Dzurick (mitchdz)
description: updated
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

SRU process started, but upload to Lunar/Jammy archive will wait for the mantic merge mentioned 2 comments above to be done.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (6.8 KiB)

This bug was fixed in the package multipath-tools - 0.9.4-5ubuntu1

---------------
multipath-tools (0.9.4-5ubuntu1) mantic; urgency=medium

  * Merge with Debian unstable (LP: #2018051). Remaining changes:
    - d/p/enable-find-multipaths.patch: re-enable find_multipaths by
      default -- see the removed 'add_find-multipaths.patch' (LP 1463046)
    - d/multipath.conf: Install friendly names multipath.conf by default,
      instead of generating it in every installer.
    - d/multipath-tools.dm-mpath-lvm.udev: Adjust initramfs integration
      for new udev rules
    - Remove d/initramfs/local-top (redundant with other initramfs scripts):
      + init-top: take over loading modules (dm-multipath and SCSI device
        handlers); move the missing dm-emc there (now scsi-dh-emc; see
        BTS 567014).
      + remove d/initramfs/local-top
    - d/initramfs/hooks: Add dm-queue-length: users may want to
      change from the default selector and should be able to do so.
      (LP 1673350)
    - multipath initramfs fixes for booting from multipathed devices:
      + d/initramfs/hooks: also copy wwids file on the installed
        system to ensure all paths come up on boot. (LP 1479929)
      + d/initramfs/hooks: install multipathd and required
        directories.
      + d/initramfs/hooks: copy multipath udev rules to initramfs
      + d/initramfs/hooks: do not copy kpartx rules to initramfs
      + d/initramfs/local-bottom: remember to stop multipathd.
      + d/initramfs/local-premount: wait for udev to settle before
        the call to resolve_device() in local_mount_root(), so the
        by-uuid/ symlinks have a chance to be updated by the
        multipath udev rules (LP 1503286).
      + d/initramfs/local-premount: Run multipath with -B so not to
        assign names nor change /etc/multipath/bindings during
        initramfs (LP 1561103)
    - debian/initramfs/local-bottom: wait for the multipathd unix
      socket to close, so to avoid multipathd.socket unit failure.
      (LP 1682178)
    - Split kpartx initramfs bits into kpartx-boot for dmraid (LP 941874)
      + d/kpartx-initramfs/hooks/kpartx
      + d/kpartx-boot.install
      + d/kpartx-boot.postinst
      + d/kpartx-boot.postrm
      + d/control: Add kpartx-boot package for dmraid
    - d/rules: Move udev rules to priority 95, because rules that load
      modules should be >90.
    - d/rules: remove -Bsymbolic-functions from LDFLAGS
      (https://github.com/opensvc/multipath-tools/issues/26)
    - Don't build the multipath-tools binary package on i386; only kpartx.
  * Dropped changes:
    - d/p/kpartx-Improve-finding-loopback-device-by-file.patch: Improve
      finding loopback devices (LP 1747044)
      [ Dropping due to LP: #1961633 ]
    - d/rules: copy udev rule after build.
      [ Included in debian version 0.9.4-5 ]
    - d/multipath-tools.install: install tmpfiles.d/multipath.conf
      [ Included in debian version 0.9.4-2 ]
    - SECURITY UPDATE: symlink attack CVE-2022-41973
      [ Applied upstream in 0.9.4 ]
    - SECURITY UPDATE: authorization bypass CVE-2022-41974
      [ Applied upstream in 0.9.4 ]
  * Added changes:
    - d/rules: do not install init scripts...

Read more...

Changed in multipath-tools (Ubuntu Mantic):
status: In Progress → Fix Released
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

In my opinion, the current autopkgtests are good enough to test for regressions, but I will still set up a testbed environment to do further testing and will update the test plan with the tests/results.

description: updated
description: updated
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Arnaud, or anyone else affected,

Accepted multipath-tools into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/multipath-tools/0.8.8-1ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in multipath-tools (Ubuntu Lunar):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-lunar
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Arnaud, or anyone else affected,

Accepted multipath-tools into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/multipath-tools/0.8.8-1ubuntu1.22.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in multipath-tools (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Arnaud Veron (arnaudveron) wrote :
Download full text (9.6 KiB)

Hi

Please find the successful test logs below:

# multipathd config
root@qau22c13n1:~# cat /etc/multipath.conf
defaults {
        find_multipaths yes
        user_friendly_names no
        reservation_key file
}

blacklist {
        devnode "^drbd[0-9]"
        device {
                vendor "VBOX"
                product "HARDDISK"
        }
}

blacklist_exceptions {
        device {
                vendor "FreeNAS"
                product "iSCSI Disk"
        }
}

# iscsi disk seen through 2 paths
root@qau22c13n1:~# multipath -l /dev/dm-15
36589cfc000000073fa706138358cd511 dm-15 TrueNAS,iSCSI Disk
size=16M features='0' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=0 status=active
| `- 17:0:0:43 sdag 66:0 active undef running
`-+- policy='service-time 0' prio=0 status=enabled
  `- 16:0:0:43 sdab 65:176 active undef running

# no reservation key on disk
root@qau22c13n1:~# mpathpersist -i -k /dev/dm-15
  PR generation=0x0, 0 registered reservation key.

# check for installed version
root@qau22c13n1:~# apt-cache policy multipath-tools
multipath-tools:
  Installed: 0.8.8-1ubuntu1.22.04.1
  Candidate: 0.8.8-1ubuntu1.22.04.1
  Version table:
 *** 0.8.8-1ubuntu1.22.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.8-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

# first try is failing as expected
root@qau22c13n1:~# mpathpersist -v2 --out --register-ignore --param-sark=0x214872831593209 /dev/dm-15
689.167643 | 36589cfc000000073fa706138358cd511: adding new path sdag
689.170397 | 36589cfc000000073fa706138358cd511: adding new path sdab
689.170519 | 36589cfc000000073fa706138358cd511: pr message=map 36589cfc000000073fa706138358cd511 setprkey key 214872831593209
689.170784 | 36589cfc000000073fa706138358cd511: message=map 36589cfc000000073fa706138358cd511 setprkey key 214872831593209 reply=map 36589cfc000000073fa706138358cd511 setprkey key 214872831593209: Missing argument
multipath-tools v0.8.8 (03/12, 2021)
CLI commands reference:
 list|show paths
 list|show paths format $format
 list|show paths raw format $format
 list|show path $path
 list|show maps|multipaths
 list|show status
 list|show daemon
 list|show maps|multipaths status
 list|show maps|multipaths stats
 list|show maps|multipaths format $format
 list|show maps|multipaths raw format $format
 list|show maps|multipaths topology
 list|show topology
 list|show maps|multipaths json
 list|show map|multipath $map topology
 list|show map|multipath $map format $format
 list|show map|multipath $map raw format $format
 list|show map|multipath $map json
 list|show config local
 list|show config
 list|show blacklist
 list|show devices
 list|show wildcards
 reset maps|multipaths stats
 reset map|multipath $map stats
 add path $path
 remove|del path $path
 add map|multipath $map
 remove|del map|multipath $map
 remove|del maps|multipaths
 switch|switchgroup map|multipath $map group $group
 reconfigure
 reconfigure all
 suspend map|multipath $map
 resume map|multipath $map
 resize map|multip...

Read more...

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :
Download full text (3.2 KiB)

Tested proposed on Lunar

1. Start VM

2. upgrade packages
# apt update -y && sudo apt upgrade -y

3. Enable proposed (multipath-tools installed by default)
# cat <<EOF >/etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe
EOF

4. Install required packages
# apt install -y lsscsi multipath-tools open-iscsi tgt

5. Update to proposed package
# apt install -y kpartx=0.8.8-1ubuntu2.1
# apt install -y multipath-tools=0.8.8-1ubuntu2.1

6. Confirm package
# apt-cache policy multipath-tools | grep Installed
  Installed: 0.8.8-1ubuntu2.1

7. Setup local test targets
cp file to setup.sh
```
targetname="iqn.2016-11.foo.com:target.iscsi"
cwd=$(pwd)
testdir="/mnt/tgtmpathtest"
localhost="127.0.0.1"
portal="${localhost}:3260"
maxpaths=4
backfn="backingfile"
expectwwid="60000000000000000e00000000010001"
testdisk="/dev/disk/by-id/wwn-0x${expectwwid}"

### Setup mpath devices

# Restart tgtd to make sure modules are all loaded
service tgt restart || echo "Failed to restart tgt" >&2

# prep SINGLE test file
truncate --size 100M ${backfn}

# create target
tgtadm --lld iscsi --op new --mode target --tid 1 -T "${targetname}"
# allow all to bind the target
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
# set backing file
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b "${cwd}/${backfn}"

# scan for targets (locally)
iscsiadm --mode discovery --type sendtargets --portal ${localhost}

# login
echo "login #1"
iscsiadm --mode node --targetname "${targetname}" --portal ${portal} --login
# duplicate this session (always 1)
for i in $(seq 2 ${maxpaths})
do
    echo "extra login #${i}"
    iscsiadm --mode session -r 1 --op new
done

udevadm settle
sleep 5 # sleep a bit to allow device to be created.

# status summary
echo "Status after initial setup"
tgtadm --lld iscsi --mode target --op show
tgtadm --lld iscsi --op show --mode conn --tid 1
iscsiadm --mode session -P 1
lsscsi -liv
multipath -v3 -ll
dmsetup table

echo "Test WWN should now point to DM"
readlink "${testdisk}" | grep dm
```
# chmod +x setup.sh
# ./setup.sh

8. Test Behavior from proposed
# mpathpersist -v2 --out --register-ignore --param-sark=0x214872831999999 /dev/dm-0
75.192551 | mpatha: adding new path sda
75.194082 | mpatha: adding new path sdc
75.195587 | mpatha: adding new path sdb
75.197020 | mpatha: adding new path sdd
75.197708 | mpatha: pr message=setprstatus map mpatha
75.197859 | mpatha: message=setprstatus map mpatha reply=ok

Looks good.

9. Test failing behavior
# apt install -y kpartx=0.8.8-1ubuntu2 --allow-downgrades
# apt install -y multipath-tools=0.8.8-1ubuntu2 --allow-downgrades
# mpathpersist -v2 --out --register-ignore --param-sark=0x214872831999999 /dev/dm-0
131.542153 | mpatha: adding new path sda
131.544790 | mpatha: adding new path sdc
131.546989 | mpatha: adding new path sdb
131.550224 | mpatha: adding new path sdd
131.551471 | mpatha: pr message=map mpatha setprstatus
131.553267 | mpatha: message=map mpatha setprstatus reply=map mpatha setprstatus: Missing argument
multipath-tools v0.8.8 (03/12, 2021)
CLI c...

Read more...

tags: added: verification-doneverification-done-lunar
removed: verification-needed verification-needed-lunar
Robie Basak (racb)
tags: added: verification-done verification-done-lunar
removed: verification-doneverification-done-lunar
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

The migration into the main archive is stopped due to the following bugs:

https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/2034471
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/2035098

I'm working on getting a fix for these 2 new bugs in a new version right now. Once the new version for these 2 bugs get committed/merged then this bug can be set to merged.

For now, keep LL/JJ as "Fix Committed" as it's in -devel, but not in the main archive.

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (multipath-tools/0.8.8-1ubuntu1.22.04.2)

All autopkgtests for the newly accepted multipath-tools (0.8.8-1ubuntu1.22.04.2) for jammy have finished running.
The following regressions have been reported in tests triggered by the package:

livecd-rootfs/2.765.20 (amd64)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/jammy/update_excuses.html#multipath-tools

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Arnaud, or anyone else affected,

Accepted multipath-tools into lunar-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/multipath-tools/0.8.8-1ubuntu2.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-lunar to verification-done-lunar. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-lunar. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-lunar
removed: verification-done verification-done-lunar
tags: added: verification-needed-jammy
removed: verification-done-jammy
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Arnaud, or anyone else affected,

Accepted multipath-tools into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/multipath-tools/0.8.8-1ubuntu1.22.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Arnaud Veron (arnaudveron) wrote :

Hi,

please find below the successful tests logs:

root@jammy1:~# apt-cache policy multipath-tools
multipath-tools:
  Installed: (none)
  Candidate: 0.8.8-1ubuntu1.22.04.3
  Version table:
     0.8.8-1ubuntu1.22.04.3 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
     0.8.8-1ubuntu1.22.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.8-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

root@jammy1:~# dpkg -l multipath-tools
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-======================-============-======================================
ii multipath-tools 0.8.8-1ubuntu1.22.04.3 amd64 maintain multipath block device access

root@jammy1:~# disk=/dev/mapper/36589cfc000000bcbd288e641f97f89f9

root@jammy1:~# multipath -l $disk
36589cfc000000bcbd288e641f97f89f9 dm-9 TrueNAS,iSCSI Disk
size=1.0G features='0' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=0 status=active
| `- 16:0:0:9 sdk 8:160 active undef running
`-+- policy='service-time 0' prio=0 status=enabled
  `- 17:0:0:9 sdab 65:176 active undef running

root@jammy1:~# mpathpersist -i -k $disk
  PR generation=0x0, 0 registered reservation key.

root@jammy1:~# mpathpersist -v2 --out --register-ignore --param-sark=0x214123412341234 $disk
742.932845 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdk
742.940158 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdab
742.942874 | 36589cfc000000bcbd288e641f97f89f9: pr message=setprstatus map 36589cfc000000bcbd288e641f97f89f9
742.943865 | 36589cfc000000bcbd288e641f97f89f9: message=setprstatus map 36589cfc000000bcbd288e641f97f89f9 reply=ok

root@jammy1:~# echo $?
0

root@jammy1:~# mpathpersist -i -k $disk
  PR generation=0x2, 2 registered reservation keys follow:
    0x214123412341234
    0x214123412341234
root@jammy1:~# mpathpersist -v2 --out --register-ignore --param-rk=0x214123412341234 $disk
829.476514 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdk
829.490961 | 36589cfc000000bcbd288e641f97f89f9: adding new path sdab
829.495288 | 36589cfc000000bcbd288e641f97f89f9: pr message=unsetprstatus map 36589cfc000000bcbd288e641f97f89f9
829.495765 | 36589cfc000000bcbd288e641f97f89f9: message=unsetprstatus map 36589cfc000000bcbd288e641f97f89f9 reply=ok

829.495865 | 36589cfc000000bcbd288e641f97f89f9: pr message=unsetprkey map 36589cfc000000bcbd288e641f97f89f9
829.500900 | 36589cfc000000bcbd288e641f97f89f9: message=unsetprkey map 36589cfc000000bcbd288e641f97f89f9 reply=ok

root@jammy1:~# echo $?
0

root@jammy1:~# mpathpersist -i -k $disk
  PR generation=0x4, 0 registered reservation key.

root@jammy1:~# lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Thank you very much Arnaud for helping test out the package! I'll be doing my own testing this week and if all the testing goes smooth we will see this package go into the archives soon.

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

I tested Lunar, and the same results in https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/2026881/comments/11 were seen, but the change is the package is 0.8.8-1ubuntu2.2

Which means Lunar looks good too.

tags: added: verification-done verification-done-lunar
removed: verification-needed verification-needed-lunar
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package multipath-tools - 0.8.8-1ubuntu2.2

---------------
multipath-tools (0.8.8-1ubuntu2.2) lunar; urgency=medium

  * debian/multipath-tools.postinst: restart multipathd when upgrading from lt
    0.8.8-1ubuntu2.2 (LP: #2035098)

multipath-tools (0.8.8-1ubuntu2.1) lunar; urgency=medium

  * d/p/0018-libmpathpersist-fix-command-keyword-ordering.patch:
    Fix mpathpersist command keyword ordering. (LP: #2026881)
  * Do not install init scripts (LP: #2000186)
    - d/multipath-tools.maintscript: remove /etc/init.d/multipath-tools
    - d/rules: do not call dh_installinit

 -- Mitchell Dzurick <email address hidden> Wed, 20 Sep 2023 05:18:54 -0700

Changed in multipath-tools (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Update Released

The verification of the Stable Release Update for multipath-tools has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package multipath-tools - 0.8.8-1ubuntu1.22.04.3

---------------
multipath-tools (0.8.8-1ubuntu1.22.04.3) jammy; urgency=medium

  * debian/multipath-tools.postinst: restart multipathd when upgrading from lt
    0.8.8-1ubuntu1.22.04.3 (LP: #2035098)

multipath-tools (0.8.8-1ubuntu1.22.04.2) jammy; urgency=medium

  [ Sergio Durigan Junior ]
  * d/p/0018-libmpathpersist-fix-command-keyword-ordering.patch:
    Fix mpathpersist command keyword ordering. (LP: #2026881)

  [ Mitchell Dzurick ]
  * Do not install init scripts (LP: #2000186)
    - d/multipath-tools.maintscript: remove /etc/init.d/multipath-tools
    - d/rules: do not call dh_installinit

 -- Mitchell Dzurick <email address hidden> Wed, 20 Sep 2023 08:05:06 -0700

Changed in multipath-tools (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.