发起问题

etchevef 的档案 - activity

2020-01-28 08:55:17 -0500 获得奖牌  受欢迎的问题 (source)
2020-01-28 08:55:17 -0500 获得奖牌  热门的问题 (source)
2020-01-28 08:55:17 -0500 获得奖牌  著名问题 (source)
2018-10-30 10:56:40 -0500 问了问题 image size problem on devstack

Hello,

On a freshly installed devstack, I have created a new image using this image cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 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...

2018-10-30 10:56:40 -0500 问了问题 Problem with image size on devstack

Hello,

On a freshly installed devstack, I have created a new image using this image https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 (https://cloud.centos.org/centos/7/ima...) from https://wiki.centos.org/Download (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...