[openstack-dev] [neutron] Why does nova.network.neutronv2.get_client(context, admin=True) drop auth_token?

Roman Verchikov rverchikov at mirantis.com
Thu Aug 29 00:12:41 UTC 2013


Hi stackers!

Sorry for the stupid question, but why does nova.network.neutronv2.get_client() [1] drop auth_token for admin? Is it really necessary to make another check for username/password when trying to get a list of ports or floating IPs?.. 

When keystone is configured with LDAP backed this leads to a bunch of LDAP requests which tend to be quite slow. Plus those LDAP requests could have been simply skipped when keystone is configured with token cache enabled.

Thanks,
Roman 

[1] https://github.com/openstack/nova/blob/master/nova/network/neutronv2/__init__.py#L68


More information about the OpenStack-dev mailing list