Scheduler hangs if filtered host list is empty.

Bug #861310 reported by Sateesh
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Sateesh
Diablo
Fix Released
Undecided
Unassigned

Bug Description

When using BaseScheduler without overriding weigh_hosts method, found scheduler hanging when an instance creation request is sent. When a filtering method yields empty list of hosts, weigh_hosts method enters an infinite loop.

Changed in nova:
status: New → Confirmed
assignee: nobody → Sateesh (sateesh-chodapuneedi)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/nova

Reviewed: https://review.openstack.org/703
Committed: http://github.com/openstack/nova/commit/0546616926d7f95017405b4abb532a4517db7d90
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 0546616926d7f95017405b4abb532a4517db7d90
Author: Sateesh Chodapuneedi <email address hidden>
Date: Wed Sep 28 18:07:22 2011 +0530

    bug 861310

    Check if host list is not empty before trying to weigh the hosts.

    Change-Id: I4014bf64951963088cdfaad1210fa9d23e7cc08b

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (stable/diablo)

Reviewed: https://review.openstack.org/957
Committed: http://github.com/openstack/nova/commit/1def4abeeb6e03ad82906aaa6975c753d1649747
Submitter: Jenkins
Branch: stable/diablo

 status fixcommitted
 done

commit 1def4abeeb6e03ad82906aaa6975c753d1649747
Author: Sateesh Chodapuneedi <email address hidden>
Date: Wed Sep 28 18:07:22 2011 +0530

    bug 861310

    Check if host list is not empty before trying to weigh the hosts.

    (cherry picked from commit 0546616926d7f95017405b4abb532a4517db7d90)

    Change-Id: I546690aaa750dc7de2b369c5843dd93cb0654489

Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Sateesh, or anyone else affected,

Accepted nova into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-1 → 2012.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.