commit 6f8ca5f4221a7235a1d0b305525e194503e26fb3
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Fri Nov 22 14:15:50 2013 +0100
SlavePool: virtual machine creation ignored custom rpcport
Setting the rpc_port parameter in a slave pool had no effect for virtual
machines, which resulted in the machine being recognized as available
but the controller could'nt connect to it.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/SlavePool.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/SlavePool.py b/lnst/Controller/SlavePool.py
index e7d4557..7266eaf 100644
--- a/lnst/Controller/SlavePool.py
+++ b/lnst/Controller/SlavePool.py
@@ -289,7 +289,11 @@ class SlavePool:
hostname = pm["params"]["hostname"]
libvirt_domain = pm["params"]["libvirt_domain"]
- machine = Machine(tm_id, hostname, libvirt_domain)
+ rpcport = None
+ if "rpc_port" in pm["params"]:
+ rpcport = pm["params"]["rpc_port"]
+
+ machine = Machine(tm_id, hostname, libvirt_domain, rpcport)
# make all the existing unused
for if_id, if_data in pm["interfaces"].iteritems():
Show replies by date