AggregateCoreFilter return incorrect value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
shihanzhang |
Bug Description
I find AggregateCoreFilter will return incorrect value, the analysis is bellow:
class AggregateCoreFi
def _get_cpu_
# TODO(uni): DB query in filter is a performance hit, especially for
# system with lots of hosts. Will need a general solution here to fix
# all filters with aggregate DB call things.
try:
ratio = utils.validate_
except ValueError as e:
ratio = CONF.cpu_
in function validate_
for example: vals=set('10', '9'), the 'validate_
def validate_
num_values = len(vals)
if num_values == 0:
return default
if num_values > 1:
return cast_to(
Changed in nova: | |
assignee: | nobody → shihanzhang (shihanzhang) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → kilo-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/164128
Review: https:/