Google Cloud SDK install on OS X: (gcloud.components.list) Failed to fetch component listing from server

After turning off ipv6 support, the tool works like a charm. Looks like gcloud can not work gracefully with ipv6...

Disable ipv6:

networksetup -setv6off Wi-Fi

Enable ipv6:

networksetup -setv6automatic Wi-Fi

Note: While investigating this, I was also able to make it work by using a very long timeout — 120 seconds. This wouldn't be practical, though, for most use cases due to the long delays it would introduce for each command.

The timeout is located in google-cloud-sdk/lib/googlecloudsdk/core/updater/installers.py at line 36 called TIMEOUT_IN_SEC