Using master neutron on devstack deployment, I see this after restarting neutron service
sudo systemctl restart devstack@q-svc
...
AttributeError: 'NoneType' object has no attribute 'get_segments'
Jun 12 01:03:56 stack neutron-server[15077]: DEBUG neutron.db.agents_db [None req-14ec19bf-1bf8-4cd6-a8cb-6e9b49be9e8e None None] Agent healthcheck: found 2 active agents {{(pid=15105) agent_health_check /opt/stack/neutron/neutron/db/agents_db.py:327}}
Jun 12 01:03:57 stack neutron-server[15077]: DEBUG futurist.periodics [None req-d99096de-f66c-4d38-91f7-384397e65e67 None None] Submitting periodic callback 'neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance.HashRingHealthCheckPeriodics.touch_hash_ring_nodes' {{(pid=15104) _process_scheduled /usr/local/lib/python3.6/dist-packages/futurist/periodics.py:642}}
n relationship Tag.standard_attr to refer to viewonly relationship StandardAttribute.tags should include sync_backref=False set on the Tag.standard_attr relationship. (this warning may be suppressed after 10 occurrences)
Jun 12 01:01:37 stack neutron-server[15077]: (rel_b, rel_a, rel_b),
Jun 12 01:01:37 stack neutron-server[15077]: Traceback (most recent call last):
Jun 12 01:01:37 stack neutron-server[15077]: File "/usr/local/lib/python3.6/dist-packages/eventlet/hubs/hub.py", line 461, in fire_timers
Jun 12 01:01:37 stack neutron-server[15077]: timer()
Jun 12 01:01:37 stack neutron-server[15077]: File "/usr/local/lib/python3.6/dist-packages/eventlet/hubs/timer.py", line 59, in __call__
Jun 12 01:01:37 stack neutron-server[15077]: cb(*args, **kw)
Jun 12 01:01:37 stack neutron-server[15077]: File "/usr/local/lib/python3.6/dist-packages/eventlet/greenthread.py", line 221, in main
Jun 12 01:01:37 stack neutron-server[15077]: result = function(*args, **kwargs)
Jun 12 01:01:37 stack neutron-server[15077]: File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py", line 92, in do_sync
Jun 12 01:01:37 stack neutron-server[15077]: self.sync_networks_ports_and_dhcp_opts(ctx)
Jun 12 01:01:37 stack neutron-server[15077]: File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py", line 857, in sync_networks_ports_and_dhcp_opts
Jun 12 01:01:37 stack neutron-server[15077]: db_segments = self.segments_plugin.get_segments(
Jun 12 01:01:37 stack neutron-server[15077]: AttributeError: 'NoneType' object has no attribute 'get_segments'
vagrant@stack:~$ sudo journalctl --unit devstack@q-svc --since today > neutron.log
vagrant@ stack:/ opt/stack/ neutron$ git log | head -10 5544cefbf30c878 aa49efc31f
commit 4de18104ae88a83
Merge: 76b2ace079 483f468fdd
Author: Zuul <email address hidden>
Date: Thu Jun 11 21:02:59 2020 +0000
Merge "[OVN] Create localnet port for each created segment"
commit 76b2ace0790e3f5 df19f7d4425aa26 c966b373a6 stack:/ opt/stack/ neutron$ git log | head -20 5544cefbf30c878 aa49efc31f
Merge: 646d2db6d1 eb46081150
Author: Zuul <email address hidden>
vagrant@
commit 4de18104ae88a83
Merge: 76b2ace079 483f468fdd
Author: Zuul <email address hidden>
Date: Thu Jun 11 21:02:59 2020 +0000
Merge "[OVN] Create localnet port for each created segment"