[one-users] Problems with scheduling VMs / Bug in Scheduler.cc

Niraj Tolia ntolia at gmail.com
Fri Feb 20 17:37:23 PST 2009


I have run into a couple of problem while evaluating OpenNebula and I
might have found a bug in Scheduler::match().

If you look at the code for the function match() in Scheduler.cc, the
variable 'matched' starts out uninitialized. Now, if reqs != "",
host->match() is called. However, even if the call to match is
successful, matched is never set to true and and therefore that host
is never checked for capacity. Simply setting match = true when rc ==0
seems to fix the problem I am seeing.

Please let me know if you need more details.

Cheers,
Niraj



More information about the Users mailing list