Blame SOURCES/firewalld-0.4.4.6-core-Log-unsupported-ICMP-types-as-informational-onl.patch

64e4ee
From a6f0c40b24ad977d7e32e4fd9cf87b57381f5e83 Mon Sep 17 00:00:00 2001
64e4ee
From: Phil Sutter <psutter@redhat.com>
64e4ee
Date: Tue, 12 Sep 2017 01:13:55 +0200
64e4ee
Subject: [PATCH 2/5] core: Log unsupported ICMP types as informational only
64e4ee
64e4ee
iptables-1.4 lacks support for a number of ICMPv6 types. Since this is
64e4ee
not a problem per se, avoid unnecessarily alerting the user with two
64e4ee
warning messages for each of them. Instead, make these informational
64e4ee
messages only so the default configuration does not emit them.
64e4ee
64e4ee
Fixes: RHBZ#1479951
64e4ee
Signed-off-by: Phil Sutter <psutter@redhat.com>
64e4ee
---
64e4ee
 src/firewall/core/fw.py          | 2 +-
64e4ee
 src/firewall/core/fw_icmptype.py | 2 +-
64e4ee
 2 files changed, 2 insertions(+), 2 deletions(-)
64e4ee
64e4ee
diff --git a/src/firewall/core/fw.py b/src/firewall/core/fw.py
64e4ee
index bc6ffe2dbc238..0dda11d49116a 100644
64e4ee
--- a/src/firewall/core/fw.py
64e4ee
+++ b/src/firewall/core/fw.py
64e4ee
@@ -502,7 +502,7 @@ class Firewall(object):
64e4ee
                     try:
64e4ee
                         self.icmptype.add_icmptype(obj)
64e4ee
                     except FirewallError as error:
64e4ee
-                        log.warning("%s: %s, ignoring for run-time." % \
64e4ee
+                        log.info1("%s: %s, ignoring for run-time." % \
64e4ee
                                     (obj.name, str(error)))
64e4ee
                     # add a deep copy to the configuration interface
64e4ee
                     self.config.add_icmptype(copy.deepcopy(obj))
64e4ee
diff --git a/src/firewall/core/fw_icmptype.py b/src/firewall/core/fw_icmptype.py
64e4ee
index 5bf1c7fe512c6..afe9f91d6bf6e 100644
64e4ee
--- a/src/firewall/core/fw_icmptype.py
64e4ee
+++ b/src/firewall/core/fw_icmptype.py
64e4ee
@@ -67,7 +67,7 @@ class FirewallIcmpType(object):
64e4ee
             else:
64e4ee
                 supported_icmps = [ ]
64e4ee
             if obj.name.lower() not in supported_icmps:
64e4ee
-                log.warning("ICMP type '%s' is not supported by the kernel for %s." % (obj.name, ipv))
64e4ee
+                log.info1("ICMP type '%s' is not supported by the kernel for %s." % (obj.name, ipv))
64e4ee
                 ipvs.remove(ipv)
64e4ee
         if len(ipvs) != len(orig_ipvs):
64e4ee
             if len(ipvs) < 1:
64e4ee
-- 
64e4ee
2.13.1
64e4ee