/var/log/neutron/server.log should only contain logs from neutron-server

Bug #1371629 reported by Eugene Nikanorov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Bogdan Dobrelya

Bug Description

Currently /var/log/server.log contains all logs from all neutron components: neutron-server, l3 agent, dhcp agent, etc.

That unnecessarily increases log file size and complicates log analysis.

/var/log/server.log should contain Neutron-server logs only.

Tags: neutron
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

Given the importance of log analysis for QAs and support team, I'd give this critical or high priority.
The fix should be fairly simple.

tags: added: neutron
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Priority is 'Critical' because we need this fix to have an ability to debug other bug with HA mode and L3 agent:
https://bugs.launchpad.net/fuel/+bug/1371561

Changed in fuel:
status: New → Confirmed
importance: Undecided → High
importance: High → Critical
milestone: none → 5.1
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

IMHO the bug is not critical. If logging need to be changed for debug, that could be done manually

Changed in fuel:
importance: Critical → High
milestone: 5.1 → 6.0
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

All neutron agents logs *are* separated from server, please look at /var/log/neutron/*.log
e.g.
root@node-1:~# ls /var/log/neutron/
dhcp-agent.log l3-agent.log neutron-ns-metadata-proxy-21c30e1e-e54c-4873-b72b-916bcb34b117.log rescheduling.log server.log.1.gz
fdb-cleaner.log metadata-agent.log openvswitch-agent.log server.log

Changed in fuel:
status: Confirmed → Invalid
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

The problem is in server.log file which contains logs from agents as well, while it only should contain logs from neutron-server

Changed in fuel:
status: Invalid → Confirmed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Please clarify how I can identify these log entries in server.log, are there any 100% sure matching templates?

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

You can identify them by looking at the prefix path of the component which is logging. You'll see lots of log lines containing messages from the agents. I'll attach a portion of such logs to illustrate the issue

Changed in fuel:
status: Incomplete → Confirmed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Thank you for clarification, yes, please attach some - examples are really welcome.

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bogdan Dobrelya (bogdando)
tags: added: fuel-lib-neutron
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

@Eugene, please provide some examples. In order to investigate and fix, I really need to understand how could I be 100% sure either some given log line belongs to agent or to server.

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

Sorry for long delay.
Here is a copy-paste from server.log of one of the custom ISO (6.0):

http://paste.openstack.org/show/121160/

Pretty much everything matching prefix 'neutron.agent' in a log line is logged by agents, not neutron-server.

Mike Scherbakov (mihgen)
tags: removed: fuel-lib-neutron
Changed in fuel:
status: Incomplete → Confirmed
Changed in fuel:
assignee: Bogdan Dobrelya (bogdando) → MOS Neutron (mos-neutron)
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Neutron agents should be run with explicitly set --log-file destination

Changed in fuel:
assignee: MOS Neutron (mos-neutron) → Bogdan Dobrelya (bogdando)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #53

"build_id": "2014-10-28_00-01-12", "ostf_sha": "f47fd1d66a7255213ee075d5c11b8f111f922000", "build_number": "53", "auth_required": true, "api": "1.0", "nailgun_sha": "fb18068382d522b735ecf446c0f4166c129269fb", "production": "docker", "fuelmain_sha": "f3ad22d12c26794a05e62d46317fa1e47f7f1138", "astute_sha": "97eea90efe0a1f17b4934919d6e459d270c10372", "feature_groups": ["mirantis", "techpreview"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-10-28_00-01-12", "ostf_sha": "f47fd1d66a7255213ee075d5c11b8f111f922000", "build_number": "53", "api": "1.0", "nailgun_sha": "fb18068382d522b735ecf446c0f4166c129269fb", "production": "docker", "fuelmain_sha": "f3ad22d12c26794a05e62d46317fa1e47f7f1138", "astute_sha": "97eea90efe0a1f17b4934919d6e459d270c10372", "feature_groups": ["mirantis", "techpreview"], "release": "6.0", "fuellib_sha": "b8d244a900b25bed8f597e99b309f9ee4ad8ae56"}}}, "fuellib_sha": "b8d244a900b25bed8f597e99b309f9ee4ad8ae56"

Changed in fuel:
status: Fix Committed → Fix Released
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.