neutron-server setup log twice

Bug #1693691 reported by Duan Jiong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Wishlist
Brian Haley

Bug Description

When neutron-server start, config.setup_logging() called twice.
call stack is
boot_server
  |->config.setup_logging()
  |->_main_neutron_server
       |->eventlet_wsgi_server
            |->serve_wsgi
                 |->NeutronApiService.create()
                      |->config.setup_logging()

2017-05-26 15:12:34.908 30764 INFO neutron.common.config [-] Logging enabled!
2017-05-26 15:12:34.908 30764 INFO neutron.common.config [-] /usr/bin/neutron-server version 10.0.1
2017-05-26 15:12:34.909 30764 INFO neutron.common.config [-] Logging enabled!
2017-05-26 15:12:34.909 30764 INFO neutron.common.config [-] /usr/bin/neutron-server version 10.0.1
2017-05-26 15:12:34.926 30764 INFO neutron.manager [-] Loading core plugin: neutron.plugins.ml2.plugin.Ml2Plugin
2017-05-26 15:12:35.534 30764 INFO neutron.plugins.ml2.managers [-] Configured type driver names: ['vxlan', 'flat']
2017-05-26 15:12:35.549 30764 INFO neutron.plugins.ml2.drivers.type_flat [-] Arbitrary flat physical_network names allowed
2017-05-26 15:12:35.566 30764 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['flat', 'vxlan']
2017-05-26 15:12:35.567 30764 INFO neutron.plugins.ml2.managers [-] Registered types: ['flat', 'vxlan']
.....

Duan Jiong (duanjiong)
Changed in neutron:
assignee: nobody → Duan Jiong (duanjiong)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/468280

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/468280
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/869871

Changed in neutron:
assignee: Duan Jiong (duanjiong) → Brian Haley (brian-haley)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/869871
Committed: https://opendev.org/openstack/neutron/commit/07fd743dc98d4d39e187119c17d0db70be3c852d
Submitter: "Zuul (22348)"
Branch: master

commit 07fd743dc98d4d39e187119c17d0db70be3c852d
Author: Brian Haley <email address hidden>
Date: Wed Jan 11 16:29:22 2023 -0500

    Remove extra call to config_logging() for neutron-server

    Logging is setup early in neutron/service.py already.

    Change-Id: Ib1b42235032a179a77932b6e3049f50c41073bfd
    Closes-bug: #1693691

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 22.0.0.0rc1

This issue was fixed in the openstack/neutron 22.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/890937
Committed: https://opendev.org/openstack/neutron/commit/afcce6d7493faaa2acf94c01268a2551a1300d31
Submitter: "Zuul (22348)"
Branch: master

commit afcce6d7493faaa2acf94c01268a2551a1300d31
Author: Takashi Kajinami <email address hidden>
Date: Thu Aug 10 03:54:25 2023 +0900

    Initialize logger for rpc-server and wsgi script

    Currently logger is not properly initialized according to config
    options or process arguments when the neutron-rpc-server script or
    the api wsgi script is used. Because of this neutron does not generate
    the log files as expected when we deploy api using WSGI and use
    neutron-rpc-server, instead of the monolithic neutron-server.

    This ensures the logger is initialized even when these two scripts
    are used.

    Closes-Bug: #2030904
    Related-Bug: #1693691
    Change-Id: I13bcd36c237555e0ca60d5ffc214b8f3bf6e478f

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.