juju lxd provider creates juju-zfs storage pool in lxd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Each time I bootstrap an environment on a local LXD provider, a juju-zfs pool gets created:
mario@BUNTOR ~> lxc storage list
+------
| NAME | DESCRIPTION | DRIVER | SOURCE | USED BY |
+------
| lxds | | zfs | lxds | 18 |
+------
mario@BUNTOR ~> juju bootstrap localhost local-two
Creating Juju controller "local-two" on localhost/localhost
Looking for packaged Juju agent version 2.6.2 for amd64
To configure your system to better support LXD containers, please see: https:/
Launching controller instance(s) on localhost/
- juju-0761c3-0 (arch=amd64)
Installing Juju agent on bootstrap instance
Fetching Juju GUI 2.14.0
Waiting for address
Attempting to connect to 10.4.133.10:22
Connected to 10.4.133.10
Running machine configuration script...
Bootstrap agent now started
Contacting Juju controller at 10.4.133.10 to verify accessibility...
Bootstrap complete, controller "local-two" now is available
Controller machines are in the "controller" model
Initial model "default" added
mario@BUNTOR ~> lxc storage list
+------
| NAME | DESCRIPTION | DRIVER | SOURCE | USED BY |
+------
| juju-zfs | | zfs | /var/lib/
+------
| lxds | | zfs | lxds | 19 |
+------
mario@BUNTOR ~>
Why is this? juju-zfs is not even used, as the bootstrap node, in the above case, is stored on my separate zpool called lxds:
root@BUNTOR ~> zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
juju-zfs 41.8G 330K 41.7G - 0% 0% 1.00x ONLINE -
lxds 149G 36.5G 113G - 46% 24% 1.00x ONLINE -
root@BUNTOR ~>
Is there a way to make juju not create not needed zfs pools? Why is juju even creating this pool?
The zfs (and btrfs if available) pools are created so that they may be used by charms that require storage. It's like having EBS volumes available on EC2 for instance. There's not currently any way to stop the creation as Juju's deployment model requires that any storage pools be available up front.