Azure bootstrap fails: versioning header is not specified
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Go Windows Azure Client Library |
Fix Released
|
Critical
|
Ian Booth | |||
juju-core | Status tracked in Trunk | |||||
1.16 |
Fix Released
|
Critical
|
Ian Booth | |||
Trunk |
Fix Released
|
High
|
Ian Booth | |||
juju-core (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | |||
Saucy |
Fix Released
|
High
|
Unassigned | |||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Bootstrap of Juju environment on Azure fails
[Test Case]
configure azure environment
juju bootstrap
(fails)
[Regression Potential]
Limited to Azure provider as in gwacl library.
[Original Bug Report]
I cannot bootstrap an azure environment that I could bootstrap 2 weeks ago. The azure-provider fails getting the OS image. Today and in the past, I used juju 1.16.0 to bootstrap. I think something outside of juju has changed
My config relies on the defaults except for the fact that I set the tools-urls to a testing location. Using the real tools location does not help. I have tried setting combinations of image-metadata-url, default-series, and image-stream to get past the error, but no success.
From the pastebin http://
2013-10-29 22:55:14 DEBUG juju.environs.
finding products at path "streams/
2013-10-29 22:55:32 ERROR juju supercommand.go:282
cannot start bootstrap instance: POST request failed: BadRequest - The versioning
header is not specified or was specified incorrectly. (http code 400: Bad Request)
@wallyworld investigated the issue for a while
Azure is rejecting certain API calls complaining the
version we are putting in the request header is wrong, when according to the
Azure doco we are sending the right version, and nothing is supposed to have
changed. Hmmmm. But not all API calls are affected.
Also, there's a separate issue with Go going tits up with a closed connection
error. This is sort of a timing issue which is a limitation of how Go's http lib
is implemented. We worked around it in gomaasapi, and the same fix was aplied to
gwacl, but it seems not to have fixed it there.
Related branches
- Julian Edwards (community): Approve
-
Diff: 410 lines (+54/-50)4 files modifiedmanagement_base.go (+22/-18)
management_base_test.go (+30/-30)
xmlobjects.go (+1/-1)
xmlobjects_test.go (+1/-1)
- Ian Booth: Approve
-
Diff: 48 lines (+5/-3)3 files modifiedexample/management/run.go (+3/-1)
xmlobjects.go (+1/-1)
xmlobjects_test.go (+1/-1)
- Juju Engineering: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifieddependencies.tsv (+1/-1)
- Juju Engineering: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifieddependencies.tsv (+1/-1)
Changed in juju-core: | |
milestone: | none → 1.17.0 |
Changed in gwacl: | |
importance: | Undecided → Critical |
status: | New → In Progress |
assignee: | nobody → Ian Booth (wallyworld) |
Changed in juju-core: | |
assignee: | nobody → Ian Booth (wallyworld) |
milestone: | 1.17.0 → 1.16.2 |
Changed in gwacl: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in juju-core (Ubuntu Saucy): | |
importance: | Undecided → High |
tags: |
added: azure-provider removed: azure |
Changed in gwacl: | |
milestone: | none → 0.1.1 |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
@utlemming did fix a bug in http:// cloud-images. ubuntu. com streams recently, some images were not properly described as released. saucy-13. 10-amd64- server- beta2 saucy-13. 10-amd64- server- alpha3 saucy-13. 10-amd64- server- 20131015
beta2 ubuntu-
alpha3 ubuntu-
release ubuntu-
Since I adjusted image-metadata-url, default-series, and image-stream without success, I am don't think stream data is at fault. There are 3 streams available. I cannot bootstrap when I specify the stream (release or beta2), series (saucy or precise). I saw this error for release and precise.
2013-10-30 00:42:57 DEBUG juju.environs. simplestreams simplestreams. go:443 ubuntu. cloud.release: server: 12.04:amd64" "com.ubuntu. cloud.release: server: 12.04:i386" ] /management. core.windows. net/")
index file has no data for product name(s)
["com.
2013-10-30 00:43:13 ERROR juju supercommand.go:282
cannot start bootstrap instance: no OS images found for location]
"West US", series "precise", architectures ["amd64" "i386"]
(and endpoint: "https:/