Recurring lxc issue: failed to retrieve the template to clone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When deploying Openstack with juju-core 1.22.6 I get this from time to time:
containers:
0/lxc/0:
failed to retrieve the template to clone: cannot determine cached image URL: cannot determine LXC image URL: cannot determine LXC image URL: fai
led to get https:/
: exit status 1: cannot determine LXC image URL: failed to get https:/
: exit status 1
series: trusty
0/lxc/1:
dns-name: 10.102.5.57
series: trusty
hardware: arch=amd64
That is, 0/lxc/0 can't be created, other containers can. This is not deterministic: on the same hardware, an hour earlier, all containers could be created. However, if it fails, it always seems to fail on 0/lxc/0.
I've put some logs up at chinstrap:
tags: | added: lxc |
Changed in juju-core: | |
status: | New → Incomplete |
Changed in juju-core: | |
status: | Confirmed → New |
tags: | removed: kanban-cross-team |
tags: | added: kanban-crossoteam |
tags: |
added: kanban-crossteam removed: kanban-crossoteam |
tags: | removed: kanban-crossteam |
tags: | added: landscapee |
tags: |
added: landscape removed: landscapee |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0.0 |
milestone: | 2.0.0 → 2.0-beta8 |
Changed in juju-core: | |
milestone: | 2.0-beta8 → 2.0-beta9 |
Changed in juju-core: | |
status: | Triaged → Incomplete |
Changed in juju-core: | |
milestone: | 2.0-beta9 → 2.0-beta10 |
Changed in juju-core: | |
milestone: | 2.0-beta10 → 2.0-beta11 |
Changed in juju-core: | |
milestone: | 2.0-beta11 → 2.0-beta12 |
Changed in juju-core: | |
milestone: | 2.0-beta12 → none |
Changed in juju-core: | |
status: | Incomplete → Invalid |
Changed in juju-core: | |
status: | Invalid → Triaged |
assignee: | nobody → Richard Harding (rharding) |
milestone: | none → 1.25.10 |
Changed in juju-core: | |
importance: | High → Critical |
Changed in juju-core: | |
milestone: | 1.25.10 → none |
Changed in juju-core: | |
milestone: | none → 1.25.11 |
Changed in juju-core: | |
assignee: | Richard Harding (rharding) → nobody |
Changed in juju-core: | |
milestone: | 1.25.11 → none |
It would make sense that this would always fail for the first container, as what's failing is the download of the image to use in creating the template container.
Other containers which are started will see that the template doesn't exist, and try to create it. The error, specifically, is from Juju using the ubuntu- cloudimg- query command to get the url of the correct image to download. I wonder if there's some flakyness with cloud-images. ubuntu. com. I'll ask the CPC team about that.
It could be helpful to retry the ubuntu- cloudimg- query command if it fails, with some modest wait time.