image size problem on devstack

asked 2018-10-10 10:40:07 -0500

etchevef gravatar image


On a freshly installed devstack, I have created a new image using this image from the download page (Cloud/Container --> generic --> 7 --> x86_64 --> qcow2).

$ openstack image create --file iso/CentOS-7-x86_64-GenericCloud.qcow2 centos7

The image takes less than a GB. But when I try to launch an instance on devstack with this image, i can't do so without a flavor that packs a much bigger disk size. in particular, the instance gets in error with the ds512M flavor (5GB of disk size), with the following error message:

$ openstack server create --image centos7 --flavor d1 --key-name my_key vm1 $ openstack server show vm1 ... fault | {u'message': u"Build of instance 5f73c0cf-c08e-40c0-b0df-938ccc5e3510 aborted: Flavor's disk is too small for requested image. Flavor disk is 5368709120 bytes, image is 8589934592 bytes.", u'code': 500, u'created': u'2018-10-10T15:06:08Z'} ...

while with openstack image show centos7, i have |size | 938016768.

Is this a bug or am I doing something wrong? with a flavor packing 10GB the instance launches, but effectively only uses less than a GB. But I can't use a bigger flavor because of hardware constraints...

edit retag flag offensive close merge delete