Why does openstack client send two POSTs to /auth/tokens

asked 2016-09-26 14:50:57 -0500

ikovacev gravatar image

updated 2016-09-27 11:21:52 -0500

rbowen gravatar image

When I make any kind of openstack client command it always sends two POSTs to /v3/auth/tokens to keystone and gets two tokens. I confirmed this with --debug option and by sniffing the traffic:

# openstack server list --debug

Making authentication request to http://keystone.pod1.com:5000/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 201 4237
...
Instantiating identity client: <class 'keystoneclient.v3.client.Client'>
...
Making authentication request to http://keystone.pod1.com:5000/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 201 4237

What is the reason for this?

edit retag flag offensive close merge delete