]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Do not log an error when deleting a linuxbridge does not exist
authorMatt Riedemann <mriedem@us.ibm.com>
Thu, 1 Oct 2015 13:55:14 +0000 (06:55 -0700)
committerMatt Riedemann <mriedem@us.ibm.com>
Fri, 2 Oct 2015 15:46:16 +0000 (08:46 -0700)
When you're racing to teardown and relying on RPC, it should not be
considered an error that a bridge does not exist when you're trying to
delete it anyway. This is better served as debug level information.

For context, this shows up over 1000 times in successful
gate-tempest-dsvm-neutron-linuxbridge job runs in a week so it's
probably safe to say it's not contributing to test failures.

Closes-Bug: #1501779

Change-Id: I8e9b27e010d033291497f4e660a97bbae92e75b1

neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py

index 5c09498402973d9b7f37d2e54325d7855a2e9d69..028acc290127d765b596c3bb3e5d208b8fc25200 100644 (file)
@@ -530,7 +530,7 @@ class LinuxBridgeManager(object):
             LOG.debug("Done deleting bridge %s", bridge_name)
 
         else:
-            LOG.error(_LE("Cannot delete bridge %s, does not exist"),
+            LOG.debug("Cannot delete bridge %s; it does not exist",
                       bridge_name)
 
     def remove_empty_bridges(self):