From 066b374c35bdfc5e35578e800499919fadcd42c1 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Tue, 27 Dec 2016 11:19:02 +0100 Subject: [PATCH] CLOUDSTACK-9692: Fix password server issue in redundant VRs The password server in RVRs has wrong parameters as the gateway of guest nics is None. In this case, we should get the gateway from /var/cache/cloud/cmdline. --- systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py index c280555fd33c..f2bce44563ee 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py @@ -137,7 +137,7 @@ def get_netmask(self): return self.get_attr("netmask") def get_gateway(self): - if self.config.is_vpc() or self.config.cmdline().is_redundant(): + if self.config.is_vpc() or not self.is_guest(): return self.get_attr("gateway") else: return self.config.cmdline().get_guest_gw()