In this patch set if any error occurs during agent initialization
phase, then it terminates ovs neutron agent gracefully.
Closes-Bug: #
1351135
Co-Authored-By: Aman Kumar <amank@hp.com>
Co-Authored-By: Neethi Shasidhar <neethi209@gmail.com>
Change-Id: I14d091c73c8f8f4dfe70e7f9a7f7683b5fb0fd7f
# commands target xen dom0 rather than domU.
cfg.CONF.set_default('ip_lib_force_root', True)
- agent = OVSNeutronAgent(**agent_config)
+ try:
+ agent = OVSNeutronAgent(**agent_config)
+ except RuntimeError as e:
+ LOG.error(_LE("%s Agent terminated!"), e)
+ sys.exit(1)
signal.signal(signal.SIGTERM, agent._handle_sigterm)
# Start everything.