filter_scheduler not obeying force_hosts and ignore_hosts

Bug #1087807 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Chris Behrens

Bug Description

Recent re-factor of filtering and weights broke the ignore_hosts and force_hosts functionality.

Chris Behrens (cbehrens)
Changed in nova:
importance: Undecided → High
assignee: nobody → Chris Behrens (cbehrens)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/17729
Committed: http://github.com/openstack/nova/commit/836ee3f4589f3ee58939a22cedc72e1163497f3f
Submitter: Jenkins
Branch: master

commit 836ee3f4589f3ee58939a22cedc72e1163497f3f
Author: Chris Behrens <email address hidden>
Date: Fri Dec 7 23:09:45 2012 +0000

    Make ignore_hosts and force_hosts work again

    Fixes bug 1087807

    A recent refactor of scheduling filters and weights broke the
    ignore_hosts and force_hosts functionality. The refactored code would
    have only worked if a list of host names (strings) were passed in to
    host_manager's get_filtered_hosts(). Unfortunately that's what the unit
    tests tested, but the real caller (filter_scheduler) actually passes a
    list of HostState class instances.

    Unit tests are fixed to pass HostStates and the offending code in the
    host_manager has been fixed.

    Change-Id: I54a3385da7c095e8ddf26b7536d46a9ee4072a58

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-2 → 2013.1
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.