[Bug 1619285] Re: cc_growpart fails on yakkety
** Changed in: cloud-utils Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
This bug was fixed in the package util-linux - 2.28.2-1ubuntu1 --- util-linux (2.28.2-1ubuntu1) yakkety; urgency=medium * Merge from Debian unstable. Remaining changes: - Regularly trim SSDs automatically (core-1311-ssd-trimming): + Add debian/fstrim-all.cron: Call fstrim --all. Installed as /etc/cron.weekly/fstrim. - Drop debian/hwclock.rules and hwclock.default, recent kernels sync the RTC automatically. - Add sulogin-fallback-static-sh.patch: Add support for /bin/static-sh as fallback if the regular shell fails to execute. Patch ported from sysvinit. (see LP #505887) - Add sulogin-lockedpwd.patch: Make sure file systems can be fixed on machines with locked root accounts (as Ubuntu does by default). Don't require --force for sulogin. - Drop debian/util-linux.preinst: Unconditionally deleting files is wrong, and dpkg will overwrite symlinks with real files anyway. - Drop the Breaks: cloud-utils, Ubuntu has a different cloud-utils packaging and this does not affect Ubuntu > 16.04 any more. - Add debian/util-linux.maintscript to clean upstart jobs on upgrade. This needs to be kept until after 18.04 LTS. * The new upstream version reverts the sfdisk exit code change from 2.28.1. (LP: #1619285) util-linux (2.28.2-1) unstable; urgency=medium * debian/gbp.conf: set upstream-vcs-tag for import-orig * New upstream release. - among other things includes fixes for HPPA testsuite failures (Closes: #827225) * Drop d/p/tests-Fix-fdisk-id-and-fdisk-mbr-nondos-mode-on-Sparc.patch - now include in upstream release. -- Martin PittMon, 12 Sep 2016 23:22:44 +0200 ** Changed in: util-linux (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
** Changed in: util-linux (Ubuntu) Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
This bug was fixed in the package cloud-utils - 0.29-0ubuntu3 --- cloud-utils (0.29-0ubuntu3) yakkety; urgency=medium * debian/control: add Suggests for mtools to cloud-image-utils. * debian/tests: add dep-8 auto package test. * sync to trunk at revno 302 * ubuntu-cloudimg-query: fix xenial default to be ebs-ssd as traditional ebs are no longer available. (LP: #1593451) * mount-image-callback: fix shortopt parsing (LP: #1604011) * growpart: improved error messages on failure. * mount-image-callback: add -S short flag for --system-mounts * growpart: ignore sfdisk failure in 2.28.1 when due to reread failing (LP: #1619285) -- Scott MoserThu, 01 Sep 2016 16:07:51 -0400 ** Changed in: cloud-utils (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
** Changed in: cloud-utils (Ubuntu) Status: Confirmed => Fix Committed ** No longer affects: cloud-init (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
Martin, I uploaded just the workaround. As shown in that commit message, the exit values are not reliable. Long ago I'd added the workaround, so the change here was really just to extend the list of possible output messages to scrape for. Not great, but will work. I also added a autopackage test, so something like this will hopefully be caught next time. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
** Branch linked: lp:~smoser/ubuntu/yakkety/cloud-utils/pkg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
@Scott, thanks for drilling this down! If that patch got reverted in upstream master, is there a reason to not do the same in the current yakkety package, instead of working around it in cloud-init? Or would checking the output message be more robust as the exit code is effectively broken? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
** Also affects: cloud-utils Importance: Undecided Status: New ** Changed in: cloud-utils Status: New => Fix Committed ** Changed in: cloud-utils Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
** Branch linked: lp:cloud-utils -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-utils/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
I'm going to fix this in cloud-utils (growpart) in the way that we'd addressed this issue in the past: scraping text output of the command ran with LANG=C. Not the best fix in the world. What happened that caused this was that this commit is in 2.28.1: https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=e0d30ef4c and then is subsequently reverted in trunk at https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=78e7f78896f2 I've sent a mail to upstream development list (Subject: request for sfdisk --no-blkrrpart) asking for a flag to tell sfdisk not to call blkrrpart, and then in the future we would just use that. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
** Also affects: cloud-utils (Ubuntu) Importance: Undecided Status: New ** Changed in: cloud-utils (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
I launched an instance that had an older util-linux (2.28-5ubuntu2). cp /sbin/sfdisk /sbin/sfdisk.old mkdir /tmp/bin ln -s /sbin/sfdisk.old /tmp/bin sudo apt-get install util-linux Then, i can see failure with the 'test-growpart' script at [1] sudo ./test-growpart but this works as expected sudo PATH=/tmp/bin:$PATH ./test-growpart So something in util-linux definitely changed behavior and broke this. I suspect this is common code to the kpartx failure in bug 1618525. [1] http://bazaar.launchpad.net/~cloud-utils-dev/cloud- utils/trunk/view/head:/test/test-growpart ** Also affects: util-linux (Ubuntu) Importance: Undecided Status: New ** Changed in: util-linux (Ubuntu) Status: New => Confirmed ** Changed in: util-linux (Ubuntu) Importance: Undecided => Critical ** Description changed: Hi, cc_growpart fails on ppc64el, with the following messages : Sep 1 12:06:58 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '--dry-run', '/dev/vda', '1'] with allowed return codes [0] (shell=False, capture=True) Sep 1 12:06:58 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '/dev/vda', '1'] with allowed return codes [0] (shell=False, capture=True) Sep 1 12:06:58 ubuntu [CLOUDINIT] util.py[WARNING]: Failed: growpart /dev/vda 1 Sep 1 12:06:58 ubuntu [CLOUDINIT] util.py[DEBUG]: Failed: growpart /dev/vda 1#012Traceback (most recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/config/cc_growpart.py", line 109, in resize#012util.subp(["growpart", diskdev, partnum])#012 File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1832, in subp#012 cmd=args)#012cloudinit.util.ProcessExecutionError: Unexpected error while running command.#012Command: ['growpart', '/dev/vda', '1']#012Exit code: 2#012Reason: -#012Stdout: 'FAILED: failed to resize\n'#012Stderr: "attempt to resize /dev/vda failed. sfdisk output below:\n| GPT PMBR size mismatch (4612095 != 41943039) will be corrected by w(rite).\n| Backup files:\n| PMBR (offset 0, size 512): /tmp/growpart.wr7bvu/orig.save-vda-0x.bak\n| GPT Header (offset 512, size 512): /tmp/growpart.wr7bvu/orig.save-vda-0x0200.bak\n| GPT Entries (offset 1024, size 16384): /tmp/growpart.wr7bvu/orig.save-vda-0x0400.bak \n| \n| Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 sectors\n| Units: sectors of 1 * 512 = 512 bytes\n| Sector size (logical/physical): 512 bytes / 512 bytes\n| I/O size (minimum/optimal): 512 bytes / 512 bytes\n| Disklabel type: gpt\n| Disk identifier: 5AF0CCE2-DDF5-4419-B991-213EE1F1B873\n| \n| Old situation:\n| \n| Device Start End Sectors Size Type\n| /dev/vda1 18432 4612062 4593631 2.2G Linux filesystem\n| /dev/vda2 2048 18431 163848M PowerPC PReP boot\n| \n| Partition table entries are not in disk order.\n| \n| >>> Script header accepted.\n| >>> Script header accepted.\n| >>> Script header accepted.\n| >>> Script header accepted.\n| >>> Script header accepted.\n| >>> Created a new GPT disklabel (GUID: 5AF0CCE2-DDF5-4419-B991-213EE1F1B873).\n| Created a new partition 1 of type 'Linux filesystem' and of size 20 GiB.\n| /dev/vda2: Created a new partition 2 of type 'PowerPC PReP boot' and of size 8 MiB.\n| /dev/vda3: \n| New situation:\n| \n| Device Start End Sectors Size Type\n| /dev/vda1 18432 41943006 41924575 20G Linux filesystem\n| /dev/vda2 20481843116384 8M PowerPC PReP boot\n| \n| Partition table entries are not in disk order.\n| \n| The partition table has been altered.\n| Calling ioctl() to re-read partition table.\n| Re-reading the partition table failed.: Device or resource busy\n| The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).\n* WARNING: Resize failed, attempting to revert **\n512+0 records in\n512+0 records out\n512 bytes copied, 0.000671621 s, 762 kB/s\n512+0 records in\n512+0 records out\n512 bytes copied, 0.00148717 s, 344 kB/s\n16384+0 records in\n16384+0 records out\n16384 bytes (16 kB, 16 KiB) copied, 0.0370011 s, 443 kB/s\n* Appears to have gone OK \n" Sep 1 12:06:58 ubuntu [CLOUDINIT] util.py[DEBUG]: resize_devices took 0.729 seconds Running this command once the system is booted up appears to give the same output : ubuntu@axino-test:~$ sudo growpart /dev/vda 1 attempt to resize /dev/vda failed. sfdisk output below: | GPT PMBR size mismatch (4612095 != 41943039) will be corrected by w(rite). | Backup files: | PMBR (offset 0, size 512): /tmp/growpart.Je0SXE/orig.save-vda-0x.bak | GPT Header (offset 512, size 512): /tmp/growpart.Je0SXE/orig.save-vda-0x0200.bak | GPT Entries (offset 1024, size 16384): /tmp/growpart.Je0SXE/orig.save-vda-0x0400.bak | | Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 sectors | Units: sectors of 1 * 512 = 512 bytes | Sector
[Bug 1619285] Re: cc_growpart fails on yakkety
Possibly/likely related bug, or even a duplicate: bug 1618525 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
Confirmed in local qemu. I built an image with autopkgtest-buildvm- ubuntu-cloud (which downloads the current yakkety image and boots it and does some initialization), same error there. So not related to Scalingstack. ** Changed in: cloud-init (Ubuntu) Importance: Critical => Undecided ** Changed in: cloud-init (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619285] Re: cc_growpart fails on yakkety
this breaks all autopkg tests in yakkety which need more than the two initial 2GB ** Changed in: cloud-init (Ubuntu) Importance: Undecided => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619285 Title: cc_growpart fails on yakkety To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1619285/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs