TypeError: '<' not supported between instances of 'str' and 'NoneType'

Bug #1999310 reported by hard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron-fwaas (Ubuntu)
New
Undecided
Unassigned

Bug Description

Release Openstack Yoga

dpkg -l | grep neutron
ii neutron-common 2:20.2.0-0ubuntu1~cloud0 all Neutron is a virtual network service for Openstack - common
ii neutron-dhcp-agent 2:20.2.0-0ubuntu1~cloud0 all Neutron is a virtual network service for Openstack - DHCP agent
ii neutron-fwaas-common 1:16.0.0+git2022033113.de8a4d4cf-0ubuntu1~cloud0 all Firewall-as-a-Service driver for OpenStack Neutron
ii neutron-l3-agent 2:20.2.0-0ubuntu1~cloud0 all Neutron is a virtual network service for Openstack - l3 agent
ii neutron-metadata-agent 2:20.2.0-0ubuntu1~cloud0 all Neutron is a virtual network service for Openstack - metadata agent
ii neutron-openvswitch-agent 2:20.2.0-0ubuntu1~cloud0 all Neutron is a virtual network service for Openstack - Open vSwitch plugin agent
ii neutron-plugin-ml2 2:20.2.0-0ubuntu1~cloud0 all Neutron is a virtual network service for Openstack - ML2 plugin
ii python3-neutron 2:20.2.0-0ubuntu1~cloud0 all Neutron is a virtual network service for Openstack - Python library
ii python3-neutron-fwaas 1:16.0.0+git2022033113.de8a4d4cf-0ubuntu1~cloud0 all Firewall-as-a-Service driver for OpenStack Neutron
ii python3-neutron-lib 2.20.0-0ubuntu1~cloud0 all Neutron shared routines and utilities - Python 3.x
ii python3-neutronclient 1:7.8.0-0ubuntu1~cloud0 all client API library for Neutron - Python 3.x

neutron.conf

[DEFAULT]
core_plugin = ml2
service_plugins = neutron_dynamic_routing.services.bgp.bgp_plugin.BgpPlugin,router,firewall_v2,port_forwarding

[service_providers]
service_provider = FIREWALL_V2:fwaas_db:neutron_fwaas.services.firewall.service_drivers.agents.agents.FirewallAgentDriver:default

[fwaas]
driver = neutron_fwaas.services.firewall.service_drivers.agents.drivers.linux.iptables_fwaas_v2.IptablesFwaasDriver
enabled = True
agent_version = v2
conntrack_driver = netlink_conntrack
firewall_l2_driver = noop

After restart neutron-l3-agent i see in log:

2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 [req-776f745b-971d-4ac0-b12a-441eb5c87308 - 5bc082a7364048b79090211a3cbaa94d - - -] FWaaS router add RPC info call failed for 85013036-69a1-4003-af31-37818a81ede7: TypeError: '<' not supported between instances of 'str' and 'NoneType'
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 Traceback (most recent call last):
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 File "/usr/lib/python3/dist-packages/neutron_fwaas/services/firewall/service_drivers/agents/l3reference/firewall_l3_agent_v2.py", line 296, in add_router
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 self._process_router_update(new_router)
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 File "/usr/lib/python3/dist-packages/neutron_fwaas/services/firewall/service_drivers/agents/l3reference/firewall_l3_agent_v2.py", line 284, in _process_router_update
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 self._invoke_driver_for_sync_from_plugin(
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 File "/usr/lib/python3/dist-packages/neutron_fwaas/services/firewall/service_drivers/agents/l3reference/firewall_l3_agent_v2.py", line 227, in _invoke_driver_for_sync_from_plugin
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 self.fwaas_driver.update_firewall_group(
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 File "/usr/lib/python3/dist-packages/neutron_fwaas/services/firewall/service_drivers/agents/drivers/linux/iptables_fwaas_v2.py", line 143, in update_firewall_group
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 self._remove_conntrack_updated_firewall(agent_mode,
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 File "/usr/lib/python3/dist-packages/neutron_fwaas/services/firewall/service_drivers/agents/drivers/linux/iptables_fwaas_v2.py", line 326, in _remove_conntrack_updated_firewall
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 self.conntrack.delete_entries(removed_conntrack_rules_list,
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 File "/usr/lib/python3/dist-packages/neutron_fwaas/services/firewall/service_drivers/agents/drivers/linux/netlink_conntrack.py", line 40, in delete_entries
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 rule_filters = sorted(rule_filters)
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2 TypeError: '<' not supported between instances of 'str' and 'NoneType'
2022-12-10 21:17:09.637 3099331 ERROR neutron_fwaas.services.firewall.service_drivers.agents.l3reference.firewall_l3_agent_v2
2022-12-10 21:17:09.637 3099331 INFO neutron.agent.l3.agent [req-776f745b-971d-4ac0-b12a-441eb5c87308 - 5bc082a7364048b79090211a3cbaa94d - - -] Finished a router update for 85013036-69a1-4003-af31-37818a81ede7, update_id 1e533b37-b0f9-4daf-a6d8-5b5d11ee688f. Time elapsed: 6.683

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.