From 027a4ef89c7bd271db490b4a2d3f50d6c208e1b8 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Sun, 24 Aug 2014 12:21:56 +0200 Subject: [PATCH] feature #1639: The scheduler now rescheds VMs in unknown --- src/scheduler/include/VirtualMachinePoolXML.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scheduler/include/VirtualMachinePoolXML.h b/src/scheduler/include/VirtualMachinePoolXML.h index 1e4d97e119..e784c42975 100644 --- a/src/scheduler/include/VirtualMachinePoolXML.h +++ b/src/scheduler/include/VirtualMachinePoolXML.h @@ -88,8 +88,9 @@ protected: int get_suitable_nodes(vector& 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);