Nova returns wrong message when flavor's disk is less than image size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Steps:
1. Upload an image whose disk size is 816M and virtual size is 2.0G. As shown below:
qemu-img info 7e648d6d-
image: 7e648d6d-
file format: qcow2
virtual size: 2.0G (2147483648 bytes)
disk size: 816M
cluster_size: 65536
Format specific information:
compat: 0.10
2. Start a server from the image mentioned with the default flavor m1.tiny(1C512M1G)
Expected Result:
...Flavor's disk is too small for requested image. Flavor disk is 1073741824 bytes, image is 2147483648 bytes.
Actual Result:
...Flavor's disk is too small for requested image. Flavor disk is 2147483648 bytes, image is 1073741824 bytes.
In fact, the flavor's disk size shown is the image size so their sizes may exchange with each other.
Environment:
>cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
>uname -a
Linux localhost.
>rpm -aq | grep nova-common
openstack-
description: | updated |
summary: |
- Nova returns wrong message when flavor's disk is less than image size + Nova returns wrong message when flavor's disk is small than image size |
summary: |
- Nova returns wrong message when flavor's disk is small than image size + Nova returns wrong message when flavor's disk is smaller than image size |
summary: |
- Nova returns wrong message when flavor's disk is smaller than image size + Nova returns wrong message when flavor's disk is less than image size |
Changed in nova: | |
assignee: | nobody → viswesuwara nathan (viswesn) |
Changed in nova: | |
status: | New → In Progress |
For further debugging can you please share me the following information. Thanks
(openstack) flavor show m1.tiny
(openstack) image show <The Image ID>
You can get <The image ID> by running 'image list'.