From ee794994d5b7cd3e049a3d68e4cc07ed7cf121d7 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 23 Sep 2020 16:35:45 +0000 Subject: [PATCH] Reduce log level in "ensure_device_is_ready" If the device is not ready, the method should inform about this event. The code calling this method, if needed, can write a higher log message. Change-Id: Ib7c5ba736f6e4ccc88df665faeef304c176a24e7 Closes-Bug: #1896920 (cherry picked from commit b1f1c8aa50012d09b7a81abfb99d02e0c457fc8c) --- neutron/agent/linux/ip_lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/agent/linux/ip_lib.py b/neutron/agent/linux/ip_lib.py index 76b7e375e03..d62f5a5f5fb 100644 --- a/neutron/agent/linux/ip_lib.py +++ b/neutron/agent/linux/ip_lib.py @@ -969,8 +969,8 @@ def ensure_device_is_ready(device_name, namespace=None): # Ensure the device has a MAC address and is up, even if it is already # up. if not dev.link.exists or not dev.link.address: - LOG.error("Device %s cannot be used as it has no MAC " - "address", device_name) + LOG.info("Device %s cannot be used as it has no MAC " + "address", device_name) return False dev.link.set_up() except RuntimeError: