swap, rxtx_cap, rxtx_quota not listed in output of 'nova flavor-list'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Scott Moser |
Bug Description
I did:
nova-manage instance_type create --flavor=0 --memory=1 --local_gb=2 --swap=512 --cpu=1 --name "m1.xsmall"
$ nova-manage instance_type create --flavor=0 --memory=512 --local_gb=2 --swap=1 --cpu=1 --name "m1.xsmall"
m1.xsmall created
Then,
$ nova flavor-list
+----+-
| ID | Name | Memory_MB | Swap | Local_GB | VCPUs | RXTX_Quota | RXTX_Cap |
+----+-
| 0 | m1.xsmall | 512 | | 2 | | | |
| 1 | m1.tiny | 512 | | 0 | | | |
| 2 | m1.small | 2048 | | 20 | | | |
| 3 | m1.medium | 4096 | | 40 | | | |
| 4 | m1.large | 8192 | | 80 | | | |
| 5 | m1.xlarge | 16384 | | 160 | | | |
+----+-
I expected that 'Swap' column would list have an entry for m1.xsmall.
From inside the instance launched, there *is* swap disk of 1G as expected (note, per bug 849154, swap is currently interpreted as GB, not MB).
Related branches
- Brian Waldon (community): Approve
- Devin Carlen (community): Approve
-
Diff: 252 lines (+110/-0)6 files modifiednova/api/openstack/contrib/flavorextradata.py (+46/-0)
nova/api/openstack/flavors.py (+4/-0)
nova/api/openstack/schemas/v1.1/flavor.rng (+4/-0)
nova/api/openstack/views/flavors.py (+3/-0)
nova/tests/api/openstack/test_extensions.py (+1/-0)
nova/tests/api/openstack/test_flavors.py (+52/-0)
- OpenStack release team: Pending requested
-
Diff: 277 lines (+121/-4)5 files modifiednova/api/openstack/contrib/flavorextradata.py (+46/-0)
nova/api/openstack/flavors.py (+3/-0)
nova/api/openstack/views/flavors.py (+3/-0)
nova/tests/api/openstack/test_extensions.py (+1/-0)
nova/tests/api/openstack/test_flavors.py (+68/-4)
affects: | python-novaclient → nova |
summary: |
- swap not listed in output of nova-manage flavor + swap not listed in output of 'nova flavor-list' |
summary: |
- swap not listed in output of 'nova flavor-list' + swap, rxtx_cap, rxtx_quota not listed in output of 'nova flavor-list' |
tags: | added: osapi-v1.1 |
Changed in nova: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Scott Moser (smoser) |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.3 |
Changed in nova: | |
status: | Fix Committed → Fix Released |