← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1317189] Re: create of flavor should be in 512MB multiplication for memory

 

I think the best way to fix this is in documentation, not in code.

** Changed in: nova
       Status: Triaged => Opinion

-- 
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/1317189

Title:
  create of flavor should be in 512MB multiplication for memory

Status in OpenStack Compute (Nova):
  Opinion

Bug description:
  when we create a flavor, the limitation for the MB is bigger than 0. 
  however, we are simulating a computer and memory comes in 512MB multiplication
  So we should not allow create of instance which is not in 512MB multiplication

  [root@puma32 ~(keystone_admin)]# nova flavor-create  Dafna_cli  91  300 6 1
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 91 | Dafna_cli | 300       | 6    | 0         |      | 1     | 1.0         | True      |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+

  [root@puma32 ~(keystone_admin)]# nova flavor-list 
  +--------------------------------------+------------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID                                   | Name       | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +--------------------------------------+------------+-----------+------+-----------+------+-------+-------------+-----------+
  | 1                                    | m1.tiny    | 512       | 1    | 0         |      | 1     | 1.0         | True      |
  | 2                                    | m1.small   | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
  | 3                                    | m1.medium  | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
  | 4                                    | m1.large   | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
  | 5                                    | m1.xlarge  | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
  | 9                                    | TEST1      | 512       | 6    | 0         |      | 1     | 1.0         | True      |
  | 91                                   | Dafna_cli  | 300       | 6    | 0         |      | 1     | 1.0         | True      |
  | 92                                   | Dafna_cli1 | 1         | 6    | 0         |      | 1     | 1.0         | True      |
  | e58fd866-46a5-4f43-8edd-769b8f31b5a1 | TEST       | 512       | 6    | 0         |      | 1     | 1.0         | True      |
  +--------------------------------------+------------+-----------+------+-----------+------+-------+-------------+-----------+
  [root@puma32 ~(keystone_admin)]# nova flavor-show Dafna_cli
  +----------------------------+-----------+
  | Property                   | Value     |
  +----------------------------+-----------+
  | name                       | Dafna_cli |
  | ram                        | 300       |
  | OS-FLV-DISABLED:disabled   | False     |
  | vcpus                      | 1         |
  | extra_specs                | {}        |
  | swap                       |           |
  | os-flavor-access:is_public | True      |
  | rxtx_factor                | 1.0       |
  | OS-FLV-EXT-DATA:ephemeral  | 0         |
  | disk                       | 6         |
  | id                         | 91        |
  +----------------------------+-----------+
  [root@puma32 ~(keystone_admin)]#

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