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

Asked by Deepak Garg on 2012-03-25

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 =
service_port = 5000
auth_uri =
auth_host =
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

English Edit question
OpenStack Identity (keystone) Edit question
No assignee Edit question
Solved by:
Deepak Garg
Last query:
Last reply:
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.

Deepak Garg (deepak.garg) said : #2

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