The swap measurement unit is not specified in the CLI table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Rui Zang | ||
python-novaclient |
Fix Released
|
Undecided
|
Rui Zang |
Bug Description
Description of problem:
The measurement unit of the swap memory in the flavor is MB, unlike all the other disk's units, which are GB.
This might cause a confusion in the CLI when the unit is not specified:
+-----
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+------
| 13eec680-
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 41f44ff1-
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
+------
Version-Release number of selected component (if applicable):
openstack-
openstack-
openstack-
python-
python-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
How reproducible:
100%
Steps to Reproduce:
1. add swap to a flavor
2. run the CLI command:
# nova flavor-list
tags: | added: api |
Changed in python-novaclient: | |
assignee: | nobody → Rui Zang (rui-zang) |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in python-novaclient: | |
milestone: | none → 2.18.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
I can see the need for swap to be in MB if the instance memory is less than 1G. According to Red Hat (https:/ /access. redhat. com/site/ documentation/ en-US/Red_ Hat_Enterprise_ Linux/6/ html/Storage_ Administration_ Guide/ch- swapspace. html): Swap should equal 2x physical RAM for up to 2 GB of physical RAM, and then an additional 1x physical RAM for any amount above 2 GB, but never less than 32 MB.
I am not sure if this is a bug. Maybe the swap column should be more appropriately labeled, e.g. Swap_MB, to match the size it is showing.