disk_capacity="0" in cluster ModelRoot

Bug #1649442 reported by licanwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Invalid
Medium
licanwei

Bug Description

2016-12-05 10:36:43.833 DEBUG watcher.decision_engine.strategy.strategies.workload_balance [req-d6c0679c-85e2-429d-93c6-56b1add9f987 None None] <ModelRoot>
  <ComputeNode status="enabled" uuid="host_192_51_151_10" hostname="host_192_51_151_10" human_id="" state="up" id="11" ResourceType.cpu_cores="24" ResourceType.disk="-145" ResourceType.disk_capacity="499" ResourceType.memory="257756">
    <Instance state="active" hostname="" human_id="" uuid="0fd98b59-4c86-47dc-a22c-eaaf00809acd" ResourceType.cpu_cores="4" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="16384"/>
    <Instance state="active" hostname="" human_id="" uuid="1e27a634-dfc0-4252-a34e-ffadb84e8407" ResourceType.cpu_cores="2" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="2048"/>
    <Instance state="active" hostname="" human_id="" uuid="1f287080-a667-4560-916d-78a7bbb3402e" ResourceType.cpu_cores="2" ResourceType.disk="4" ResourceType.disk_capacity="4" ResourceType.memory="2048"/>
    <Instance state="active" hostname="" human_id="" uuid="278483a8-99f8-4745-b7cc-33fbde218589" ResourceType.cpu_cores="2" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="2048"/>
    <Instance state="active" hostname="" human_id="" uuid="2d3c994b-7ee0-4c0d-bf88-898e1c41128e" ResourceType.cpu_cores="8" ResourceType.disk="160" ResourceType.disk_capacity="160" ResourceType.memory="16384"/>
    <Instance state="active" hostname="" human_id="" uuid="2f784f48-0cc5-4076-b75f-bb2be3f126e4" ResourceType.cpu_cores="4" ResourceType.disk="0" ResourceType.disk_capacity="0" ResourceType.memory="8192"/>
  </ComputeNode>

licanwei (li-canwei2)
Changed in watcher:
assignee: nobody → licanwei (li-canwei2)
Revision history for this message
licanwei (li-canwei2) wrote :

Now the disk_capacity gets from flavor.disk. but if the VM uses volume in storage array, the flavor.disk is 0.

[root@host_192_51_151_2 ~(keystone_admin)]# nova flavor-show 4
+----------------------------+----------+
| Property | Value |
+----------------------------+----------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 80 |
| extra_specs | N/A |
| id | 4 |
| name | m1.large |
| os-flavor-access:is_public | True |
| ram | 8192 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+----------------------------+----------+
[root@host_192_51_151_2 ~(keystone_admin)]# nova flavor-show 0218bf36-375a-4272-a43a-b7a3b70a4c9b
+----------------------------+--------------------------------------+
| Property | Value |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 0 |
| extra_specs | N/A |
| id | 0218bf36-375a-4272-a43a-b7a3b70a4c9b |
| name | 4H8M0Gstorage |
| os-flavor-access:is_public | True |
| ram | 8192 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+----------------------------+--------------------------------------+

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (master)

Fix proposed to branch: master
Review: https://review.openstack.org/410045

Changed in watcher:
status: New → In Progress
Changed in watcher:
importance: Undecided → Medium
milestone: none → ocata-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on watcher (master)

Change abandoned by licanwei (<email address hidden>) on branch: master
Review: https://review.openstack.org/410045

Changed in watcher:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.