1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1639: The scheduler now rescheds VMs in unknown

This commit is contained in:
Ruben S. Montero 2014-08-24 12:21:56 +02:00
parent 82b4aaed55
commit 027a4ef89c

View File

@ -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);