model_root.get_node_instances(node) returns none instances

Bug #1662810 reported by licanwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Critical
licanwei

Bug Description

debug info:
2017-02-08 10:13:42.240 DEBUG watcher.decision_engine.model.collector.base [req-5af4e0fa-b1d4-4987-9b55-261829c7a055 None None] <ModelRoot>
  <ComputeNode status="enabled" disk_capacity="499" uuid="host_192_51_151_10" hostname="host_192_51_151_10" vcpus="24" human_id="" state="up" memory="257756" disk="-225" id="11"/>
  <ComputeNode status="enabled" disk_capacity="216" uuid="host_192_51_151_11" hostname="host_192_51_151_11" vcpus="40" human_id="" state="down" memory="128738" disk="-679" id="14"/>
  <Instance disk_capacity="0" uuid="0042cc11-26eb-47fd-8f1a-65a29080d651" vcpus="2" state="active" memory="2048" disk="0" human_id="test_ljt1"/>
  <Instance disk_capacity="0" uuid="019c820a-b7b5-495d-aace-40681d7f3d85" vcpus="2" state="active" memory="4096" disk="0" human_id="apache-2"/>
  <Instance disk_capacity="80" uuid="040ae545-839d-4d1a-862d-12f30857012c" vcpus="4" state="active" memory="8192" disk="80" human_id="win7-ora"/>
  <Instance disk_capacity="0" uuid="0426027f-1724-4ee7-bfcc-fb5c7c5ad432" vcpus="8" state="active" memory="16384" disk="0" human_id="tecs-test-ci"/>
</ModelRoot>

licanwei (li-canwei2)
Changed in watcher:
assignee: nobody → licanwei (li-canwei2)
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/430670

Changed in watcher:
status: New → In Progress
Changed in watcher:
milestone: none → ocata-rc-final
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/431002

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

Reviewed: https://review.openstack.org/430670
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=67d44eb1187cdb71e4931293a9384c7bd54d7c62
Submitter: Jenkins
Branch: master

commit 67d44eb1187cdb71e4931293a9384c7bd54d7c62
Author: licanwei <email address hidden>
Date: Wed Feb 8 17:41:47 2017 +0800

    Fix the mapping between the instance and the node

    The argument to the add_edge function should be instance.uuid
    and node.uuid, not instance and node

    Change-Id: Ida694f9158d3eb26e7f31062a18844472ea3c6fa
    Closes-Bug: #1662810

Changed in watcher:
status: In Progress → Fix Released
tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (stable/ocata)

Reviewed: https://review.openstack.org/431002
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=d1ab697612848a4c5dc40f2a90c44cd31b683889
Submitter: Jenkins
Branch: stable/ocata

commit d1ab697612848a4c5dc40f2a90c44cd31b683889
Author: licanwei <email address hidden>
Date: Wed Feb 8 17:41:47 2017 +0800

    Fix the mapping between the instance and the node

    The argument to the add_edge function should be instance.uuid
    and node.uuid, not instance and node

    Change-Id: Ida694f9158d3eb26e7f31062a18844472ea3c6fa
    Closes-Bug: #1662810

Changed in watcher:
importance: Medium → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 1.0.1

This issue was fixed in the openstack/watcher 1.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 1.1.0

This issue was fixed in the openstack/watcher 1.1.0 release.

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.