Bug 1012467
Summary: | Booting a <200MB image with a 1GB root disk: "Instance type's disk is too small for requested image" | ||
---|---|---|---|
Product: | [Community] RDO | Reporter: | Sandro Mathys <sandro> |
Component: | openstack-nova | Assignee: | RHOS Maint <rhos-maint> |
Status: | CLOSED NOTABUG | QA Contact: | Ami Jeain <ajeain> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | ndipanov, rbryant, xqueralt, yeylon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-18 23:03:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sandro Mathys
2013-09-26 14:02:57 UTC
Hi Sandro, I've just checked the Fedora 19 image and verified that it indeed has a virtual size of 2GB. Even though the disk physical size is only 200MB the real size of the disk (and any derivate disk) will be of 2GB. As glance doesn't understand the format of the image, it will still report the physical size although while creating the instance nova will notice that the size exceeds the one specified in the flavor (1GB) and fail. I suggest you to set the min_disk value to 2GB when importing that image to glance (to agree with the virtual size). If you feel brave enough and want to use that image on an instance with 1GB disk you can try to downsize the image by first resizing the filesystem and then the qcow disk. Xavier, thanks for investigating this. Figure you're right and while it's a discrepancy between Glance and Nova it probably can't be fixed, right? I just had a look at the kickstart file used to create the Fedora cloud image and indeed, it creates a 2048 MB partition while 1GB would suffice (it's <600MB expanded). Raising it with the Cloud SIG instead. Feel free to close this unless you think the discrepancy should and can be resolved. I think we can close this because as of now glance cannot guess the size of a qcow2 image unless it is set in the min_disk when uploading it. FWIW: F20 cloud images will come with a <=1GB partition (and auto-grow if more disk space is available). This way it will be possible to boot it with a 1GB root disk. |