failed to retrieve the template to clone: lxc container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Juju version: 1.25-alpha1-
agent-metadata-url=https:/
agent-stream=devel
I have seen this problem arise in the past from time to time , but it's never really consistent. I'm unable to create lxc containers on hosts that are added to my juju environment. but it usually always works on the stateserver node.
See below:
$ juju status
environment: maas
machines:
"0":
agent-state: started
agent-version: 1.25-alpha1
dns-name: ms10-08-avaton.1ss
instance-id: /MAAS/api/
series: trusty
containers:
0/lxc/0:
dns-name: 10.229.81.65
series: trusty
hardware: arch=amd64
hardware: arch=amd64 cpu-cores=8 mem=32768M tags=avaton
state-
"1":
agent-state: started
agent-version: 1.25-alpha1
dns-name: ms10-07-avaton.1ss
instance-id: /MAAS/api/
series: trusty
containers:
1/lxc/1:
creation failed: error executing "lxc-create": + ''['' amd64 = i686 '']'';
+ ''['' 0 = 0 '']''; + case "$hostarch:$arch" in; + :; + ''['' tryreleased
''!='' daily -a tryreleased ''!='' released -a tryreleased ''!='' tryreleased
'']''; + ''['' -z /var/lib/
+ ''['' 0 ''!='' 0 '']''; + config=
+ ''['' -z /var/lib/
is /tmp/wget789803
0 -eq 1 '']''; + mkdir -p /var/cache/
= tryreleased '']''; + stream=released; + ubuntu-
amd64; + ''['' -n https:/
'']''; + url2=https:/
++ basename https:/
+ filename=
'']''; + do_extract_rootfs; + cd /var/cache/
-eq 1 '']''; + trap wgetcleanup EXIT SIGHUP SIGINT SIGTERM; + ''['' ''!''
-f ubuntu-
common name ''*'' doesn''t match requested host name ''10.229.65.108''.;
To connect to 10.229.65.108 insecurely, use `--no-check-
+ build_root_tgz ubuntu-
+ filename=; ++ mktemp -d -p .; + xdir=./
+ tarname=
+ trap buildcleanup EXIT SIGHUP SIGINT SIGTERM; + ''['' 0 -eq 1 -o ''!''
-f /var/cache/
'']''; + rm -f ubuntu-
cloud image from ubuntu-
cloud image from ubuntu-
Resolving ubuntu-
failed: Name or service not known.; wget: unable to resolve host address
find cloud image ubuntu-
find cloud image ubuntu-
1; + buildcleanup; + cd /var/lib/
umount -l /var/cache/
not mounted; + true; + rm -rf /var/cache/
Error creating container juju-trusty-
series: trusty
hardware: arch=amd64 cpu-cores=8 mem=32768M tags=avaton
services: {}
I have posted the last few lines on the debug log here:
http://
The last line displays the error.
actually, i think i may know what's causing this, possibly dns. primarily reverse lookup. Could that be it?
https:/ /10.229. 65.108: 17070/environme nt/f70ed3cd- 54c4-477e- 8fb2-829c5ee1fe c4/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz
is juju expecting to see
https:/ /ms10-08- avaton: 17070/environme nt/f70ed3cd- 54c4-477e- 8fb2-829c5ee1fe c4/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz