create of flavor should be in 512MB multiplication for memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Undecided
|
Unassigned |
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-
+------
[root@puma32 ~(keystone_admin)]# nova flavor-show Dafna_cli
+------
| Property | Value |
+------
| name | Dafna_cli |
| ram | 300 |
| OS-FLV-
| vcpus | 1 |
| extra_specs | {} |
| swap | |
| os-flavor-
| rxtx_factor | 1.0 |
| OS-FLV-
| disk | 6 |
| id | 91 |
+------
[root@puma32 ~(keystone_admin)]#
Changed in python-novaclient: | |
assignee: | nobody → Juan Manuel Ollé (juan-m-olle) |
affects: | python-novaclient → nova |
Changed in nova: | |
assignee: | Juan Manuel Ollé (juan-m-olle) → nobody |
assignee: | nobody → Juan Manuel Ollé (juan-m-olle) |
Changed in nova: | |
assignee: | Juan Manuel Ollé (juan-m-olle) → nobody |
Changed in nova: | |
status: | In Progress → Triaged |
Why should be base 512? perhaps base 2, you could create a VM with 256 or 768 (I had once a machine with that memory size :) )