I got the expected error:
$ juju bootstrap
Bootstrap failed, cleaning up the environment.
ERROR there was an issue examining the environment: failed verification of
local provider prerequisites:
juju-local must be installed to enable the local provider:
sudo apt-get install juju-local
However, if I install both juju-local and lxc from trusty-backports:
sudo apt-get install juju-local -t trusty-backports lxc
apt-cache policy lxc
lxc:
Installed: 2.0.4-0ubuntu1~ubuntu14.04.1
Candidate: 2.0.4-0ubuntu1~ubuntu14.04.1
Version table:
*** 2.0.4-0ubuntu1~ubuntu14.04.1 0
100 http://us.archive.ubuntu.com/ubuntu/ trusty-backports/main amd64
Packages
100 /var/lib/dpkg/status
1.0.8-0ubuntu0.3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64
Packages
1.0.7-0ubuntu0.7 0
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64
Packages
1.0.3-0ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Then bootstrapped and added 1 trusty and 1 xenial container, juju status shows
no issues:
environment: local
machines:
"0":
agent-state: started
agent-version: 1.25.6.1
dns-name: localhost
instance-id: localhost
series: trusty
state-server-member-status: has-vote
"1":
agent-state: started
agent-version: 1.25.6.1
dns-name: 10.0.3.95
instance-id: ubuntu-local-machine-1
series: trusty
hardware: arch=amd64
"2":
agent-state: started
agent-version: 1.25.6.1
dns-name: 10.0.3.47
instance-id: ubuntu-local-machine-2
series: xenial
hardware: arch=amd64
services: {}
So the root cause is the juju-core source package (in trusty/updates):
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/juju-core/trusty-updates/view/head:/debian/control
The binary juju-local package has Depends: lxc (>=1.0.0~alpha1-0ubuntu14),
but it really should be depending on lxc (>=2.0.4...).
** Also affects: juju-core (Ubuntu)
Importance: Undecided
Status: New
** Changed in: juju-core (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1560487
Title:
local provider fails to create lxc container from template
To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1560487/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs