← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1933802] Re: missing global_request_id in neutron_lib context from_dict method

 

Reviewed:  https://review.opendev.org/c/openstack/neutron-lib/+/859813
Committed: https://opendev.org/openstack/neutron-lib/commit/9ecd5995b6c598cee931087bf13fdd166f404034
Submitter: "Zuul (22348)"
Branch:    master

commit 9ecd5995b6c598cee931087bf13fdd166f404034
Author: Kiran Pawar <kinpaa@xxxxxxxxx>
Date:   Thu Sep 29 08:40:30 2022 +0000

    Use oslo_context.from_dict() for context generation
    
    Use RequestContext.from_dict in oslo_context to generate context, and
    add/update needed attr such as user_id, tenant_id, tenant_name and
    timestamp.
    
    Closes-bug: #1933802
    Change-Id: I0527eb5fa8d32d97ca45e44d1b154b6529b3f847


** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  missing global_request_id in neutron_lib context from_dict method

Status in neutron:
  Fix Released

Bug description:
  code:
  @classmethod
  def from_dict(cls, values):
      return cls(user_id=values.get('user_id', values.get('user')),
      ¦   ¦   ¦  tenant_id=values.get('tenant_id', values.get('project_id')),
      ¦   ¦   ¦  is_admin=values.get('is_admin'),
      ¦   ¦   ¦  roles=values.get('roles'),
      ¦   ¦   ¦  timestamp=values.get('timestamp'),
      ¦   ¦   ¦  request_id=values.get('request_id'),
      ¦   ¦   ¦  #global_request_id=values.get('global_request_id'),
      ¦   ¦   ¦  tenant_name=values.get('tenant_name'),
      ¦   ¦   ¦  user_name=values.get('user_name'),
      ¦   ¦   ¦  auth_token=values.get('auth_token'))

  project: neutron_lib
  path: neutron_lib/context.py

  please note the comment line, which should have been passed.

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



References