[yakkety regression] does not grow partition any more
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When booting the current yakkety cloud images (I tested http://
/dev/vda1 2.0G 1.1G 902M 55% /
but "fdisk -l /dev/vda" actually shows a proper ~ 22 GB partition, as intended:
Disk /dev/vda: 22.2 GiB, 23836229632 bytes, 46555136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 74C0F76C-
Device Start End Sectors Size Type
/dev/vda1 227328 46555102 46327775 22.1G Linux filesystem
/dev/vda14 2048 10239 8192 4M BIOS boot
/dev/vda15 10240 227327 217088 106M EFI System
Relevant log entry from cloud-init-
2016-05-30 21:52:57,488 - util.py[WARNING]: Failed: growpart /dev/vda 1
Relevant log entries from cloud-init.log (full log attached):
May 30 21:52:57 ubuntu [CLOUDINIT] stages.py[DEBUG]: Running module growpart (<module 'cloudinit.
on3/dist-
May 30 21:52:57 ubuntu [CLOUDINIT] handlers.py[DEBUG]: start: init-network/
May 30 21:52:57 ubuntu [CLOUDINIT] helpers.py[DEBUG]: Running config-growpart using lock (<cloudinit.
May 30 21:52:57 ubuntu [CLOUDINIT] cc_growpart.
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '--help'] with allowed return codes [0] (shell=False, capture=True)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Reading from /proc/959/mountinfo (quiet=False)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Read 4334 bytes from /proc/959/mountinfo
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Reading from /sys/class/
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Read 2 bytes from /sys/class/
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Reading from /sys/devices/
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Read 6 bytes from /sys/devices/
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '--dry-run', '/dev/vda', '1'] with allowed return codes [0] (shell=False, capture=True)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['growpart', '/dev/vda', '1'] with allowed return codes [0] (shell=False, capture=True)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[WARNING]: Failed: growpart /dev/vda 1
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Failed: growpart /dev/vda 1#012Traceback (most recent call last):#012 File "/usr/lib/
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: resize_devices took 0.084 seconds
May 30 21:52:57 ubuntu [CLOUDINIT] cc_growpart.
May 30 21:52:57 ubuntu [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/
May 30 21:52:57 ubuntu [CLOUDINIT] stages.py[DEBUG]: Running module resizefs (<module 'cloudinit.
May 30 21:52:57 ubuntu [CLOUDINIT] handlers.py[DEBUG]: start: init-network/
May 30 21:52:57 ubuntu [CLOUDINIT] helpers.py[DEBUG]: Running config-resizefs using lock (<cloudinit.
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Reading from /proc/959/mountinfo (quiet=False)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Read 4334 bytes from /proc/959/mountinfo
May 30 21:52:57 ubuntu [CLOUDINIT] cc_resizefs.
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['running-
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['lxc-is-
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Reading from /proc/1/environ (quiet=False)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Read 152 bytes from /proc/1/environ
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Reading from /proc/self/status (quiet=False)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Read 889 bytes from /proc/self/status
May 30 21:52:57 ubuntu [CLOUDINIT] cc_resizefs.
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ('resize2fs', '/dev/vda1') with allowed return codes [0] (shell=False, capture=True)
May 30 21:52:57 ubuntu [CLOUDINIT] util.py[DEBUG]: Resizing took 0.012 seconds
May 30 21:52:57 ubuntu [CLOUDINIT] cc_resizefs.
May 30 21:52:57 ubuntu [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: cloud-init (not installed)
ProcVersionSign
Uname: Linux 4.4.0-23-generic x86_64
ApportVersion: 2.20.1-0ubuntu4
Architecture: amd64
CurrentDesktop: i3
Date: Mon May 30 23:58:57 2016
EcryptfsInUse: Yes
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Registry Administrators: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedbin/growpart (+1/-1)
no longer affects: | cloud-images |
To be precise, this can be reproduced easily with "adt-buildvm- ubuntu- cloud -r yakkety". This downloads the image, calls "qemu-img resize <image> +20G" (20G is the default value for --disk-size), and boots it.