Activity log for bug #1012946

Date Who What changed Old value New value Message
2012-06-14 02:57:31 Ludovico Cavedon bug added bug
2012-06-14 02:58:36 Ludovico Cavedon tags apport-collected precise
2012-06-14 02:58:37 Ludovico Cavedon description # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise # apt-cache policy parted parted: Installed: 2.3-8ubuntu5 Candidate: 2.3-8ubuntu5 Version table: *** 2.3-8ubuntu5 0 500 http://mirrors.service.softlayer.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status # lvcreate -n test -L 10M matrix Rounding up size to full physical extent 12.00 MiB Logical volume "test" created # parted --script -- /dev/matrix/test mklabel msdos # parted --script -- /dev/matrix/test mkpart primary ext4 1 2 # parted --script -- /dev/matrix/test mkpart primary ext4 3 4 device-mapper: create ioctl failed: Device or resource busy Error: Failed to add partition 1 (No such device or address) # ls /dev/mapper/matrix-test* /dev/mapper/matrix-test /dev/mapper/matrix-test1 If I remove rebuild parted without the dm-part-sync.patch (actually, also without dmraid.patch and udevadm-settle.patch, otherwise it would not build), it works properly: root@matrix:~# lvcreate -n test -L 10M matrix Rounding up size to full physical extent 12.00 MiB Logical volume "test" created root@matrix:~# parted --script -- /dev/matrix/test mklabel msdos root@matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 1 2 Error: msdos disk labels do not support partition names. root@matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 3 4 Error: msdos disk labels do not support partition names. Error: msdos disk labels do not support partition names. root@matrix:~# ls /dev/mapper/matrix-test* /dev/mapper/matrix-test /dev/mapper/matrix-test1 /dev/mapper/matrix-test2 # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise # apt-cache policy parted parted: Installed: 2.3-8ubuntu5 Candidate: 2.3-8ubuntu5 Version table: *** 2.3-8ubuntu5 0 500 http://mirrors.service.softlayer.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status # lvcreate -n test -L 10M matrix Rounding up size to full physical extent 12.00 MiB Logical volume "test" created # parted --script -- /dev/matrix/test mklabel msdos # parted --script -- /dev/matrix/test mkpart primary ext4 1 2 # parted --script -- /dev/matrix/test mkpart primary ext4 3 4 device-mapper: create ioctl failed: Device or resource busy Error: Failed to add partition 1 (No such device or address) # ls /dev/mapper/matrix-test* /dev/mapper/matrix-test /dev/mapper/matrix-test1 If I remove rebuild parted without the dm-part-sync.patch (actually, also without dmraid.patch and udevadm-settle.patch, otherwise it would not build), it works properly: root@matrix:~# lvcreate -n test -L 10M matrix Rounding up size to full physical extent 12.00 MiB Logical volume "test" created root@matrix:~# parted --script -- /dev/matrix/test mklabel msdos root@matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 1 2 Error: msdos disk labels do not support partition names. root@matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 3 4 Error: msdos disk labels do not support partition names. Error: msdos disk labels do not support partition names. root@matrix:~# ls /dev/mapper/matrix-test* /dev/mapper/matrix-test /dev/mapper/matrix-test1 /dev/mapper/matrix-test2 --- ApportVersion: 2.0.1-0ubuntu8 Architecture: amd64 DistroRelease: Ubuntu 12.04 Package: parted 2.3-8ubuntu5 PackageArchitecture: amd64 ProcEnviron: TERM=xterm LANG=en_US SHELL=/bin/bash ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16 Tags: precise Uname: Linux 3.2.0-24-generic x86_64 UpgradeStatus: Upgraded to precise on 2012-06-13 (0 days ago) UserGroups:
2012-06-14 02:58:38 Ludovico Cavedon attachment added Dependencies.txt https://bugs.launchpad.net/bugs/1012946/+attachment/3188711/+files/Dependencies.txt
2012-06-14 03:00:57 Ludovico Cavedon summary dm-part-sync.patch breaks creating multiple partition on a LVM volume dm-part-sync.patch breaks creating multiple partitions on a LVM volume
2012-06-26 02:25:00 Phillip Susi nominated for series Ubuntu Precise
2012-06-26 02:34:06 Phillip Susi parted (Ubuntu): importance Undecided High
2012-06-26 02:34:06 Phillip Susi parted (Ubuntu): status New In Progress
2012-06-26 02:34:30 Phillip Susi tags apport-collected precise apport-collected precise regression-release
2012-06-26 02:35:19 Phillip Susi branch linked lp:~psusi/ubuntu/quantal/parted/fix-dmsync
2012-06-26 02:46:34 Micah Gersten bug task added parted (Ubuntu Precise)
2012-06-26 02:46:59 Micah Gersten nominated for series Ubuntu Quantal
2012-06-26 02:46:59 Micah Gersten bug task added parted (Ubuntu Quantal)
2012-06-26 02:49:41 Micah Gersten tags apport-collected precise regression-release apport-collected precise regression-release rls-q-incoming
2012-06-26 02:49:54 Micah Gersten tags apport-collected precise regression-release rls-q-incoming apport-collected precise quantal regression-release rls-q-incoming
2012-06-26 02:57:11 Phillip Susi parted (Ubuntu Precise): status New In Progress
2012-06-26 02:57:19 Phillip Susi parted (Ubuntu Precise): importance Undecided High
2012-06-26 02:58:16 Phillip Susi branch linked lp:~psusi/ubuntu/precise/parted/fix-dmsync
2012-06-26 03:09:45 Phillip Susi parted (Ubuntu Precise): milestone ubuntu-12.04.1
2012-06-26 16:15:53 Brian Murray parted (Ubuntu Quantal): assignee Canonical Foundations Team (canonical-foundations)
2012-06-26 16:16:16 Brian Murray tags apport-collected precise quantal regression-release rls-q-incoming apport-collected precise quantal regression-release
2012-07-12 21:21:16 Stéphane Graber parted (Ubuntu Precise): status In Progress Triaged
2012-07-12 21:23:19 Stéphane Graber parted (Ubuntu Precise): status Triaged In Progress
2012-07-12 21:23:28 Stéphane Graber parted (Ubuntu Precise): assignee Canonical Foundations Team (canonical-foundations)
2012-07-17 15:17:54 Phillip Susi description # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise # apt-cache policy parted parted: Installed: 2.3-8ubuntu5 Candidate: 2.3-8ubuntu5 Version table: *** 2.3-8ubuntu5 0 500 http://mirrors.service.softlayer.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status # lvcreate -n test -L 10M matrix Rounding up size to full physical extent 12.00 MiB Logical volume "test" created # parted --script -- /dev/matrix/test mklabel msdos # parted --script -- /dev/matrix/test mkpart primary ext4 1 2 # parted --script -- /dev/matrix/test mkpart primary ext4 3 4 device-mapper: create ioctl failed: Device or resource busy Error: Failed to add partition 1 (No such device or address) # ls /dev/mapper/matrix-test* /dev/mapper/matrix-test /dev/mapper/matrix-test1 If I remove rebuild parted without the dm-part-sync.patch (actually, also without dmraid.patch and udevadm-settle.patch, otherwise it would not build), it works properly: root@matrix:~# lvcreate -n test -L 10M matrix Rounding up size to full physical extent 12.00 MiB Logical volume "test" created root@matrix:~# parted --script -- /dev/matrix/test mklabel msdos root@matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 1 2 Error: msdos disk labels do not support partition names. root@matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 3 4 Error: msdos disk labels do not support partition names. Error: msdos disk labels do not support partition names. root@matrix:~# ls /dev/mapper/matrix-test* /dev/mapper/matrix-test /dev/mapper/matrix-test1 /dev/mapper/matrix-test2 --- ApportVersion: 2.0.1-0ubuntu8 Architecture: amd64 DistroRelease: Ubuntu 12.04 Package: parted 2.3-8ubuntu5 PackageArchitecture: amd64 ProcEnviron: TERM=xterm LANG=en_US SHELL=/bin/bash ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16 Tags: precise Uname: Linux 3.2.0-24-generic x86_64 UpgradeStatus: Upgraded to precise on 2012-06-13 (0 days ago) UserGroups: [IMPACT] The patch dm-part-sync.patch, added during the precise development cycle, caused a regression wherein users are unable to use parted to manipulate partitions contained within an LVM logical volume under either of two conditions: 1) You specify the "disk" using the /dev/VG/LV symlink rather than /dev/mapper/vg-lv 2) There is more than one partition within the "disk" In addition to LVM, this should also apply to dmraid disks. The first problem is fixed by looking up the canonical /dev/mapper/ device name of the disk, and using that as the base name when building the names of the partition devices. The second problem is fixed by assuming that dm disks can hold MAX_NUM_PARTS partitions, rather than looking up what the kernel reports in the sysfs ext_range attribute, which is just one. [TESTCASE] # lvcreate -n test -L 10M matrix   Rounding up size to full physical extent 12.00 MiB   Logical volume "test" created # parted --script -- /dev/matrix/test mklabel msdos # parted --script -- /dev/matrix/test mkpart primary ext4 1 2 # parted --script -- /dev/matrix/test mkpart primary ext4 3 4 device-mapper: create ioctl failed: Device or resource busy Error: Failed to add partition 1 (No such device or address) # ls /dev/mapper/matrix-test* /dev/mapper/matrix-test /dev/mapper/matrix-test1 [Regression Potential] The changes are unlikely to impact anything other than using parted on dm devices, which is essentially broken in its current state.
2012-07-17 15:20:14 Launchpad Janitor parted (Ubuntu Quantal): status In Progress Fix Released
2012-07-17 15:48:49 Launchpad Janitor branch linked lp:ubuntu/parted
2012-07-19 19:06:35 Bryce Harrington parted (Ubuntu Precise): status In Progress Fix Committed
2012-07-19 19:12:06 Bryce Harrington bug added subscriber Ubuntu Stable Release Updates Team
2012-07-21 13:08:04 Stéphane Graber parted (Ubuntu Precise): status Fix Committed In Progress
2012-08-01 19:05:36 Clint Byrum parted (Ubuntu Precise): status In Progress Fix Committed
2012-08-01 19:05:40 Clint Byrum bug added subscriber SRU Verification
2012-08-01 19:05:43 Clint Byrum tags apport-collected precise quantal regression-release apport-collected precise quantal regression-release verification-needed
2012-08-01 19:50:35 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/precise/parted/precise-proposed
2012-08-26 02:04:31 Stéphane Graber parted (Ubuntu Precise): milestone ubuntu-12.04.1 ubuntu-12.04.2
2012-10-15 08:11:56 lhotari bug added subscriber lhotari
2012-10-16 19:17:28 Phillip Susi tags apport-collected precise quantal regression-release verification-needed apport-collected precise quantal regression-release verification-done
2012-10-18 08:04:09 Colin Watson removed subscriber Ubuntu Stable Release Updates Team
2012-10-18 08:04:16 Launchpad Janitor parted (Ubuntu Precise): status Fix Committed Fix Released