juju deploy <service> --to lxd:0 does not work with lxd provider
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Won't Fix
|
High
|
Unassigned |
Bug Description
Doing a test against latest upstream dd9828e, lxd provider, bootstrap with trusty series.
$ juju add-machine
$ juju deploy mysql --to lxd:0
$ juju deploy wordpress --to lxd:1
$ juju status
[Services]
NAME STATUS EXPOSED CHARM
mysql error false cs:trusty/mysql-38
wordpress error false cs:trusty/
[Relations]
SERVICE1 SERVICE2 RELATION TYPE
mysql mysql cluster peer
wordpress wordpress loadbalancer peer
[Units]
ID WORKLOAD-STATUS JUJU-STATUS VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
mysql/0 error lost cannot add a new machine: machine 0 cannot host lxd containers
wordpress/0 error lost cannot add a new machine: machine 1 cannot host lxd containers
[Machines]
ID STATE DNS INS-ID SERIES AZ
0 started 10.0.4.147 juju-8e293a57-
1 started 10.0.4.159 juju-8e293a57-
With Xenial we get the following:
[Services]
NAME STATUS EXPOSED CHARM
wordpress unknown false cs:trusty/
[Relations]
SERVICE1 SERVICE2 RELATION TYPE
wordpress wordpress loadbalancer peer
[Units]
ID WORKLOAD-STATUS JUJU-STATUS VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
wordpress/0 unknown allocating 1/lxd/0 Waiting for agent initialization to finish
[Machines]
ID STATE DNS INS-ID SERIES AZ
0 started 10.0.4.179 juju-d3c94e58-
1 started 10.0.4.39 juju-d3c94e58-
+------
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------
| juju-cb22aa8b-
| | | 10.0.4.209 (eth0) | | | |
+------
| juju-d3c94e58-
+------
| juju-d3c94e58-
| | | 10.0.3.1 (lxcbr0) | | | |
| | | 10.0.5.1 (lxdbr0) | | | |
+------
lxdbr0 is created for the nested lxd's (10.0.5.1) but the nested container is never fully started.
tags: | added: conjure |
description: | updated |
description: | updated |
description: | updated |
tags: | added: lxd placement |
summary: |
- juju deploy <service> --to lxd:0 does not work + juju deploy <service> --to lxd:0 does not work with lxd provider |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.1.0 → none |
milestone: | none → 2.1.0 |
There is an explicit check to determine whether or not a machine can host containers. When a machine agent starts up, it checks to see if the machine is running in a container, and if it is, that machine cannot host containers.
Whether or not we change that behavior for the lxd provider will need to be discussed for 2.1.