Guest

Preview Tool

Cisco Bug: CSCvi24201 - neutron-opflex-agent crashes and restarts frequently

Last Modified

Sep 20, 2019

Products (1)

  • Cisco Application Policy Infrastructure Controller (APIC)

Known Affected Releases

3.0(2k)

Description (partial)

Symptom:
Opflex service continually restarting.

The following can be observed in the logs:

-format=json] dies due to the error: None
2019-03-01 14:56:02.932 12851 CRITICAL neutron [req-36b2f031-82f5-4e3e-ad83-aba4df5af377 - - - - -] IndexError: list index out of range
2019-03-01 14:56:02.932 12851 ERROR neutron Traceback (most recent call last):
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/bin/neutron-opflex-agent", line 9, in <module>
2019-03-01 14:56:02.932 12851 ERROR neutron     load_entry_point('neutron-opflex-agent==5.3.0', 'console_scripts', 'neutron-opflex-agent')()
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 641, in main
2019-03-01 14:56:02.932 12851 ERROR neutron     agent.daemon_loop()
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 554, in daemon_loop
2019-03-01 14:56:02.932 12851 ERROR neutron     self.rpc_loop(polling_manager=pm)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 484, in rpc_loop
2019-03-01 14:56:02.932 12851 ERROR neutron     self.loop_count_and_wait(start, port_stats)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 443, in loop_count_and_wait
2019-03-01 14:56:02.932 12851 ERROR neutron     self.port_manager.apply_config()
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/utils/port_managers/async_port_manager.py", line 108, in apply_config
2019-03-01 14:56:02.932 12851 ERROR neutron     self.response_by_device_id = response_by_device_id_copy
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2019-03-01 14:56:02.932 12851 ERROR neutron     self.force_reraise()
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2019-03-01 14:56:02.932 12851 ERROR neutron     six.reraise(self.type_, self.value, self.tb)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/utils/port_managers/async_port_manager.py", line 93, in apply_config
2019-03-01 14:56:02.932 12851 ERROR neutron     if not self.gbp_agent.treat_devices_added_or_updated(details):
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 375, in treat_devices_added_or_updated
2019-03-01 14:56:02.932 12851 ERROR neutron     neutron_details['device_owner'])
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 414, in treat_vif_port
2019-03-01 14:56:02.932 12851 ERROR neutron     device_owner)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 208, in try_port_binding
2019-03-01 14:56:02.932 12851 ERROR neutron     self.port_bound(port, mapping)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/gbp_ovs_agent.py", line 223, in port_bound
2019-03-01 14:56:02.932 12851 ERROR neutron     self.ep_manager.declare_endpoint(vif, mapping)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/utils/ep_managers/endpoint_file_manager.py", line 158, in declare_endpoint
2019-03-01 14:56:02.932 12851 ERROR neutron     self._mapping_to_file(port, mapping_copy, port.fixed_ips)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/utils/ep_managers/endpoint_file_manager.py", line 314, in _mapping_to_file
2019-03-01 14:56:02.932 12851 ERROR neutron     mapping_dict)
2019-03-01 14:56:02.932 12851 ERROR neutron   File "/usr/lib/python2.7/site-packages/opflexagent/utils/ep_managers/endpoint_file_manager.py", line 437, in _map_dhcp_info

Conditions:
As of now, just believed to be on version 3.0(2k)
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.