Glance service still sets tenant (which is an old name) and it should move to project_id in glance context object

Bug #1570226 reported by Praveen Kapoor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Praveen Kapoor

Bug Description

following is the glance context information which still sets tenant and it should set to project_id instead.

(Pdb) pprint(req.context.to_dict())

{'auth_token': '4fce43df6b7941c5860d8fce69ab8402',
 'domain': None,
 'is_admin': False,
 'project_domain': None,
 'read_only': False,
 'request_id': 'req-abc33de4-0471-431e-a6e8-f4becbe328ac',
 'resource_uuid': None,
 'roles': [u'self_service'],
 'show_deleted': False,
 'tenant': u'6dc691a7b3b94004ac9873b8c6a28e69',
 'user': u'e1c413a8e893d7e0edf4b838482f80ed9e91123747c2332d23618bf392d4501d',
 'user_domain': None,
 'user_identity': 'e1c413a8e893d7e0edf4b838482f80ed9e91123747c2332d23618bf392d4501d 6dc691a7b3b94004ac9873b8c6a28e69 - - -'}

Revision history for this message
Divya K Konoor (dikonoor) wrote :

Keystone authtoken continues to set the old headers for backward compatibility:

https://github.com/openstack/keystonemiddleware/blob/master/keystonemiddleware/auth_token/_request.py#L159
https://github.com/openstack/keystonemiddleware/blob/master/keystonemiddleware/auth_token/_request.py#L100

and glance context continues to use the older terminology

https://github.com/openstack/glance/blob/master/glance/api/middleware/context.py#L131

But glance use tenant in more than just context; so all those places also would need to be fixed:

Changed in glance:
assignee: nobody → Praveen Kapoor (pravkapo)
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

You better propose project instead of tenant to oslo.context:
https://github.com/openstack/oslo.context/blob/master/oslo_context/context.py#L64
After that other projects can consume it.

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.