The iptables_manager remove_chain() function calls LOG.warn()
if asked to remove a chain that it doesn't know about. This
is spamming the neutron-full gate job pretty bad. Change to
LOG.debug() since reverting the change that caused it is
difficult since the FWaaS code has been split-out from the
tree.
Introduced in change
6eee93a98c67
Change-Id: Ieb20ae01137223110abf3c933e4981ff39055398
Closes-bug: #
1404016
chain_set = self._select_chain_set(wrap)
if name not in chain_set:
- LOG.warn(_LW('Attempted to remove chain %s which does not exist'),
- name)
+ LOG.debug('Attempted to remove chain %s which does not exist',
+ name)
return
chain_set.remove(name)
def test_remove_nonexistent_chain(self):
with mock.patch.object(iptables_manager, "LOG") as log:
self.iptables.ipv4['filter'].remove_chain('nonexistent')
- log.warn.assert_called_once_with(
+ log.debug.assert_called_once_with(
'Attempted to remove chain %s which does not exist',
'nonexistent')