yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #33862
[Bug 1466476] [NEW] Change of the default value of user_identity in the log format
Public bug reported:
A default value of user_identity in the log format is user_id and
project_id[1].
For example:
user_name:admin
user_id:765fcde1b35349a4b3b06c227df90d18
project_name:admin
project_id:0862ba8c3497455a8fdf40c49f0f264
the following logs are part of "neutron net-list" result.
2015-06-18 19:26:53.636 15006 INFO neutron.plugins.ml2.managers [req-7e8c308e-840f-4a0d-9e1e-b6a0682aa9c2 765fcde1b35349a4b3b06c227df90d18 0862ba8c3497455a8fdf40c49f0f2644 - - -] Extended network dict for driver 'port_security'
2015-06-18 19:26:53.643 15006 INFO neutron.wsgi [req-7e8c308e-840f-4a0d-9e1e-b6a0682aa9c2 765fcde1b35349a4b3b06c227df90d18 0862ba8c3497455a8fdf40c49f0f2644 - - -] 192.168.122.141 - - [18/Jun/2015 19:26:53] "GET /v2.0/networks.json HTTP/1.1" 200 1394 0.309419
In this case, user should refer to keystone to find user name and
project name from this log.
Changing the user_id and project_id to the user_name and project_name in order to easily discriminate when and who an API has been executed.
Like the following:
2015-06-18 19:28:25.002 15781 INFO neutron.plugins.ml2.managers [req-4e6f0393-a613-41ba-9064-2b88af3c2686 admin admin - - -] Extended network dict for driver 'port_security'
2015-06-18 19:28:25.008 15781 INFO neutron.wsgi [req-4e6f0393-a613-41ba-9064-2b88af3c2686 admin admin - - -] 192.168.122.141 - - [18/Jun/2015 19:28:25] "GET /v2.0/networks.json HTTP/1.1" 200 1394 0.311092
[1]
If logging_context_format_string in neuteon.conf is not set.
** Affects: neutron
Importance: Undecided
Assignee: Daisuke Fujita (fuzita-daisuke)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Daisuke Fujita (fuzita-daisuke)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1466476
Title:
Change of the default value of user_identity in the log format
Status in OpenStack Neutron (virtual network service):
New
Bug description:
A default value of user_identity in the log format is user_id and
project_id[1].
For example:
user_name:admin
user_id:765fcde1b35349a4b3b06c227df90d18
project_name:admin
project_id:0862ba8c3497455a8fdf40c49f0f264
the following logs are part of "neutron net-list" result.
2015-06-18 19:26:53.636 15006 INFO neutron.plugins.ml2.managers [req-7e8c308e-840f-4a0d-9e1e-b6a0682aa9c2 765fcde1b35349a4b3b06c227df90d18 0862ba8c3497455a8fdf40c49f0f2644 - - -] Extended network dict for driver 'port_security'
2015-06-18 19:26:53.643 15006 INFO neutron.wsgi [req-7e8c308e-840f-4a0d-9e1e-b6a0682aa9c2 765fcde1b35349a4b3b06c227df90d18 0862ba8c3497455a8fdf40c49f0f2644 - - -] 192.168.122.141 - - [18/Jun/2015 19:26:53] "GET /v2.0/networks.json HTTP/1.1" 200 1394 0.309419
In this case, user should refer to keystone to find user name and
project name from this log.
Changing the user_id and project_id to the user_name and project_name in order to easily discriminate when and who an API has been executed.
Like the following:
2015-06-18 19:28:25.002 15781 INFO neutron.plugins.ml2.managers [req-4e6f0393-a613-41ba-9064-2b88af3c2686 admin admin - - -] Extended network dict for driver 'port_security'
2015-06-18 19:28:25.008 15781 INFO neutron.wsgi [req-4e6f0393-a613-41ba-9064-2b88af3c2686 admin admin - - -] 192.168.122.141 - - [18/Jun/2015 19:28:25] "GET /v2.0/networks.json HTTP/1.1" 200 1394 0.311092
[1]
If logging_context_format_string in neuteon.conf is not set.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1466476/+subscriptions
Follow ups
References