From 80b51a7972e590c64a97650d7f53dc6431411007 Mon Sep 17 00:00:00 2001 From: Wilder Rodrigues Date: Tue, 13 Oct 2015 15:58:29 +0200 Subject: [PATCH] CLOUDSTACK-8947 - Adding some logging to better understand what's happening with the rules --- systemvm/patches/debian/config/opt/cloud/bin/cs/CsNetfilter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsNetfilter.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsNetfilter.py index 99c15018bba..4b5b49231f2 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsNetfilter.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsNetfilter.py @@ -150,6 +150,8 @@ class CsNetfilters(object): new_rule.set_table(fw[0]) if isinstance(fw[1], int): new_rule.set_count(fw[1]) + + logging.debug("Checking if the rule already exists: rule=%s table=%s chain=%s", new_rule.get_rule(), new_rule.get_table(), new_rule.get_chain()) if self.has_rule(new_rule): logging.debug("Exists: rule=%s table=%s", fw[2], new_rule.get_table()) else: