feature #1639: The scheduler now rescheds VMs in unknown

This commit is contained in:
Ruben S. Montero committed 2014-10-10 10:26:10 +02:00
1 parent 4b27c66db1
commit ac7af19bfa
1 file changed
+3 -2
@@ -88,8 +88,9 @@ protected:
int get_suitable_nodes(vector<xmlNodePtr>& content)
{
return get_nodes("/VM_POOL/VM[STATE=1 or (LCM_STATE=3 and RESCHED=1)]",
content);
// Pending or ((running or unknown) and resched))
return get_nodes("/VM_POOL/VM[STATE=1 or "
"((LCM_STATE=3 or LCM_STATE=16) and RESCHED=1)]", content);
}
virtual void add_object(xmlNodePtr node);