Comment 4 for bug 1285197

Revision history for this message
Scott Moser (smoser) wrote :

Well, for the first time in quite a while, I saw this on a 20140407 image.
There were other things changed though, this system:
 * had a 120G root (versus normal ~10G)
 * is a power 8 host
 * had 4 cores not 2

relavent output (cleaned from /var/log/cloud-init.log):
2014-04-07 15:19:51,256 - util.py[WARNING]: Failed: growpart /dev/sda 1
2014-04-07 15:19:51,257 - util.py[DEBUG]: Failed: growpart /dev/sda 1
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cloudinit/config/cc_growpart.py", line 109, in resize
    util.subp(["growpart", diskdev, partnum])
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1539, in subp
    cmd=args)
ProcessExecutionError: Unexpected error while running command.
Command: ['growpart', '/dev/sda', '1']
Exit code: 2
Reason: -
Stdout:
  FAILED: disk=/dev/sda partition=1: failed to repartition
  Warning! Current disk size doesn't match that of the backup!
  Adjusting sizes to match, but subsequent problems are possible!
  Warning: The kernel is still using the old partition table.
  The new table will be used at the next reboot.
  The operation has completed successfully.
Stderr:
  failed [sgdisk_mod:4] sgdisk --move-second-header --delete=1
    --new=1:18432:251658206 --typecode=1:0FC63DAF-8483-4772-8E79-3D69D8477DE4
    --partition-guid=1:C0311AC8-8E4B-4FB1-AA6D-F0FD7B470DBF
    --change-name=1: /dev/sda
  Could not create partition 1 from 40532396646334464 to 0
  Could not change partition 1's type code to 0FC63DAF-8483-4772-8E79-3D69D8477DE4!
  Unable to set partition 1's name to ''!
  Error encountered; not saving changes.
  ***** WARNING: Resize failed, attempting to revert ******
  ***** Appears to have gone OK ****

(remember 'The operation has completed successfully' is the revert operation).