Testing on Windows, and bootstrapping against HP Cloud, it works if I set 'public-bucket-url'. If I do not, it finds the tools in the private bucket, but then fails with unexpected "EOF".
$ /d/dev/go/bin/juju bootstrap -e hp-jam --debug
JUJU:juju:bootstrap: 2013/03/20 16:48:22 INFO: environs/openstack: opening environment "hp-jam"
JUJU:juju:bootstrap: 2013/03/20 16:48:23 INFO: environs/openstack: bootstrapping environment "hp-jam"
JUJU:juju:bootstrap: 2013/03/20 16:48:33 INFO: environs: searching for tools compatible with version: 1.9.12-precise-amd64
JUJU:juju:bootstrap: 2013/03/20 16:48:35 INFO: environs/openstack: starting machine 0 in "hp-jam" running tools version "1.9.11-precise-amd64" from "https://region-a.geo-1.objects.hpcloudsvc.com/v1/AUTH_365e2f1e-aea0-44c5-93f4-0fe2eb1f2bcf/juju-dist/tools/juju-1.9.11-precise-amd64.tgz"
JUJU:juju:bootstrap: 2013/03/20 16:48:36 DEBUG: environs/openstack: openstack user data; 9059 bytes
JUJU:juju:bootstrap: 2013/03/20 16:48:44 INFO: environs/openstack: started instance "778453"
JUJU:juju:bootstrap: 2013/03/20 16:48:44 DEBUG: environs/openstack: terminating instances [778453]
JUJU:juju:bootstrap: 2013/03/20 16:48:45 ERROR: juju bootstrap command failed: cannot save state: cannot make Swift control container: failed to create container: juju-jamtest-0db6f8ba6be9, caused by: https://region-a.geo-1.objects.hpcloudsvc.com/v1/AUTH_365e2f1e-aea0-44c5-93f4-0fe2eb1f2bcf/juju-jamtest-0db6f8ba6be9%!(EXTRA string=failed executing the request), caused by: unexpected EOF error: cannot save state: cannot make Swift control container: failed to create container: juju-jamtest-0db6f8ba6be9, caused by: https://region-a.geo-1.objects.hpcloudsvc.com/v1/AUTH_365e2f1e-aea0-44c5-93f4-0fe2eb1f2bcf/juju-jamtest-0db6f8ba6be9%!(EXTRA string=failed executing the request), caused by: unexpected EOF
This happens frequently and it looks bad if "Step 1" fails 10 times before it works. It doesn't instill much trust in the reliability of juju.
When I load https:/ /juju-dist. s3.amazonaws. com/tools/ releases/ juju- precise- amd64.tgz in my browser, it downloads every time.
1.16.3-
What is going on in the Go http client that causes it to be this finicky?
ubuntu@ maas-precise: ~/charms$ juju -v bootstrap --constraints "tags=juju1000" dist.s3. amazonaws. com/ precise- amd64 from https:/ /juju-dist. s3 com/tools/ releases/ juju-1. 16.3-precise- amd64.tgz precise- amd64 from https:/ /juju-dist. s3.amazonaws. com/tools/ releases/ juju-1. 16.3-precise- amd64. juju-1. 16.3-precise- amd64.tgz juju-1. 16.3-precise- amd64.tgz /juju-dist. s3.amazonaws. com/tools/ releases/ juju- precise- amd64.tgz: EOF
verbose is deprecated with the current meaning, use show-log
2013-11-20 06:12:40 INFO juju.environs open.go:156 environment info already exists; using New not Prepare
2013-11-20 06:12:41 INFO juju.environs.tools tools.go:181 filtering tools by released version
2013-11-20 06:12:41 INFO juju.environs.tools tools.go:85 reading tools with major.minor version 1.16
2013-11-20 06:12:41 INFO juju.environs.tools tools.go:96 filtering tools by series: precise
2013-11-20 06:12:41 WARNING juju.cmd.juju bootstrap.go:204 no tools available, attempting to retrieve from htt
ps://juju-
2013-11-20 06:12:41 INFO juju.environs.sync sync.go:66 listing available tools
listing available tools
2013-11-20 06:12:44 INFO juju.environs.sync sync.go:90 found 34 tools
found 34 tools
2013-11-20 06:12:44 INFO juju.environs.sync sync.go:94 found 13 recent tools (version 1.16.3)
found 13 recent tools (version 1.16.3)
2013-11-20 06:12:44 INFO juju.environs.sync sync.go:100 listing target bucket
listing target bucket
2013-11-20 06:12:44 INFO juju.environs.sync sync.go:113 found 0 tools in target; 13 tools to be copied
found 0 tools in target; 13 tools to be copied
2013-11-20 06:12:44 INFO juju.environs.sync sync.go:143 copying 1.16.3-
.amazonaws.
copying 1.16.3-
tgz
2013-11-20 06:12:44 INFO juju.environs.sync sync.go:157 copying tools/releases/
copying tools/releases/
2013-11-20 06:12:44 ERROR juju supercommand.go:282 Get https:/
1.16.3-