Allow freezer to use oslo libraries

Registered by Saad Zaher

Allow freezer to use oslo.log instead of using native python logging component, this will force us to configuration file to pass the default logging parameters to freezer. Suggested to use ~/.freezer/freezer.conf as we already creating this folder ~/.freezer/ to store some metadata and log for non-sudo users.

Also, this will allow freezer scheduler to define custom logging parameters as well as the location for log files in jobs under a certain config group:

Parameters to be added to freezer arguments:

--log-conf : points to custom log configuration file

Parameters to be added to freezer job config file:

[oslo-log]
log_file = /path/to/file
log_x= x paramter
... and so on

Blueprint information

Status:
Complete
Approver:
Fausto Marzi
Priority:
High
Drafter:
Saad Zaher
Direction:
Approved
Assignee:
Saad Zaher
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Saad Zaher
Completed by
Saad Zaher

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/using-oslo-libs,n,z

Addressed by: https://review.openstack.org/239905
    Switch freezer-api to oslo.log

Addressed by: https://review.openstack.org/252568
    Switch freezer-scheduler to oslo.config and oslo.log switch freezer-scheduler to use oslo.config and switch from native python logging module to oslo.log This commit includes: - using oslo.config for parsing cli and config files options - using oslo.log i

Addressed by: https://review.openstack.org/280827
    Switch freezer-agent to oslo.config and oslo.log

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.