lxd containers not using configured proxy for downloading images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Tim Penhey |
Bug Description
I installed MAAS 1.9 and juju 2.0-beta9, the Internet access is provided through proxy. Juju bootstrap correctly but is unable to create LXD container. The error was:
2016-06-17 10:24:17 ERROR juju.provisioner provisioner_
I tried to copy metadata locally using juju metadata generate-image but it report the error:
ERROR cmd supercommand.go:448 model "controller" cannot provide region and endpoint
juju list-controllers
CONTROLLER MODEL USER CLOUD/REGION
devmaas-controller* default admin@local devmaas
juju list-models
MODEL OWNER STATUS LAST CONNECTION
controller admin@local available never connected
default* admin@local available 2 minutes ago
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- 2.0 b9: Fail to deploy LXD container in restricted network + lxd containers not using configured proxy for downloading images |
tags: | added: addressability lxd network proxy |
Changed in juju-core: | |
milestone: | none → 2.0-beta10 |
Changed in juju-core: | |
status: | Triaged → Incomplete |
Changed in juju-core: | |
milestone: | 2.0-beta10 → 2.0-beta11 |
Changed in juju-core: | |
status: | Incomplete → Triaged |
tags: | added: kanban-cross-team |
tags: | removed: kanban-cross-team |
tags: | added: 2.0 |
Changed in juju-core: | |
milestone: | 2.0-beta11 → 2.0-beta12 |
tags: | added: sts |
Changed in juju-core: | |
importance: | High → Critical |
Changed in juju-core: | |
assignee: | nobody → James Tunnicliffe (dooferlad) |
Changed in juju-core: | |
milestone: | 2.0-beta12 → 2.0-beta13 |
Changed in juju-core: | |
assignee: | James Tunnicliffe (dooferlad) → nobody |
Changed in juju-core: | |
milestone: | 2.0-beta13 → 2.0-beta14 |
Changed in juju-core: | |
assignee: | nobody → James Tunnicliffe (dooferlad) |
Changed in juju-core: | |
status: | Triaged → Incomplete |
Changed in juju-core: | |
assignee: | James Tunnicliffe (dooferlad) → nobody |
Changed in juju-core: | |
status: | Incomplete → Triaged |
assignee: | nobody → Tim Penhey (thumper) |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
milestone: | 2.0-beta14 → 2.0-beta15 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0-beta15 → none |
More detailed log from machine-0:
2016-06-21 08:57:02 INFO juju.provisioner container_ initialisation. go:102 initial container setup with ids: [0/lxd/6] :"sync" ,"status" :"Success" ,"status_ code":200, "metadata" :[]} task.go: 402 found machine pending provisioning id:0/lxd/6, details:0/lxd/6 task.go: 246 provisioner- harvest- mode is set to destroyed; unknown instances not stopped [] r.lxd broker.go:471 address allocation feature flag not enabled; using multi-bridge networking for container "0/lxd/6" "error_ code":404, "type": "error" } lxdclient client.go:172 connecting to LXD remote "cloud- images. ubuntu. com": "https:/ /cloud- images. ubuntu. com/releases" lxdclient client_image.go:135 found image from https:/ /cloud- images. ubuntu. com/releases for xenial = 98dc4bd7cca2fcd 24c82ee403baaca 3a5bd1845f92554 0786d0954a5973c 181c update" :true," public" :false, "source" :{"certificate" :"","fingerprin t":"98dc4bd7cca 2fcd24c82ee403b aaca3a5bd1845f9 25540786d0954a5 973c181c" ,"mode" :"pull" ,"protocol" :"simplestreams ","server" :"https:/ /cloud- images. ubuntu. com/releases","type":"image"}} unix.socket/ 1.0/images :"async" ,"status" :"Operation created" ,"status_ code":100, "metadata" :{"id": "7337a50b- f4c6-4f58- b369-be1fd1adb2 1c","class" :"task" ,"created_ at":"2016- 06-21T09: 01:30.431790916 Z","updated_ at":"2016- 06-21T09: 01:30.431790916 Z","status" :"Running" ,"status_ code":103, "resources" :null," metadata" :null," may_cancel" :false, "err":" "},"operation" :"/1.0/ operations/ 7337a50b- f4c6-4f58- b369-be1fd1adb2 1c"} 7337a50b- f4c6-4f58- b369-be1fd1adb2 1c/wait :"sync" ,"status" :"Success" ,"status_ code":200, "metadata" :{"id": "7337a50b- f4c6-4f58- b369-be1fd1adb2 1c","class" :"task" ,"created_ at":"2016- 06-21T09: 01:30.431790916 Z","updated_ at":"2016- 06-21T09: 01:30.431790916 Z","status" :"Failure" ,"status_ code":400, "resources" :null," metadata" :null," may_cancel" :false, "err":" Get https:/ /cloud- images. ubuntu. com/releases/ streams/ v1/index. json: Unable to connect to: cloud-images. ubuntu. com:443" }} lxdclient client_image.go:139 dropped 0 progress messages task.go: 677 cannot start instance for machine "0/lxd/6": failed to ensure LXD image: unable to get LXD image for ubuntu-xenial: Get https:/ /cloud- images. ubuntu. com/releases/ streams/ v1/index. json: Unable to connect to: cloud-images. ubuntu. com:443
2016-06-21 08:57:02 DEBUG lxd client.go:67 Raw response: {"type"
2016-06-21 08:57:02 INFO juju.provisioner provisioner_
2016-06-21 08:57:02 INFO juju.provisioner provisioner_
2016-06-21 09:01:19 DEBUG juju.provisione
2016-06-21 09:01:29 DEBUG lxd client.go:67 Raw response: {"error":"not found",
2016-06-21 09:01:29 DEBUG juju.tools.
2016-06-21 09:01:30 INFO juju.tools.
2016-06-21 09:01:30 DEBUG lxd client.go:67 Posting {"auto_
to http://
2016-06-21 09:01:30 DEBUG lxd client.go:67 Raw response: {"type"
2016-06-21 09:01:30 DEBUG lxd client.go:67 1.0/operations/
2016-06-21 09:01:50 DEBUG lxd client.go:67 Raw response: {"type"
2016-06-21 09:01:50 DEBUG juju.tools.
2016-06-21 09:01:50 ERROR juju.provisioner provisioner_