← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1460379] [NEW] multiline log from utils.execute is difficult to be parsed/analyzed by line-oriented log system

 

Public bug reported:

utils.execute() outputs a command line log with new lines.
As a result, the first line sometimes contains no useful information and it is difficult for line-oriented log analyzing system to parse/analyze this. Not a small number of current log analyzers are line-oriented, e.g., grep, elastic search and so on.
It would be nice if it is output in a single line.

2015-05-10 02:44:28.860 4249 ERROR neutron.agent.linux.utils [req-4e926dd9-76f9-4c99-9cde-453c8124e0a5 None None] 
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', 'set', 'Port', 'tap7cfd0136-4e', 'tag=4095']
Exit code: 1
Stdout: ''
Stderr: 'ovs-vsctl: no row "tap7cfd0136-4e" in table Port\n'

** Affects: neutron
     Importance: Low
     Assignee: Akihiro Motoki (amotoki)
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1460379

Title:
  multiline log from utils.execute is difficult to be parsed/analyzed by
  line-oriented log system

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  utils.execute() outputs a command line log with new lines.
  As a result, the first line sometimes contains no useful information and it is difficult for line-oriented log analyzing system to parse/analyze this. Not a small number of current log analyzers are line-oriented, e.g., grep, elastic search and so on.
  It would be nice if it is output in a single line.

  2015-05-10 02:44:28.860 4249 ERROR neutron.agent.linux.utils [req-4e926dd9-76f9-4c99-9cde-453c8124e0a5 None None] 
  Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', 'set', 'Port', 'tap7cfd0136-4e', 'tag=4095']
  Exit code: 1
  Stdout: ''
  Stderr: 'ovs-vsctl: no row "tap7cfd0136-4e" in table Port\n'

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1460379/+subscriptions


Follow ups

References