On Tue, Sep 23, 2014 at 12:00:17PM +0200, 'Klaus Aehlig' via ganeti-devel wrote:
Add an additional log entry if the IAllocator failed to find
a solution in opportunistic locking. Otherwise the IAllocator
message would get lost on internal retries.
Signed-off-by: Klaus Aehlig <[email protected]>
---
lib/cmdlib/instance.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/cmdlib/instance.py b/lib/cmdlib/instance.py
index f21b578..cf7dea9 100644
--- a/lib/cmdlib/instance.py
+++ b/lib/cmdlib/instance.py
@@ -682,6 +682,8 @@ class LUInstanceCreate(LogicalUnit):
# When opportunistic locks are used only a temporary failure is generated
if self.op.opportunistic_locking:
ecode = errors.ECODE_TEMP_NORES
+ self.LogInfo("IAllocator '%s' failed on opportunistically acquired"
+ " nodes: %s", self.op.iallocator, ial.info)
else:
ecode = errors.ECODE_NORES
--
2.1.0.rc2.206.gedb03e5
LGTM