[Bug 1037533] New: Latest kpartx (0.6.2+suse20170412.35e16a42-2.4.1) fails to delete partition mappings
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Bug ID: 1037533 Summary: Latest kpartx (0.6.2+suse20170412.35e16a42-2.4.1) fails to delete partition mappings Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: aduffeck@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- After the latest kpartx update in 42.2 our script fails because kpartx fails to clean up properly. Here are some logs showing the problem and that downgrading resolves that issue: ee5a552e78fc:/opt/bosh # losetup -a /dev/loop0: [2054]:1442632 (/var/lib/docker/devicemapper/devicemapper/data) /dev/loop1: [2054]:1442633 (/var/lib/docker/devicemapper/devicemapper/metadata) /dev/loop2: [65025]:433394 (/mnt/stemcells/openstack/kvm/opensuse/work/work/openstack-kvm-opensuse.raw) /dev/loop3: [65025]:433394 (/mnt/stemcells/openstack/kvm/opensuse/work/work/openstack-kvm-opensuse.raw) /dev/loop4: [65025]:433394 (/mnt/stemcells/openstack/kvm/opensuse/work/work/openstack-kvm-opensuse.raw) ee5a552e78fc:/opt/bosh # kpartx -dv /dev/loop4 device-mapper: table ioctl on loop4 failed: No such device or address ee5a552e78fc:/opt/bosh # zypper se -s kpartx Loading repository data... Reading installed packages... z S | Name | Type | Version | Arch | Repository --+--------+---------+-----------------------------------+--------+----------- i | kpartx | package | 0.6.2+suse20170412.35e16a42-2.4.1 | x86_64 | OSS Update v | kpartx | package | 0.6.2+suse20161025.b80f406-1.1 | x86_64 | OSS ee5a552e78fc:/opt/bosh # zypper in --oldpackage kpartx=0.6.2+suse20161025.b80f406-1.1 Loading repository data... Reading installed packages... Resolving package dependencies... The following package is going to be downgraded: kpartx 1 package to downgrade. Overall download size: 47.9 KiB. Already cached: 0 B. After the operation, 8.0 B will be freed. Continue? [y/n/...? shows all options] (y): Retrieving package kpartx-0.6.2+suse20161025.b80f406-1.1.x86_64 (1/1), 47.9 KiB ( 43.7 KiB unpacked) Retrieving: kpartx-0.6.2+suse20161025.b80f406-1.1.x86_64.rpm ...........................................................................................................................................................................................................[done] Checking for file conflicts: ...........................................................................................................................................................................................................................................[done] (1/1) Installing: kpartx-0.6.2+suse20161025.b80f406-1.1.x86_64 .........................................................................................................................................................................................................[done] ee5a552e78fc:/opt/bosh # kpartx -dv /dev/loop4 del devmap : loop4p1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Andre Duffeck <aduffeck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ms@suse.com Assignee|bnc-team-screening@forge.pr |hare@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Hannes Reinecke <hare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|hare@suse.com |martin.wilck@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c2 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |IN_PROGRESS --- Comment #2 from Martin Wilck <martin.wilck@suse.com> --- Bug confirmed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c3 --- Comment #3 from Martin Wilck <martin.wilck@suse.com> --- Created attachment 723796 --> http://bugzilla.suse.com/attachment.cgi?id=723796&action=edit kpartx: avoid ioctl error for loop devices -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c4 --- Comment #4 from Martin Wilck <martin.wilck@suse.com> --- Patch from comment 3 avoids the error message, but is not sufficient yet. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c5 Hannes Reinecke <hare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hare@suse.com --- Comment #5 from Hannes Reinecke <hare@suse.com> --- Created attachment 723807 --> http://bugzilla.suse.com/attachment.cgi?id=723807&action=edit 0001-kpartx-only-check-for-no_partitions-feature-on-dm.patch kpartx: only check for no_partitions feature on dm devices -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c6 --- Comment #6 from Hannes Reinecke <hare@suse.com> --- The above patch fixed this issue on my system. Please validate. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c7 --- Comment #7 from Martin Wilck <martin.wilck@suse.com> --- The patch from comment 5 (which is basically equivalent to my patch) fixes the ioctl error but not the fact that partitions aren't deleted on non-dm devices such as loop devices. Getting this right is a bit more involved, and there are corner cases to look at. I have a patch series almost ready, please wait a bit. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c8 --- Comment #8 from Martin Wilck <martin.wilck@suse.com> --- Patch series submitted upstream, SLE12-SP2 series is here: https://github.com/openSUSE/multipath-tools/pull/28 Binaries: http://beta.suse.com/private/mwilck/bsc1037533 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c9 --- Comment #9 from Martin Wilck <martin.wilck@suse.com> --- See also bug 1033541, where Hannes worked on a a similar issue for SLES12 SP2. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maint-coord@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c10 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aduffeck@suse.com, | |lnussel@suse.com Flags| |needinfo?(aduffeck@suse.com | |) --- Comment #10 from Martin Wilck <martin.wilck@suse.com> --- I've submitted an updated version of the patch set for kpartx for SLES12 SP2. Commit ID is 530203d. https://github.com/openSUSE/multipath-tools/commits/sles12-sp2 Changelog: - Update to version 0.6.2+suse20170606.530203d5: backported kpartx fixes from upstream (bsc#1037533, bsc#1033541) * kpartx: test-kpartx: new unit test program * kpartx: avoid ioctl error for loop devices * kpartx: remove is_loop_device * kpartx: relax and improve UUID check in dm_compare_uuid * kpartx: dm_remove_partmaps: support non-dm devices * kpartx: dm_devn: return error for non-existent device * kpartx: don't treat multi-linear mappings as partitions * kpartx: use partition UUID for non-DM devices * kpartx: use absolute path for regular files * kpartx: find_loop_by_file: use sysfs Maintenance request: https://build.suse.de/request/show/133754 http://download.suse.de/ibs/home:/mwilck:/branches:/SUSE:/SLE-12-SP2:/Update... Andre, please verify. Ludwig, Andre needs this urgently for Leap 42.2; please advise whether we have an option to publish this update quickly fore Leap. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| maint:planned:update |ibs:running:4677:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (1037533) was mentioned in https://build.opensuse.org/request/show/505575 Factory / multipath-tools -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c13 --- Comment #13 from Martin Wilck <martin.wilck@suse.com> --- The kpartx patch series, it seems, will not make it into SLE12-SP3 GA. We're heading for an early maintenance update now. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c17 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfehlig@suse.com --- Comment #17 from Martin Wilck <martin.wilck@suse.com> --- *** Bug 1052852 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c18 --- Comment #18 from Martin Wilck <martin.wilck@suse.com> --- Preparing maintenance submission for SLE12-SP2 with the updated kpartx patches from upstream and SP3. QA: The src package of multipath-tools contains a test program for this functionality (test-kpartx). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:4677:moderate |ibs:running:4677:moderate | |ibs:running:5659:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c21 --- Comment #21 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2018:0034-1: An update that has 7 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1033541,1037533,1047180,1053515,1055635,1055638,1066189 CVE References: Sources used: SUSE Linux Enterprise Software Development Kit 12-SP2 (src): multipath-tools-0.6.2+suse20170912.f76643c6ada3-71.13.4 SUSE Linux Enterprise Server for Raspberry Pi 12-SP2 (src): multipath-tools-0.6.2+suse20170912.f76643c6ada3-71.13.4 SUSE Linux Enterprise Server 12-SP2 (src): multipath-tools-0.6.2+suse20170912.f76643c6ada3-71.13.4 SUSE Linux Enterprise Desktop 12-SP2 (src): multipath-tools-0.6.2+suse20170912.f76643c6ada3-71.13.4 OpenStack Cloud Magnum Orchestration 7 (src): multipath-tools-0.6.2+suse20170912.f76643c6ada3-71.13.4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:4677:moderate |ibs:running:5659:moderate |ibs:running:5659:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:5659:moderate |ibs:running:5659:moderate | |obs:running:7642:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c23 --- Comment #23 from Martin Wilck <martin.wilck@suse.com> --- Sorry, this is Leap. The SLE12-SP2 maintenance update will be forwarded automatically and should be available soon. Status can be monitored here: https://build.opensuse.org/request/show/562337 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:5659:moderate |ibs:running:5659:moderate |obs:running:7642:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c24 --- Comment #24 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-RU-2018:0062-1: An update that has 7 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1033541,1037533,1047180,1053515,1055635,1055638,1066189 CVE References: Sources used: openSUSE Leap 42.2 (src): multipath-tools-0.6.2+suse20170912.f76643c6ada3-2.7.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c25 --- Comment #25 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2018:0283-1: An update that has 16 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1033541,1037533,1038865,1043027,1045111,1046092,1047180,1049515,1053515,1058504,1058539,1060413,1063639,1063642,1063697,1063698 CVE References: Sources used: SUSE Linux Enterprise Software Development Kit 12-SP3 (src): multipath-tools-0.7.1+71+suse.632dbce970c0-2.6.15, rdma-core-14-8.11.1 SUSE Linux Enterprise Server 12-SP3 (src): multipath-tools-0.7.1+71+suse.632dbce970c0-2.6.15, rdma-core-14-8.11.1 SUSE Linux Enterprise Desktop 12-SP3 (src): multipath-tools-0.7.1+71+suse.632dbce970c0-2.6.15, rdma-core-14-8.11.1 SUSE CaaS Platform ALL (src): rdma-core-14-8.11.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:5659:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| |obs:running:7736:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 http://bugzilla.suse.com/show_bug.cgi?id=1037533#c26 --- Comment #26 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-RU-2018:0327-1: An update that has 16 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1033541,1037533,1038865,1043027,1045111,1046092,1047180,1049515,1053515,1058504,1058539,1060413,1063639,1063642,1063697,1063698 CVE References: Sources used: openSUSE Leap 42.3 (src): multipath-tools-0.7.1+71+suse.632dbce970c0-6.1, rdma-core-14-8.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1037533 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|obs:running:7736:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com