1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Force use_json=False
When debug + use_json are both set to True, the daemon crashes and stops
logging any entry. As the debug=True is kind of mandatory in all Neutron
stuff to be able to see what's going on, this patch forces use_json=False
so that the rest of Neutron can continue to be using use_json=True and
debug=True.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2025-04-07
Index: neutron-dynamic-routing/neutron_dynamic_routing/services/bgp/agent/entry.py
===================================================================
--- neutron-dynamic-routing.orig/neutron_dynamic_routing/services/bgp/agent/entry.py
+++ neutron-dynamic-routing/neutron_dynamic_routing/services/bgp/agent/entry.py
@@ -38,6 +38,11 @@ def main():
register_options()
common_config.register_common_config_options()
common_config.init(sys.argv[1:])
+
+ # Using debug=True and use_json=True crashes this daemon.
+ # This is a (bad) workaround.
+ cfg.CONF.use_json=False
+
config.setup_logging()
server = neutron_service.Service.create(
binary='neutron-bgp-dragent',
|