it is odd that that the only output from the lxc-create command is just the first line. it shouldn't fail between that line and the next thing that'd be printed in that script.
Unfortunately the machine I reproduced it on had a power failure last night and the environment did not come back up cleanly, so I had to try to repro it again, and so far it is failing to exhibit the same behavior.
I was able to recreate this last night with trace on, here's a relevant snippet from the all-machines.log:
machine-1[3840]: 2015-11-04 06:46:18 DEBUG juju.container.lxc lxc.go:426 lxc-create template params: [--debug --userdata /var/lib/ juju/containers /juju-trusty- lxc-template/ cloud-init --hostid juju-trusty- lxc-template -r trusty -T https:/ /10.0.3. 119:17070/ environment/ dacb71e7- b0f4-4a47- 88e9-e18216a2dd fd/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz] lxc-create golxc.go:448 run: lxc-create [-n juju-trusty- lxc-template -t ubuntu-cloud -f /var/lib/ juju/containers /juju-trusty- lxc-template/ lxc.conf -- --debug --userdata /var/lib/ juju/containers /juju-trusty- lxc-template/ cloud-init --hostid juju-trusty- lxc-template -r trusty -T https:/ /10.0.3. 119:17070/ environment/ dacb71e7- b0f4-4a47- 88e9-e18216a2dd fd/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz] lxc-create golxc.go:458 run failed output: + '[' amd64 = i686 ']' go:129 lxc template container creation failed: lxc container creation failed: juju-trusty- lxc-template lxc-template" r.lxc lxc-broker.go:168 failed to start container: failed to retrieve the template to clone: lxc container creation failed: juju-trusty- lxc-template task.go: 711 retryable error received on start instance - retrying instance creation 3 times with a 10s delay go:293 managed resource entry created with path "environs/ dacb71e7- b0f4-4a47- 88e9-e18216a2dd fd/charms/ cs:trusty/ ntp-11- d3bdedc0- ccc9-4fc7- 8c29-3c5ded577a fd" -> "d842a60653adca 970ade502e62fd3 c7cd27c6d02902a ee4f5f6b1a9d748 abc7573d8df6660 5cf4c4fcd1fb9e8 35380a4"
machine-1[3840]: 2015-11-04 06:46:18 TRACE golxc.run.
machine-1[3840]: 2015-11-04 06:46:19 TRACE golxc.run.
machine-1[3840]: 2015-11-04 06:46:19 ERROR juju.container.lxc clonetemplate.
machine-1[3840]: 2015-11-04 06:46:19 INFO juju.container lock.go:66 release lock "juju-trusty-
machine-1[3840]: 2015-11-04 06:46:19 ERROR juju.provisione
machine-1[3840]: 2015-11-04 06:46:19 INFO juju.provisioner provisioner_
machine-0: 2015-11-04 06:46:18 DEBUG juju.storage managedstorage.
it is odd that that the only output from the lxc-create command is just the first line. it shouldn't fail between that line and the next thing that'd be printed in that script.
Unfortunately the machine I reproduced it on had a power failure last night and the environment did not come back up cleanly, so I had to try to repro it again, and so far it is failing to exhibit the same behavior.