When deploying a workload, Juju will occasionally fail to install a machine agent despite the instance coming online.
http://paste.ubuntu.com/14478704/ - cloud-init output
root@machine-9:~# curl -sSfw "tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s" --noproxy * --insecure -o /var/lib/juju/tools/1.26-alpha3-trusty-amd64/tools.tar.gz https://10.0.0.4:17070/tools/1.26-alpha3-trusty-amd64
tools from https://10.0.0.4:17070/tools/1.26-alpha3-trusty-amd64 downloaded: HTTP 200; time 1.484s; size 20625085 bytes; speed 13900019.000 bytes/s
After some time, while investigating, I was able to download the agent. This happens about once every 4 instances I launch with 1.26-alpha3
Looks like the instance was not able to get to the state server to get the tools:
+ printf Attempt 5 to download tools from %s...\n https:/ /10.0.0. 4:17070/ tools/1. 26-alpha3- trusty- amd64 /10.0.0. 4:17070/ tools/1. 26-alpha3- trusty- amd64... juju/tools/ 1.26-alpha3- trusty- amd64/tools. tar.gz https:/ /10.0.0. 4:17070/ tools/1. 26-alpha3- trusty- amd64
Attempt 5 to download tools from https:/
+ curl -sSfw tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --noproxy * --insecure -o /var/lib/
curl: (7) Failed to connect to 10.0.0.4 port 17070: No route to host