Extra variables in nova's api-paste-ini file in authtoken filter middleware

Asked by Deepak Garg

After a devstack install I see the following variables in authtoken filter in nova's api-paste-ini file.
-----------------------------------------------------------------------------------------------------------
paste.filter_factory = keystone.middleware.auth_token:filter_factory
service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_uri = http://127.0.0.1:5000/
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
------------------------------------------------------------------

Now all the auth_* variables are being used in middleware.auth_token.py file. But the service_* variables are not being used in the code anywhere. Why are those variables defined ?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Deepak Garg
Solved:
Last query:
Last reply:
Revision history for this message
Joseph Heck (heckj) said :
#1

The server_* variables are no longer used - but are there because they simply haven't been cleaned out at this point. WIth devstack gating all changes, we're making slow, backwards compatible changes as we move forward, and the final step of those changes (cleanup of old variables) sometimes doesn't happen. This is likely one of those cases.

The Essex RC1 auth_token middleware uses:
 * auth_host
 * auth_port
 * auth_protocol
 * admin_tenant_name
 * admin_user
 * admin_password

to function within Nova, Glance, etc.

Revision history for this message
Deepak Garg (deepak.garg) said :
#2

Thanks Joe. Launched a bug for this: https://bugs.launchpad.net/devstack/+bug/966287