Failed to deploy vivid LXCs on vivid host

Bug #1452381 reported by Alberto Donato
This bug report is a duplicate of:  Bug #1442308: Juju cannot create vivid containers. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
New
Undecided
Unassigned

Bug Description

While adding a Vivid LXC to a Vivid host, I got the error pasted below (full status output: http://paste.ubuntu.com/10998218/)

What I did was running "juju add-machine" which created machine 3, and then "juju add-machine lxc:3" (twice).

    containers:
      3/lxc/0:
        agent-state-info: "failed to retrieve the template to clone: lxc container
          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/lxc/juju-vivid-lxc-template ']'; ++ id -u; + '[' 0 '!='
          0 ']'; + config=/var/lib/lxc/juju-vivid-lxc-template/config; + '[' -z /var/lib/lxc/juju-vivid-lxc-template/rootfs
          ']'; + type ubuntu-cloudimg-query; ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query;
          + type wget; wget is /tmp/wget587832127/wget; + cache=/var/cache/lxc/cloud-vivid;
          + '[' 0 -eq 1 ']'; + mkdir -p /var/cache/lxc/cloud-vivid; + '[' tryreleased
          = tryreleased ']'; + stream=released; + ubuntu-cloudimg-query vivid released
          amd64; + '[' -n https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + url2=https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          ++ basename https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          + filename=ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + '[' -n https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + do_extract_rootfs; + cd /var/cache/lxc/cloud-vivid; + '[' 0 -eq 1
          ']'; + trap wgetcleanup EXIT SIGHUP SIGINT SIGTERM; + '[' '!' -f ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + wget https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          --2015-05-06 16:41:22-- https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          Connecting to 10.55.32.230:17070... connected.; HTTP request sent, awaiting
          response... 500 Internal Server Error; 2015-05-06 16:42:53 ERROR 500: Internal
          Server Error.; + build_root_tgz ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          + url=ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + filename=; ++ mktemp
          -d -p .; + xdir=./tmp.roWaJLX7a4; ++ basename ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          + tarname=ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + imgname='vivid-*-cloudimg-amd64.img';
          + trap buildcleanup EXIT SIGHUP SIGINT SIGTERM; + '[' 0 -eq 1 -o '!' -f
          /var/cache/lxc/cloud-vivid/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + rm -f ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + echo 'Downloading
          cloud image from ubuntu-15.04-server-cloudimg-amd64-root.tar.gz'; Downloading
          cloud image from ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + wget
          ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; --2015-05-06 16:42:53--
          \ http://ubuntu-15.04-server-cloudimg-amd64-root.tar.gz/; Resolving ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          (ubuntu-15.04-server-cloudimg-amd64-root.tar.gz)... failed: Name or service
          not known.; wget: unable to resolve host address \u2018ubuntu-15.04-server-cloudimg-amd64-root.tar.gz\u2019;
          + echo 'Couldn'\\''t find cloud image ubuntu-15.04-server-cloudimg-amd64-root.tar.gz.';
          Couldn't find cloud image ubuntu-15.04-server-cloudimg-amd64-root.tar.gz.;
          + exit 1; + buildcleanup; + cd /var/lib/lxc/juju-vivid-lxc-template/rootfs;
          + umount -l /var/cache/lxc/cloud-vivid/./tmp.roWaJLX7a4; umount: /var/cache/lxc/cloud-vivid/./tmp.roWaJLX7a4:
          not mounted; + true; + rm -rf /var/cache/lxc/cloud-vivid; lxc_container:
          lxccontainer.c: create_run_template: 1108 container creation template for
          juju-vivid-lxc-template failed; lxc_container: lxc_create.c: main: 274 Error
          creating container juju-vivid-lxc-template"
        instance-id: pending
        series: vivid
      3/lxc/1:
        agent-state-info: "failed to retrieve the template to clone: lxc container
          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/lxc/juju-vivid-lxc-template ']'; ++ id -u; + '[' 0 '!='
          0 ']'; + config=/var/lib/lxc/juju-vivid-lxc-template/config; + '[' -z /var/lib/lxc/juju-vivid-lxc-template/rootfs
          ']'; + type ubuntu-cloudimg-query; ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query;
          + type wget; wget is /tmp/wget684594578/wget; + cache=/var/cache/lxc/cloud-vivid;
          + '[' 0 -eq 1 ']'; + mkdir -p /var/cache/lxc/cloud-vivid; + '[' tryreleased
          = tryreleased ']'; + stream=released; + ubuntu-cloudimg-query vivid released
          amd64; + '[' -n https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + url2=https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          ++ basename https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          + filename=ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + '[' -n https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + do_extract_rootfs; + cd /var/cache/lxc/cloud-vivid; + '[' 0 -eq 1
          ']'; + trap wgetcleanup EXIT SIGHUP SIGINT SIGTERM; + '[' '!' -f ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + wget https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          --2015-05-06 16:43:12-- https://10.55.32.230:17070/environment/56314181-aa0b-4bc1-8706-68930833fc41/images/lxc/vivid/amd64/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          Connecting to 10.55.32.230:17070... connected.; HTTP request sent, awaiting
          response... 500 Internal Server Error; 2015-05-06 16:44:50 ERROR 500: Internal
          Server Error.; + build_root_tgz ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          + url=ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + filename=; ++ mktemp
          -d -p .; + xdir=./tmp.3lz72AwSjf; ++ basename ubuntu-15.04-server-cloudimg-amd64-root.tar.gz;
          + tarname=ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + imgname='vivid-*-cloudimg-amd64.img';
          + trap buildcleanup EXIT SIGHUP SIGINT SIGTERM; + '[' 0 -eq 1 -o '!' -f
          /var/cache/lxc/cloud-vivid/ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          ']'; + rm -f ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + echo 'Downloading
          cloud image from ubuntu-15.04-server-cloudimg-amd64-root.tar.gz'; Downloading
          cloud image from ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; + wget
          ubuntu-15.04-server-cloudimg-amd64-root.tar.gz; --2015-05-06 16:44:50--
          \ http://ubuntu-15.04-server-cloudimg-amd64-root.tar.gz/; Resolving ubuntu-15.04-server-cloudimg-amd64-root.tar.gz
          (ubuntu-15.04-server-cloudimg-amd64-root.tar.gz)... failed: Name or service
          not known.; wget: unable to resolve host address \u2018ubuntu-15.04-server-cloudimg-amd64-root.tar.gz\u2019;
          + echo 'Couldn'\\''t find cloud image ubuntu-15.04-server-cloudimg-amd64-root.tar.gz.';
          Couldn't find cloud image ubuntu-15.04-server-cloudimg-amd64-root.tar.gz.;
          + exit 1; + buildcleanup; + cd /var/lib/lxc/juju-vivid-lxc-template/rootfs;
          + umount -l /var/cache/lxc/cloud-vivid/./tmp.3lz72AwSjf; umount: /var/cache/lxc/cloud-vivid/./tmp.3lz72AwSjf:
          not mounted; + true; + rm -rf /var/cache/lxc/cloud-vivid; lxc_container:
          lxccontainer.c: create_run_template: 1108 container creation template for
          juju-vivid-lxc-template failed; lxc_container: lxc_create.c: main: 274 Error
          creating container juju-vivid-lxc-template"
        instance-id: pending
        series: vivid

Tags: lxc vivid
tags: added: lxc vivid
Revision history for this message
Eric Snow (ericsnowcurrently) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.