Public bug reported:

If host_state.metrics is set to None, then calling the MetricsWeigher
returns:


  File "/opt/stack/new/nova/nova/scheduler/weights/metrics.py", line 89, in 
_weigh_object
    metrics_dict = {m.name: m for m in host_state.metrics}

TypeError: 'NoneType' object is not iterable


http://logs.openstack.org/05/226805/2/check/gate-ironic-inspector-
dsvm/5cd5071/logs/screen-n-cond.txt.gz?level=WARNING

** Affects: nova
     Importance: Critical
     Assignee: Sylvain Bauza (sylvain-bauza)
         Status: In Progress


** Tags: liberty-rc-potential low-hanging-fruit scheduler

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1499271

Title:
  MetricsWeigher can return a NoneType exception

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  If host_state.metrics is set to None, then calling the MetricsWeigher
  returns:


    File "/opt/stack/new/nova/nova/scheduler/weights/metrics.py", line 89, in 
_weigh_object
      metrics_dict = {m.name: m for m in host_state.metrics}

  TypeError: 'NoneType' object is not iterable


  http://logs.openstack.org/05/226805/2/check/gate-ironic-inspector-
  dsvm/5cd5071/logs/screen-n-cond.txt.gz?level=WARNING

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1499271/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to