From 9dc0a9ea1bbfced5aa43114c30b6fcdf5fd69836 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 23 Feb 2015 16:21:54 -0800 Subject: [PATCH] FIP debug messages The experimental DVR test job is seeing intermittent failures related to FIPs. This patch will add debug log messages to the l3-agent to help debug the failures. These logs messages will indicate when fips have been added and the fip statuses before they are sent to the plugin. Change-Id: Ic27c02ae45971efc9ba2aec84aafaa89ff9243e6 --- neutron/agent/l3/agent.py | 1 + neutron/agent/l3/router_info.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/neutron/agent/l3/agent.py b/neutron/agent/l3/agent.py index 8ac4b02b2..a8136e27a 100644 --- a/neutron/agent/l3/agent.py +++ b/neutron/agent/l3/agent.py @@ -435,6 +435,7 @@ class L3NATAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback, ri.floating_ips = set(fip_statuses.keys()) for fip_id in existing_floating_ips - ri.floating_ips: fip_statuses[fip_id] = l3_constants.FLOATINGIP_STATUS_DOWN + LOG.debug('Sending floating ip statuses: %s', fip_statuses) # Update floating IP status on the neutron server self.plugin_rpc.update_floatingip_statuses( self.context, ri.router_id, fip_statuses) diff --git a/neutron/agent/l3/router_info.py b/neutron/agent/l3/router_info.py index 9e0034ff9..d068d3c5f 100644 --- a/neutron/agent/l3/router_info.py +++ b/neutron/agent/l3/router_info.py @@ -214,6 +214,9 @@ class RouterInfo(object): if ip_cidr not in existing_cidrs: fip_statuses[fip['id']] = self.add_floating_ip( fip, interface_name, device) + LOG.debug('Floating ip %(id)s added, status %(status)s', + {'id': fip['id'], + 'status': fip_statuses.get(fip['id'])}) fips_to_remove = ( ip_cidr for ip_cidr in existing_cidrs - new_cidrs -- 2.45.2