← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1613668] [NEW] Nova returns wrong message when flavor's disk is less than image size

 

Public bug reported:

Steps:
1. Upload an image whose disk size is 816M and virtual size is 2.0G. As shown below:

qemu-img info 7e648d6d-55c0-44cf-82e1-80f08c2943c8

image: 7e648d6d-55c0-44cf-82e1-80f08c2943c8
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.localdomain 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>rpm -aq | grep nova-common
openstack-nova-common-12.0.4-1.el7.noarch(liberty)

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

- steps:
+ Steps:
  1. Upload an image whose disk size is 816M and virtual size is 2.0G. As shown below:
  
  qemu-img info 7e648d6d-55c0-44cf-82e1-80f08c2943c8
  
  image: 7e648d6d-55c0-44cf-82e1-80f08c2943c8
  file format: qcow2
  virtual size: 2.0G (2147483648 bytes)
  disk size: 816M
  cluster_size: 65536
  Format specific information:
-     compat: 0.10
+     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 size
- may exchange.
+ 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.localdomain 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  >rpm -aq | grep nova-common
  openstack-nova-common-12.0.4-1.el7.noarch(liberty)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1613668

Title:
  Nova returns wrong message when flavor's disk is less than image size

Status in OpenStack Compute (nova):
  New

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-55c0-44cf-82e1-80f08c2943c8

  image: 7e648d6d-55c0-44cf-82e1-80f08c2943c8
  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.localdomain 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  >rpm -aq | grep nova-common
  openstack-nova-common-12.0.4-1.el7.noarch(liberty)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1613668/+subscriptions


Follow ups