]> 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)
committerGerrit Code Review <review@openstack.org>
Thu, 6 Feb 2014 12:38:53 +0000 (12:38 +0000)
commit3799efe792700e7736666c40cc42c265eee09230
treee5fa5dd64bf7bd43c10fd1d2a424fd23abf651be
parentc6691a07e129d6789c1a1615986e7d4bf108469e
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