I think the failed to allocate pty bit is a red herring - it looks like the original failure is this:
error executing "lxc-clone": lxc_container: utils.c: mkdir_p: 220 Not a directory - failed to create directory '/run/lock/lxc//var/lib/lxc/juju-trusty-lxc-template/snaps';
This error comes from lxc's use of libc's mkdir(), which is setting errno to ENOTDIR, meaning one of the components in the directory it's trying to create is not actually a directory.
So, which part of the '/run/lock/lxc//var/lib/lxc/juju-trusty-lxc-template/snaps' path might exist as a non directory?
I think the failed to allocate pty bit is a red herring - it looks like the original failure is this:
error executing "lxc-clone": lxc_container: utils.c: mkdir_p: 220 Not a directory - failed to create directory '/run/lock/ lxc//var/ lib/lxc/ juju-trusty- lxc-template/ snaps';
This error comes from lxc's use of libc's mkdir(), which is setting errno to ENOTDIR, meaning one of the components in the directory it's trying to create is not actually a directory.
So, which part of the '/run/lock/ lxc//var/ lib/lxc/ juju-trusty- lxc-template/ snaps' path might exist as a non directory?