nova list command process

asked 2016-09-15 20:26:03 -0500

SihanWang gravatar image

updated 2016-09-16 05:26:19 -0500

sunnyarora gravatar image

I do nova --debug list command. But i find there are three curl request.

DEBUG (session:248) REQ: curl -g -i -X GET -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.6"

RESP BODY: 404 Not Found

The resource could not be found.

DEBUG (session:248) REQ: curl -g -i -X GET -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ac35cbc92d0f5b71c3c6e83df4b2b25dd0508349"

DEBUG (session:248) REQ: curl -g -i -X GET -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}ac35cbc92d0f5b71c3c6e83df4b2b25dd0508349"

For the second request, i know it is for finding the right api version, so that is why we have three requests.

i have two questions

  1. who send these three requests? Since it prints on the terminal, I think it may be the keystoneclient...?
  2. If I set the -os-compute-api-version 2.1 or 2.5, it still has these three requests. It confused me...

Any ideas appreciated


edit retag flag offensive close merge delete