Comment 3 for bug 1512782

Revision history for this message
Mike McCracken (mikemc) wrote :

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-e18216a2ddfd/images/lxc/trusty/amd64/ubuntu-14.04-server-cloudimg-amd64-root.tar.gz]
 machine-1[3840]: 2015-11-04 06:46:18 TRACE golxc.run.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-e18216a2ddfd/images/lxc/trusty/amd64/ubuntu-14.04-server-cloudimg-amd64-root.tar.gz]
 machine-1[3840]: 2015-11-04 06:46:19 TRACE golxc.run.lxc-create golxc.go:458 run failed output: + '[' amd64 = i686 ']'
 machine-1[3840]: 2015-11-04 06:46:19 ERROR juju.container.lxc clonetemplate.go:129 lxc template container creation failed: lxc container creation failed: juju-trusty-lxc-template
 machine-1[3840]: 2015-11-04 06:46:19 INFO juju.container lock.go:66 release lock "juju-trusty-lxc-template"
 machine-1[3840]: 2015-11-04 06:46:19 ERROR juju.provisioner.lxc lxc-broker.go:168 failed to start container: failed to retrieve the template to clone: lxc container creation failed: juju-trusty-lxc-template
 machine-1[3840]: 2015-11-04 06:46:19 INFO juju.provisioner provisioner_task.go:711 retryable error received on start instance - retrying instance creation 3 times with a 10s delay
 machine-0: 2015-11-04 06:46:18 DEBUG juju.storage managedstorage.go:293 managed resource entry created with path "environs/dacb71e7-b0f4-4a47-88e9-e18216a2ddfd/charms/cs:trusty/ntp-11-d3bdedc0-ccc9-4fc7-8c29-3c5ded577afd" -> "d842a60653adca970ade502e62fd3c7cd27c6d02902aee4f5f6b1a9d748abc7573d8df66605cf4c4fcd1fb9e835380a4"

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.