]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix passing keystone token to neutronclient instance
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 30 Jan 2014 12:42:29 +0000 (13:42 +0100)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:17 +0000 (15:20 +0800)
commit007b9e4b6043ce329a8c073cf29fbf6091c07012
tree9e4fa2746ca321b335f399284afa1d27cdf29b6f
parent04d23de3005bd3b29e9e23006c26774c9be7f278
Fix passing keystone token to neutronclient instance

Neutron client expects token to be passed as token= argument, while
neutron-metadata-agent passes auth_token= instead. This effectively makes the
client to authenticate against keystone each time it's instantiated. In
neutron-metadata-agent case, it means 'each time a client sends a metadata
request.'

The issue results in high cpu utilization on keystone side when simultaneously
invoking multiple nova instances with cloud-init.

Change-Id: I2a31f9c0c3cfa915975ecc53d71168a3895528d8
Closes-Bug: 1274487
neutron/agent/metadata/agent.py
neutron/tests/unit/test_metadata_agent.py