azure provider handles 307 poorly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Andrew Wilkins | ||
1.16 |
Fix Released
|
Critical
|
Ian Booth | ||
juju-core (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Saucy |
Won't Fix
|
High
|
Unassigned |
Bug Description
[Impact]
Users unable to use Azure cloud due to introduction of redirects in API
[Test Case]
juju bootstrap -e test-cloud-azure
#fails
[Regression Potential]
Update to gwacl library; minimal regression potential.
[Original bug report]
A recent azure test failed with "2014-01-16 01:46:29 ERROR juju supercommand.go:282 cannot start bootstrap instance: POST request failed (307: Temporary Redirect)
Command '('juju', '--show-log', 'bootstrap', '-e', 'test-cloud-azure', '--constraints', 'mem=2G')' returned non-zero exit status 1"
Given that this is a temporary redirect, perhaps it should be retried. Or perhaps a clearer error should be given to the user.
Also, subsequent bootstrap attempts fail with "Environment is already bootstrapped". If it really did fail to bootstrap, it should not report "Environment is already bootstrapped".
Related branches
- Ian Booth: Approve
-
Diff: 185 lines (+104/-3)3 files modifiedx509dispatcher.go (+35/-1)
x509dispatcher_test.go (+56/-2)
x509session.go (+13/-0)
- Juju Engineering: Pending requested
-
Diff: 11 lines (+1/-1)1 file modifieddependencies.tsv (+1/-1)
- Andrew Wilkins (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifieddependencies.tsv (+1/-1)
- Juju Engineering: Pending requested
-
Diff: 439 lines (+271/-3) (has conflicts)13 files modifiedcmd/juju/destroymachine.go (+1/-1)
cmd/juju/destroymachine_test.go (+4/-0)
cmd/juju/destroyservice.go (+1/-0)
cmd/juju/main_test.go (+2/-0)
cmd/jujud/bootstrap.go (+4/-0)
dependencies.tsv (+6/-1)
environs/httpstorage/storage.go (+4/-1)
provider/common/bootstrap_test.go (+4/-0)
provider/common/state.go (+90/-0)
provider/common/state_test.go (+141/-0)
scripts/win-installer/setup.iss (+4/-0)
state/apiserver/client/client_test.go (+6/-0)
version/version.go (+4/-0)
summary: |
- aws provider handles 307 poorly + azure provider handles 307 poorly |
tags: |
added: azure-provider removed: ec2-provider |
description: | updated |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | 1.18.0 → 1.17.3 |
description: | updated |
Changed in juju-core (Ubuntu): | |
status: | New → Fix Released |
Changed in juju-core (Ubuntu Saucy): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
description: | updated |
This looks like a regression in gwacl or an Azure API change that gwacl does not handle. See bug 1195445.