← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1498565] Re: remove imported library DEBUG statements from neutron logs

 

An analysis of the logs from a gate run reveals the following
information:

Category	Q-agt.txt	Q-dhcp.txt	Q-l3.txt	Q-lbaas.txt	Q-lbaasv2.txt	Q-meta.txt	Q-metering.txt	Q-svc.txt	Total
Lines	1038683	241707	502911	3906	2223	44060	5157	879809	2718456
amqp	0	0	0	0	0	0	0	0	0
iso	0	0	0	0	0	0	0	0	0
keystone	0	0	0	0	0	0	0	21852	21852
oslo_concurrency	51642	20456	21986	46	4	12104	1204	53	107495
oslo_db	0	0	0	0	0	0	0	9	9
oslo_messaging	9763	6826	4671	50	85	1200	322	159	23076
olso_service	156	1602	2011	2674	360	1485	1617	5235	15140
requests	0	0	0	0	0	0	0	0	0
routes	0	0	0	0	0	0	0	0	0
sqlalchemy	0	0	0	0	0	0	0	0	0
stevedore	0	0	0	0	0	0	0	0	0
urllib3	0	0	0	0	0	0	0	0	0
	0.0592683234	0.1195000559	0.057004122	0.7091653866	0.2019793072	0.3356559237	0.609462866	0.031038555	0.061642344

So, neutron generates about 2.7 M lines of logs of which dependent
libraries produce 6%.  Marking this bug as opinion for now


** Changed in: neutron
       Status: In Progress => Opinion

** Changed in: neutron
     Assignee: Ryan Moats (rmoats) => (unassigned)

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

Title:
  remove imported library DEBUG statements from neutron logs

Status in neutron:
  Opinion

Bug description:
  Today, neutron log files include debug statements from imported
  libraries that are not particularly useful.

  Selected examples:

  q-agt.log:
  --------

  2015-09-21 05:58:50.765 ^[[00;32mDEBUG oslo_rootwrap.client
  [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mPopen for ['sudo',
  '/usr/local/bin/neutron-rootwrap-daemon',
  '/etc/neutron/rootwrap.conf'] command has been instantiated^[[00m
  ^[[00;33mfrom (pid=17560) _initialize /usr/local/lib/python2.7/dist-
  packages/oslo_rootwrap/client.py:76^[[00m

  2015-09-21 05:58:51.666 ^[[00;32mDEBUG
  oslo_messaging._drivers.amqpdriver [^[[01;36mreq-9ae26b0d-cfb4-4417
  -b54f-13970adc62ed ^[[00;36mNone None^[[00;32m]
  ^[[01;35m^[[00;32mMSG_ID is 6430fa63de2f46afa0d19e30db724fa7^[[00m
  ^[[00;33mfrom (pid=17560) _send /usr/local/lib/python2.7/dist-
  packages/oslo_messaging/_drivers/amqpdriver.py:392^[[00m

  2015-09-21 05:58:51.231 ^[[00;32mDEBUG oslo_messaging._drivers.amqp
  [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mPool creating new
  connection^[[00m ^[[00;33mfrom (pid=17560) create
  /usr/local/lib/python2.7/dist-
  packages/oslo_messaging/_drivers/amqp.py:103^[[00m

  q-l3.log:

  2015-08-27 11:19:18.027 ^[[00;32mDEBUG oslo_concurrency.lockutils
  [^[[01;36mreq-c6a9f3dc-8254-4634-ae2b-0c5b916a70bc ^[[00;36mNone
  None^[[00;32m] ^[[01;35m^[[00;32mAcquired semaphore
  "singleton_lock"^[[00m ^[[00;33mfrom (pid=20186) lock
  /usr/local/lib/python2.7/dist-
  packages/oslo_concurrency/lockutils.py:198^[[00m

  2015-08-27 11:19:18.111 ^[[00;32mDEBUG oslo_messaging._drivers.amqpdriver [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mMSG_ID is e1322001df9c4886b94c8270d053f100^[[00m ^[[00;33mfrom (pid=20186) _send /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:392^[[00m
  /

  2015-08-27 11:19:18.170 ^[[00;32mDEBUG oslo_service.loopingcall
  [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mFixed interval looping call
  'neutron.agent.l3.agent.L3NATAgentWithStateReport._report_state'
  sleeping for 29.94 seconds^[[00m ^[[00;33mfrom (pid=20186) _run_loop
  /usr/local/lib/python2.7/dist-
  packages/oslo_service/loopingcall.py:121^[[00m

  q-svc.log:

  2015-09-18 11:59:24.674 ^[[00;32mDEBUG keystoneclient.session
  [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mREQ: curl -g -i --cacert
  "/opt/stack/data/ca-bundle.pem" -X GET http://10.18.0.21:35357 -H
  "Accept: application/json" -H "User-Agent: neutron/7.0.0.0b4.dev217
  keystonemiddleware.auth_token/2.2.0"^[[00m ^[[00;33mfrom (pid=10920)
  _http_log_request /usr/local/lib/python2.7/dist-
  packages/keystoneclient/session.py:198^[[00m

  2015-09-18 11:59:25.782 ^[[00;32mDEBUG oslo_policy._cache_handler
  [^[[01;36mreq-c533f8b0-f260-4a2b-8e61-de2c1f801980 ^[[00;36mtempest-
  verify_tempest_config-176885932
  062fbda3c2cd4966bfacf772bf0f0ed2^[[00;32m] ^[[01;35m^[[00;32mReloading
  cached file /etc/neutron/policy.json^[[00m ^[[00;33mfrom (pid=10920)
  read_cached_file /usr/local/lib/python2.7/dist-
  packages/oslo_policy/_cache_handler.py:38^[[00m

  2015-09-18 12:19:02.534 ^[[00;32mDEBUG oslo_concurrency.lockutils
  [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mLock "manager" acquired by
  "neutron.manager._create_instance" :: waited 0.000s^[[00m
  ^[[00;33mfrom (pid=14653) inner /usr/local/lib/python2.7/dist-
  packages/oslo_concurrency/lockutils.py:253^[[00m

  2015-09-18 12:19:02.778 ^[[00;32mDEBUG oslo_db.sqlalchemy.engines
  [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mMySQL server mode set to
  STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION^[[00m
  ^[[00;33mfrom (pid=14653) _check_effective_sql_mode
  /usr/local/lib/python2.7/dist-
  packages/oslo_db/sqlalchemy/engines.py:256^[[00m

  2015-09-18 11:56:23.468 ^[[00;32mDEBUG oslo_messaging._drivers.amqp
  [^[[01;36mreq-a46b008e-3fcc-4741-b138-0bcc8f7a8be7 ^[[00;36mNone
  None^[[00;32m] ^[[01;35m^[[00;32mPool creating new connection^[[00m
  ^[[00;33mfrom (pid=10891) create /usr/local/lib/python2.7/dist-
  packages/oslo_messaging/_drivers/amqp.py:103^[[00m

  2015-09-18 11:56:24.600 ^[[00;32mDEBUG oslo_service.service
  [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mFull set of CONF:^[[00m
  ^[[00;33mfrom (pid=10891) wait /usr/local/lib/python2.7/dist-
  packages/oslo_service/service.py:505^[[00m

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


References