[Bug 552596] New: kpartx creates wrong device entry (cr_homep1 instead of loop5p1)
http://bugzilla.novell.com/show_bug.cgi?id=552596 Summary: kpartx creates wrong device entry (cr_homep1 instead of loop5p1) Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- I'm trying to use "kiwi" on 11.2 to create a 10.3 usb stick image using /usr/share/doc/packages/kiwi/examples/suse-10.3/suse-live-stick.readme ("oem type"). here kpartx creates a bogus device for the rootfs partition which causes kiwi (mke2fs) to fail: # kpartx -l /dev/loop5 cr_homep1 : 0 947772 /dev/loop5 63 which should output/create loop5p1 and not cr_homep1 ! details: kiwi fails when trying to create the rootfs: Nov-04 18:52:07 <1> : Creating ext3 root filesystem failed Nov-04 18:52:07 <3> : Couldn't create ext3 filesystem: mke2fs 1.41.9 (22-Aug-2009) mke2fs: No such file or directory while trying to determine filesystem size the log file shows that creating the empty disk file works fine, so does creating the partition using fdisk and losetup to attach the file to /dev/loop5 -- fdisk /dev/loop5 shows correct partitioning. then the kiwi log file shows Syncing disks. Nov-04 18:52:07 <1> : EXEC [/sbin/kpartx -a /dev/loop5 2>&1] done Nov-04 18:52:07 <1> : Creating ext3 root filesystem Nov-04 18:52:07 <1> : EXEC [/sbin/mke2fs -i 16384 -O resize_inode -T ext3 -j -F -N 41460 /dev/mapper/loop5p1 2>&1] failed Nov-04 18:52:07 <3> : Couldn't create ext3 filesystem: mke2fs 1.41.9 (22-Aug-2009) mke2fs: No such file or directory while trying to determine filesystem size failed because /dev/mapper/loop5p1 is missing! instead there is a /dev/mapper/cr_homep1 because of the following kpartx bahaviour: # kpartx -l /dev/loop5 cr_homep1 : 0 947772 /dev/loop5 63 which should output/create loop5p1 and not cr_homep1 ! I'm using a encrypted home partition which uses /dev/mapper/cr_home here is the full output of losetup/dmsetup: # losetup -a /dev/loop0: [fd06]:3072004 (/kiwi/iso/openSUSE-10.3-DVD-i386.iso) /dev/loop1: [fd06]:3072005 (/kiwi/iso/openSUSE-11.1-DVD-i586.iso) /dev/loop2: [fd06]:3072006 (/kiwi/iso/openSUSE-DVD-Build0339-i586.iso) /dev/loop3: [fd06]:3072002 (/kiwi/iso/openSUSE-11.0-DVD-i586.iso) /dev/loop4: [fd06]:3072003 (/kiwi/iso/openSUSE-11.1-DVD-x86_64.iso) /dev/loop5: [fd06]:6766598 (/kiwi/mystick/10.3-usb-result-oem/suse-10.3-live-stick.x86_64-*) # dmsetup ls system-root2 (253, 4) system-kiwi (253, 6) cr_home (253, 5) system-home (253, 0) cr_homep1 (253, 7) system-iscsi2 (253, 3) system-iscsi1 (253, 2) system-root (253, 1) what other data can I provide to understand and fix the kpartx problem ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=552596#c1 --- Comment #1 from Harald Koenig <koenig@linux.de> 2009-11-04 16:36:48 MST --- I just tried the same sequence with 11.1 (my notebook is dual boot 11.1 and 11.2 with shared /kiwi parition) : here kpartx works as expected: harald # /sbin/losetup -s -f /kiwi/mystick/10.3-usb-result-oem/suse-10.3-live-stick.x86_64-1.1.2.raw /dev/loop5 harald # kpartx -l /dev/loop5 loop5p1 : 0 947772 /dev/loop5 63 harald # kpartx -av /dev/loop5 add map loop5p1 (253:7): 0 947772 linear /dev/loop5 63 harald # ll /dev/mapper/loop5p1 brw-r----- 1 root disk 253, 7 Nov 5 00:35 /dev/mapper/loop5p1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596#c shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |hare@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c2 Dan Elder <delder@novacoast.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |delder@novacoast.com --- Comment #2 from Dan Elder <delder@novacoast.com> 2009-12-10 21:39:55 UTC --- I can confirm the same problem on 11.2 (kiwi-3.84-80.1.x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c Jiri Kosina <jkosina@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hare@novell.com AssignedTo|hare@novell.com |puzel@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c3 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |koenig@linux.de --- Comment #3 from Petr Uzel <puzel@novell.com> 2010-01-04 17:31:24 UTC --- It seems this bug is reproducible only if there are some active device-mapper maps. I see two issues: 1) bnc#568048 2) kpartx uses libdevmapper to get info about the loopdevice; this worked fine in 11.1 because bnc#568048 wasn't present there. To fix 2), I suggest following patch: -------- Index: multipath-tools-0.4.8/kpartx/kpartx.c =================================================================== --- multipath-tools-0.4.8.orig/kpartx/kpartx.c 2010-01-04 16:43:57.000000000 +0100 +++ multipath-tools-0.4.8/kpartx/kpartx.c 2010-01-04 16:49:00.000000000 +0100 @@ -309,7 +309,7 @@ main(int argc, char **argv){ off = find_devname_offset(device); - if (!loopdev) { + if (!loopdev && !is_loop_device(device)) { uuid = dm_mapuuid((unsigned int)MAJOR(buf.st_rdev), (unsigned int)MINOR(buf.st_rdev)); mapname = dm_mapname((unsigned int)MAJOR(buf.st_rdev), -------- kpartx packages with the above patch are available in [1], resp [2]. Harald, Don: could you please verify that the patch fixes kiwi for you? Hannes: Are you OK with the patch? The is_loop_device() function wasn't used anywhere-I think this is the correct place. [1] https://build.opensuse.org/project/show?project=home%3Apuzel%3Afixes%3A11.2 [2] http://download.opensuse.org/repositories/home:/puzel:/fixes:/11.2/openSUSE_... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c4 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfunk@funktronics.ca --- Comment #4 from Petr Uzel <puzel@novell.com> 2010-01-05 13:12:18 UTC --- *** Bug 548765 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=548765 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c5 --- Comment #5 from Arvin Schnell <aschnell@novell.com> 2010-02-12 15:47:13 UTC --- The packages from comment #3 do fix kiwi. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|koenig@linux.de |hare@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c6 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|hare@novell.com |maintenance@opensuse.org --- Comment #6 from Petr Uzel <puzel@novell.com> 2010-02-15 15:18:00 UTC --- Maintenance team: I think update is appropriate here. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c8 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:31222 --- Comment #8 from Swamp Workflow Management <swamp@suse.com> 2010-02-18 10:56:54 UTC --- The SWAMPID for this issue is 31222. Please submit the patch and patchinfo file using this ID. (https://swamp.suse.de/webswamp/wf/31222) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c9 Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|maintenance@opensuse.org | --- Comment #9 from Christian Dengler <cdengler@novell.com> 2010-02-18 10:57:14 UTC --- Be so kind and submit a patchinfo. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c10 --- Comment #10 from Petr Uzel <puzel@novell.com> 2010-02-18 12:48:08 UTC --- Patchinfo submitted, created request #32871 (only 11.2 is affected). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c11 --- Comment #11 from Christian Dengler <cdengler@novell.com> 2010-02-23 14:24:06 UTC --- I can't see the package. Was is successfully submitted? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c12 --- Comment #12 from Petr Uzel <puzel@novell.com> 2010-02-23 14:56:43 UTC --- It hasn't been accepted yet:
osc request show 32871 Request #32871:
submit: home:puzel:branches:OBS_Maintained:multipath-tools/multipath-tools.openSUSE_11.2(r2) -> openSUSE:11.2:Update:Test/multipath-tools Message: fix bnc#552596 [swamp#31222] State: new 2010-02-18T13:46:24 puzel Comment: None -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c13 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:31222 |maint:running:31222 | |maint:released:11.2:31223 --- Comment #13 from Swamp Workflow Management <swamp@suse.com> 2010-03-01 14:42:21 UTC --- Update released for: kpartx, kpartx-debuginfo, multipath-tools, multipath-tools-debuginfo, multipath-tools-debugsource Products: openSUSE 11.2 (debug, i586, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:31222 |. |maint:released:11.2:31223 | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c14 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #14 from Petr Uzel <puzel@novell.com> 2010-03-01 14:44:32 UTC --- Fixed -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552596 http://bugzilla.novell.com/show_bug.cgi?id=552596#c15 --- Comment #15 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (552596) was mentioned in https://build.opensuse.org/request/show/32871 11.2:Test / multipath-tools -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com