report disk consumption incorrect in nova-compute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have following flavor
jichen@
+----+-
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 11 | t.test1 | 512 | 1 | 5 | | 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 |
+----+-
I used following command
nova boot --flavor 11 --key_name mykey --image 47b00a69-
so the disk consumption is 2G instead of 5G
but I added following logs:
def _update_usage(self, resources, usage, sign=1):
mem_usage = usage['memory_mb']
overhead = self.driver.
mem_usage += overhead[
I got following info in the log
2014-05-05 11:27:12.105 5209 AUDIT nova.compute.
so the free disk was changed from
2014-05-05 10:16:16.174 3033 AUDIT nova.compute.
to
2014-05-05 10:16:16.174 3033 AUDIT nova.compute.
Changed in nova: | |
assignee: | nobody → jichenjc (jichenjc) |
tags: | added: compute |
Changed in nova: | |
importance: | Undecided → Low |
tags: | added: juno-backport-potential |
Changed in nova: | |
assignee: | nobody → venkatesh (p-venkatesh551) |
Changed in nova: | |
assignee: | venkatesh (p-venkatesh551) → nobody |
tags: | removed: juno-backport-potential |
Fix proposed to branch: master /review. openstack. org/96086
Review: https:/