bootstrap fails if getting tools from private bucket

Bug #1158187 reported by John A Meinel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Low
Unassigned

Bug Description

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

John A Meinel (jameinel)
tags: added: hp openstack windows
Curtis Hovey (sinzui)
tags: added: hp-cloud
removed: hp
Curtis Hovey (sinzui)
Changed in juju-core:
importance: High → Low
tags: added: test-needed
Revision history for this message
Matt Rae (mattrae) wrote :

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-
1.16.3-precise-amd64.tgz in my browser, it downloads every time.

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"
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-dist.s3.amazonaws.com/
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-precise-amd64 from https://juju-dist.s3
.amazonaws.com/tools/releases/juju-1.16.3-precise-amd64.tgz
copying 1.16.3-precise-amd64 from https://juju-dist.s3.amazonaws.com/tools/releases/juju-1.16.3-precise-amd64.
tgz
2013-11-20 06:12:44 INFO juju.environs.sync sync.go:157 copying tools/releases/juju-1.16.3-precise-amd64.tgz
copying tools/releases/juju-1.16.3-precise-amd64.tgz
2013-11-20 06:12:44 ERROR juju supercommand.go:282 Get https://juju-dist.s3.amazonaws.com/tools/releases/juju-
1.16.3-precise-amd64.tgz: EOF

Revision history for this message
Matt Rae (mattrae) wrote :

oops i think my bug is different.. I'll open a separate bug

Curtis Hovey (sinzui)
tags: added: openstack-provider
removed: openstack
Curtis Hovey (sinzui)
tags: removed: hp-cloud
Changed in juju-core:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.