RequestContext needs to subclass oslo.context

Bug #1545033 reported by Ronald Bradford
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Ronald Bradford

Bug Description

As part of implementing the oslo.log app agnostic blueprint [1] to provide flexibility in logging thru all projects, project specific context classes need to subclass the oslo_context.context.RequestContext class. Manila is the only remaining TC approved project not presently doing this [2]

[1] https://blueprints.launchpad.net/oslo.log/+spec/app-agnostic-logging-parameters
[2] http://git.openstack.org/cgit/openstack/manila/tree/manila/context.py

This work is also needed to remove logging messages that use a dictionary object and not a context object to pass context. A separate bug will identify these sources in Manila.

Changed in manila:
assignee: nobody → Ronald Bradford (ronaldbradford)
Changed in manila:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/284819
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=f46df15d6438cda6b0f22984c2552b3710c66013
Submitter: Jenkins
Branch: master

commit f46df15d6438cda6b0f22984c2552b3710c66013
Author: Ronald Bradford <email address hidden>
Date: Thu Feb 25 17:05:57 2016 +0000

    Subclass context from oslo_context base class

    As part of providing app agnostic parameters for oslo.log all logging
    for TC approved projects need to use and subclass oslo.context
    RequestContext to utilize new get_logging_values() method.

    Closes-Bug: #1545033
    Implements: blueprint app-agnostic-logging-parameters [1]
    [1] https://blueprints.launchpad.net/oslo.log/+spec/app-agnostic-logging-parameters

    Change-Id: Id08a5274d0d7289b1a57c726468f45e1159c4b29

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/manila 2.0.0.0b3

This issue was fixed in the openstack/manila 2.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.