Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
0.14.0-beta3
-
None
-
None
-
macOSX
pycharm 2.7.3
Description
When I attempt to use the Linode driver. Things like list_nodes and list_images are taking FOREVER. From what I understand, curl uses v6 by default if it can. So I tried a couple things:
After turning debug on, I tested the vanilla output:
curl -i -X GET -H 'Host: api.linode.com' -H 'X-LC-Request-ID: 4492557272' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.1 (Linode) ' --compress 'https://api.linode.com:443/?api_key=xxxxxxxxxxxx&api_responseFormat=json&api_action=avail.distributions'
And then the same curl except with the v4 flag:
curl -4 -i -X GET -H 'Host: api.linode.com' -H 'X-LC-Request-ID: 4492557272' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.1 (Linode) ' --compress 'https://api.linode.com:443/?api_key=xxxxxxxxxxxxx&api_responseFormat=json&api_action=avail.distributions'
There is a drastic difference in the time it takes to execute the call. Linode driver should use the -4 flag for all calls.