Add dynamic logging support

Registered by Liyi Meng

This blueprint is to allow OpenStack admin dynamically configure logging level in nova services on-the-fly.

It extends nova-manage, allow OpenStack admin issue a request over AMQP toward all nova serices that are currently running, changing its logging level without rebooting those services.

The feature could be implemented as part of BaseRPCAPI which is already available in nova. Optionally, it can be separated in a new API, like ConfigRPCAPI in the future. Since OpenStack components are sharing similar architecture, this blueprint is also applicable to cinder, neutron, and other components.

Work items
– Update GetLogCommands class in file nova/cmd/manage.py to add a new command named level, which update the logging level of a service. Optionally, rename GetLogCommands into LogCommands

– Update nova/baserpc.py to add a client side and server side function, which reset the logging to expected level as issued from nova-manage command line interface.

Blueprint information

Status:
Started
Approver:
None
Priority:
Undefined
Drafter:
Liyi Meng
Direction:
Needs approval
Assignee:
Liyi Meng
Definition:
New
Series goal:
None
Implementation:
Started
Milestone target:
None
Started by
Liyi Meng

Related branches

Sprints

Whiteboard

I have a "Work In Progress" for this blueprint: https://review.openstack.org/#/c/82460/

Gerrit topic: https://review.openstack.org/#q,topic:bp/dynamic-logging,n,z

Addressed by: https://review.openstack.org/82460
    Add dynamic logging support

Addressed by: https://review.openstack.org/86357
    Propose dynamic logging for nova

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.