OS_TENANT options should not be publicly advertised

Bug #1445208 reported by Ian Cordasco
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Wishlist
Unassigned

Bug Description

As of Kilo, we've changed all OS_TENANT_* options to OS_PROJECT_* options. The client now accepts both but should only advertise support for OS_PROJECT_{ID,NAME} and accept OS_TENANT_{ID,NAME} as a fallback.

We also likely do not need to support --os-service-type

Louis Taylor (kragniz)
Changed in python-glanceclient:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Dolph Mathews (dolph) wrote :

+1. Sam-I-Am also reported that OS_PROJECT_NAME apparently wasn't being used by glanceclient - when he switched from using OS_PROJECT_NAME to OS_TENANT_NAME, the operation he was attempting suddenly succeeded.

Changed in python-glanceclient:
assignee: nobody → Ritesh (rsritesh)
Changed in python-glanceclient:
assignee: Ritesh (rsritesh) → nobody
Changed in python-glanceclient:
assignee: nobody → Kairat Kushaev (kkushaev)
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

I am afraid we cannot get rid of service type as stated here service type can be used in future to receive non-standart endpoints: http://dolphm.com/openstack-keystone-service-catalog/.

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

As you can see here: https://github.com/openstack/python-glanceclient/blob/master/glanceclient/shell.py#L305
glanceclient is trying to use project_id/project_name when possible. So need to add warn message
I also would like to mark tenant_id/tenant_name as deprecated because now we had 2 arguments with the same goal.

Ian Cordasco (icordasc)
Changed in python-glanceclient:
assignee: Kairat Kushaev (kkushaev) → nobody
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

I don't think we are advertising OS_TENANT_*:

$ git grep OS_TENANT
glanceclient/shell.py: 'OS_PROJECT_NAME', 'OS_TENANT_NAME'))
glanceclient/shell.py: 'OS_PROJECT_ID', 'OS_TENANT_ID'))
glanceclient/tests/unit/test_shell.py: 'OS_TENANT_NAME': DEFAULT_TENANT_NAME,
glanceclient/tests/unit/test_shell.py: self.assertEqual(self.auth_env['OS_TENANT_NAME'],
glanceclient/tests/unit/test_shell.py: if 'OS_TENANT_NAME' in os.environ:
glanceclient/tests/unit/test_shell.py: self.make_env(exclude='OS_TENANT_NAME')
glanceclient/tests/unit/test_shell.py: if 'OS_TENANT_NAME' in os.environ:
glanceclient/tests/unit/test_shell.py: self.make_env(exclude='OS_TENANT_NAME')
glanceclient/tests/unit/v1/test_shell.py: 'OS_TENANT_ID': 'tenant_id',
glanceclient/tests/unit/v2/test_shell_v2.py: 'OS_TENANT_ID': 'tenant_id',

As of 9e8fcdb, we are only using OS_TENANT_* for compatibility reasons. I'll consider this bug as having been fixed a while ago. Feel free to reopen if you think this is still an issue.

Changed in python-glanceclient:
status: Confirmed → Fix Released
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.