nova list command process
I do nova --debug list command. But i find there are three curl request.
DEBUG (session:248) REQ: curl -g -i -X GET http://172.30.0.3:5000/v2.0 -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 http://172.30.0.3:8774/v2.1/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ac35cbc92d0f5b71c3c6e83df4b2b25dd0508349"
DEBUG (session:248) REQ: curl -g -i -X GET http://172.30.0.3:8774/v2.1/201c10354c684177abe4d4f612ec4dc0/servers/detail -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
- who send these three requests? Since it prints on the terminal, I think it may be the keystoneclient...?
- 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
Thanks