ASR1K plugin: clear the router gateway causes continuous traceback in cisco-cfg-agent.log

Bug #1502236 reported by Danny Choi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-cisco
New
Undecided
Unassigned

Bug Description

Clearing the router gateway causes continuous traceback in cisco-cfg-agent.log.

2015-10-02 06:20:22.668 2292 INFO neutron.plugins.cisco.cfg_agent.device_drivers.csr1kv.iosxe_routing_driver [-] Config generated for [00000000-0000-0000-0000-000000000002] DELETE_NAT_POOL is:
<config>
        <cli-config-data>
            <cmd>no ip nat pool nrouter-6cb586_nat_pool 169.254.128.19 169.254.128.19 netmask 255.255.255.0</cmd>
        </cli-config-data>
</config>
 caller:neutron.plugins.cisco.cfg_agent.device_drivers.asr1k.asr1k_routing_driver.ASR1kRoutingDriver._set_nat_pool
2015-10-02 06:20:22.781 2292 DEBUG neutron.plugins.cisco.cfg_agent.device_drivers.csr1kv.iosxe_routing_driver [-] RPCReply for DELETE_NAT_POOL is <?xml version="1.0" encoding="UTF-8"?><rpc-reply message-id="urn:uuid:55e96aee-6908-11e5-b146-7c69f62c4f2f" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><ok /></rpc-reply> _check_response /usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/device_drivers/csr1kv/iosxe_routing_driver.py:722
2015-10-02 06:20:22.782 2292 INFO neutron.plugins.cisco.cfg_agent.device_drivers.csr1kv.iosxe_routing_driver [-] DELETE_NAT_POOL was successfully executed
2015-10-02 06:20:22.782 2292 INFO neutron.plugins.cisco.cfg_agent.device_drivers.csr1kv.iosxe_routing_driver [-] Config generated for [00000000-0000-0000-0000-000000000002] REMOVE_DEFAULT_ROUTE_WITH_INTF is:
<config>
        <cli-config-data>
            <cmd>no ip route vrf nrouter-6cb586 0.0.0.0 0.0.0.0 Port-channel11.506 169.254.128.1</cmd>
        </cli-config-data>
</config>
 caller:neutron.plugins.cisco.cfg_agent.device_drivers.asr1k.asr1k_routing_driver.ASR1kRoutingDriver._remove_default_route
2015-10-02 06:20:22.846 2292 ERROR neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper [-] Exception in processing routers on device:00000000-0000-0000-0000-000000000002
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper Traceback (most recent call last):
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/service_helpers/routing_svc_helper.py", line 464, in _process_routers
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper self._process_router(ri)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/service_helpers/routing_svc_helper.py", line 531, in _process_router
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper self._external_gateway_removed(ri, ri.ex_gw_port)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/service_helpers/routing_svc_helper.py", line 727, in _external_gateway_removed
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper driver.external_gateway_removed(ri, ex_gw_port)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/device_drivers/asr1k/asr1k_routing_driver.py", line 92, in external_gateway_removed
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper self._remove_default_route(ri, ext_gw_port)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/device_drivers/asr1k/asr1k_routing_driver.py", line 267, in _remove_default_route
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper 'REMOVE_DEFAULT_ROUTE_WITH_INTF')
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/device_drivers/csr1kv/iosxe_routing_driver.py", line 691, in _edit_running_config
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper rpc_obj = conn.edit_config(target='running', config=conf_str)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/ncclient/manager.py", line 151, in wrapper
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper return self.execute(op_cls, *args, **kwds)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/ncclient/manager.py", line 221, in execute
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper raise_mode=self._raise_mode).request(*args, **kwds)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/ncclient/operations/edit.py", line 67, in request
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper return self._request(node)
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/ncclient/operations/rpc.py", line 305, in _request
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper self._reply.error.message):
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper File "/usr/lib/python2.7/site-packages/ncclient/devices/default.py", line 163, in is_rpc_error_exempt
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper error_text = error_text.lower().strip()
2015-10-02 06:20:22.846 2292 TRACE neutron.plugins.cisco.cfg_agent.service_helpers.routing_svc_helper AttributeError: 'NoneType' object has no attribute 'lower'

Tags: asr1k cisco
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.