commit 1877794f4810b7996cef3dba96d3eaab2cc5ab0f
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Tue Dec 4 14:40:10 2012 +0100
MachinePool: add warning message when skipping virt matchines
This commit adds a warning message informing the user about skipping
virtual machines located in machine pool when libvirtd service is not
running.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
lnst/Controller/MachinePool.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lnst/Controller/MachinePool.py b/lnst/Controller/MachinePool.py
index f70edcb..9deb96f 100644
--- a/lnst/Controller/MachinePool.py
+++ b/lnst/Controller/MachinePool.py
@@ -67,6 +67,9 @@ class MachinePool:
parser.parse(machineconfig)
if 'libvirt_domain' not in machine['info'] or
self._allow_virtual:
self._pool[machine_id] = machine
+ else:
+ logging.warning("libvirtd not found- Machine Pool skipping "\
+ "machine %s" % machine_id)
def provision_setup(self, setup_requirements):
"""
Show replies by date