Description of problem:
growpart uses a now unsupported option to sfdisk. This option is --show-pt-geometry which was removed in the rewrite of sfdisk . This can be observed when booting the Fedora 22 TC7 Cloud Base image . cloud-init fails (look at journalctl output). The error can be recreated from the command line:
[root@t7 ~]# growpart --dry-run /dev/vda 1
failed [sfd_geom:1] sfdisk /dev/vda --show-pt-geometry
sfdisk: unrecognized option '--show-pt-geometry'
 - https://github.com/karelzak/util-linux/commit/1881390de25df8587b8fc281c451796f7d032dd3#diff-31d5cc325380dbdafe64d0e019846f12R20
 - https://kojipkgs.fedoraproject.org//work/tasks/7429/9097429/Fedora-Cloud-Base-20150227-22_Alpha_TC7.x86_64.qcow2
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Adding kzak and including his comments from mailing list:
The question is why growpart need information about geometry, always
when you need to work with geometry then you're doing something very
It seems like an attempt to copy disk PT in CHS compatible way. It's
unnecessary. It should be enough to use --dump and then restore
without CHS options on command line.
Proposed as a Blocker for 22-beta by Fedora user roshi using the blocker tracking app because:
This bug causes growroot to not work resulting in unused space in the volume which violates the following beta criterion: "Release blocking cloud images must be able to automatically utilize all available space on a supported volume."
clear +1 Beta blocker. If Alpha winds up slipping and we get a fix, could be Alpha NTH too.
Discussed at 2015-03-09 blocker review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2015-03-09/f22-blocker-review.2015-03-09-16.05.log.txt . Accepted as a blocker per criterion cited in comment #2.
*** Bug 1201229 has been marked as a duplicate of this bug. ***
cloud-utils-0.27-13.fc22 has been submitted as an update for Fedora 22.
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cloud-utils-0.27-13.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Beta TC6 should have been built with the fix for this (I included it in the TC6 compose request). Can you please check TC6 and see if it's fixed? Thanks!
(In reply to awilliam from comment #8)
> Beta TC6 should have been built with the fix for this (I included it in the
> TC6 compose request). Can you please check TC6 and see if it's fixed? Thanks!
I'll try to check this tomorrow.
Looks like TC6 failed for cloud base http://koji.fedoraproject.org/koji/taskinfo?taskID=9376828. roshi has said that TC7 is going tonight so I will test that when it comes out. I don't have access to my openstack instance right now so I'll be testing on AWS.
Looks like this works fine for TC8 :
util.py[DEBUG]: Running command ['growpart', '--dry-run', '/dev/vda', '1'] with allowed return codes  (shell=False, capture=True)
util.py[DEBUG]: Running command ['growpart', '/dev/vda', '1'] with allowed return codes  (shell=False, capture=True)
util.py[DEBUG]: resize_devices took 1.664 seconds
cc_growpart.py[INFO]: '/' resized: changed (/dev/vda, 1) from 3145728000 to 21473787904
 - https://kojipkgs.fedoraproject.org//work/tasks/8282/9418282/Fedora-Cloud-Base-22_Beta_TC8-20150405.x86_64.qcow2
The fix for this bug specifically was verified by multiple testers in TC8/RC1.
cloud-utils-0.27-13.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.