Activity log for bug #1597522

Date Who What changed Old value New value Message
2016-06-29 21:13:16 Wesley Wiedenmeier bug added bug
2016-06-29 21:18:49 Wesley Wiedenmeier curtin: assignee Wesley Wiedenmeier (wesley-wiedenmeier)
2016-06-29 21:19:05 Wesley Wiedenmeier curtin: status New In Progress
2016-06-29 21:28:23 Ryan Harper curtin: importance Undecided High
2016-06-29 22:53:14 Wesley Wiedenmeier branch linked lp:~wesley-wiedenmeier/curtin/1597522
2016-08-01 17:10:48 Launchpad Janitor branch linked lp:curtin
2016-08-01 17:24:53 Wesley Wiedenmeier curtin: status In Progress Fix Committed
2016-09-29 18:05:15 Launchpad Janitor branch linked lp:~smoser/ubuntu/yakkety/curtin/pkg
2016-10-03 18:52:23 Launchpad Janitor branch linked lp:~raharper/ubuntu/xenial/curtin/pkg-sru-revno425
2016-10-03 21:37:30 Ryan Harper description During format handling, curtin detects the underlying block size of the disk and sets the filesystem block size accordingly. In order to properly handle a bug in mkfs.vfat, curtin adds the flag '-s 1'. However, curtin adds this flag to all disk format commands, not just to commands using 'mkfs.vfat'. This can lead to unexpected behavior with some formatting tools, and can cause installation to halt with others. For example, the mkfs.btrfs utility understands '-s' to mean sectorsize, so when curtin installs to an advanced format disk and storage config includes a btrfs formatted filesystem, curtin will create a filesystem that uses 1 byte sectors. This will greatly harm filesystem performance. For xfs volumes, this means that installation will fail completely, as the sectorsize attribute for xfs volumes must be specified in the format '-s size=512', so '-s 1' will cause mkfs.xfs to fail. Fortunately, this does not affect mkfs.ext* because these tools seem to silently ignore the '-s' flag, so most users likely have not been affected. [Impact] * curtin passes wrong args to mkfs when making filesystem on advanced format disks (4k sector size) Curtin has been modified to only pass the '-s 1' sector-size flag to the vfat formatting tools. Curtin has been updated to specify the correct sector-size flags and values to other formatting utilities that support such settings. [Test Case] * Install proposed curtin package and attempt to format a disk with xfs filesystem using 4K logical blocksize for the disk. PASS: Ubuntu successfully installs with xfs filesystem on top of a 4k Disk FAIL: Ubuntu fails to install with xfs filesystem on 4k disk. [Regression Potential] * Low; current users expecting xfs on 4k disks were blocked without this fix. [Original Description] During format handling, curtin detects the underlying block size of the disk and sets the filesystem block size accordingly. In order to properly handle a bug in mkfs.vfat, curtin adds the flag '-s 1'. However, curtin adds this flag to all disk format commands, not just to commands using 'mkfs.vfat'. This can lead to unexpected behavior with some formatting tools, and can cause installation to halt with others. For example, the mkfs.btrfs utility understands '-s' to mean sectorsize, so when curtin installs to an advanced format disk and storage config includes a btrfs formatted filesystem, curtin will create a filesystem that uses 1 byte sectors. This will greatly harm filesystem performance. For xfs volumes, this means that installation will fail completely, as the sectorsize attribute for xfs volumes must be specified in the format '-s size=512', so '-s 1' will cause mkfs.xfs to fail. Fortunately, this does not affect mkfs.ext* because these tools seem to silently ignore the '-s' flag, so most users likely have not been affected.
2016-10-05 15:39:36 Andy Whitcroft bug added subscriber Ubuntu Stable Release Updates Team
2016-10-05 15:39:40 Andy Whitcroft bug added subscriber SRU Verification
2016-10-05 15:39:43 Andy Whitcroft tags verification-needed
2016-10-05 15:45:27 Andy Whitcroft bug task added curtin (Ubuntu)
2016-10-05 15:45:37 Andy Whitcroft nominated for series Ubuntu Xenial
2016-10-05 15:45:37 Andy Whitcroft bug task added curtin (Ubuntu Xenial)
2016-10-05 15:50:19 Andy Whitcroft curtin (Ubuntu): status New Fix Released
2016-10-05 15:50:22 Andy Whitcroft curtin (Ubuntu Xenial): status New Fix Committed
2016-10-06 22:55:12 Wesley Wiedenmeier attachment added conf.yaml https://bugs.launchpad.net/curtin/+bug/1597522/+attachment/4756350/+files/conf.yaml
2016-10-06 22:55:47 Wesley Wiedenmeier tags verification-needed verification-done
2016-10-17 03:58:02 Launchpad Janitor curtin (Ubuntu Xenial): status Fix Committed Fix Released
2016-10-17 03:58:44 Martin Pitt removed subscriber Ubuntu Stable Release Updates Team
2017-12-15 22:10:41 Scott Moser curtin: status Fix Committed Fix Released