From a3948bed9f3df7c162cdd0252a1b31aedf2d553e Mon Sep 17 00:00:00 2001 From: Janki Chhatbar Date: Mon, 2 Jul 2018 14:27:41 +0530 Subject: [PATCH] ODL to log to file for containerised deployments ODL was configured to log to console and then access logs via docker logs. journal deletes older logs and sometimes the old logs are not available. Move back to logging to file, which is a default mechanism. https://github.com/openstack/tripleo-heat-templates/ blob/stable/queens/puppet/services/opendaylight-api.yaml#L68 All relevant changes are already merged. https://review.openstack.org/#/c/567469/ https://review.openstack.org/#/c/565756/ There is WIP patch to move to stand-alone log config file for Rocky. https://review.openstack.org/#/c/575416/ Change-Id: I686af4a85a3728b4583f376d28bdb1151845b25d Closes-Bug: 1779627 --- environments/neutron-opendaylight.yaml | 2 +- environments/services/neutron-opendaylight.yaml | 3 +-- releasenotes/notes/odl_file_logging-46ccf8ff1ad6af5b.yaml | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/odl_file_logging-46ccf8ff1ad6af5b.yaml diff --git a/environments/neutron-opendaylight.yaml b/environments/neutron-opendaylight.yaml index e9b1ac1146..ca89e9fa04 100644 --- a/environments/neutron-opendaylight.yaml +++ b/environments/neutron-opendaylight.yaml @@ -12,4 +12,4 @@ parameter_defaults: NeutronEnableForceMetadata: true NeutronMechanismDrivers: 'opendaylight_v2' NeutronServicePlugins: 'odl-router_v2,trunk' - NeutronPluginExtensions: 'port_security' + NeutronPluginExtensions: 'port_security' \ No newline at end of file diff --git a/environments/services/neutron-opendaylight.yaml b/environments/services/neutron-opendaylight.yaml index cde1883c0e..82fffd8a79 100644 --- a/environments/services/neutron-opendaylight.yaml +++ b/environments/services/neutron-opendaylight.yaml @@ -12,5 +12,4 @@ parameter_defaults: NeutronEnableForceMetadata: true NeutronPluginExtensions: 'port_security' NeutronMechanismDrivers: 'opendaylight_v2' - NeutronServicePlugins: 'odl-router_v2,trunk' - OpenDaylightLogMechanism: 'console' \ No newline at end of file + NeutronServicePlugins: 'odl-router_v2,trunk' \ No newline at end of file diff --git a/releasenotes/notes/odl_file_logging-46ccf8ff1ad6af5b.yaml b/releasenotes/notes/odl_file_logging-46ccf8ff1ad6af5b.yaml new file mode 100644 index 0000000000..bb8c50c543 --- /dev/null +++ b/releasenotes/notes/odl_file_logging-46ccf8ff1ad6af5b.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Moving to file logging for ODL as docker logs, sometimes, + miss older logs due to journal rollover.