The related bug was caused because the charm did not detect when
the lxc storage had already been set up using the `lxc storage`
command which is used in the 3.x series, rather than the old way
with the 2.x series.
Also fixes issue on xenial where linux-image-extra-* has been renamed to
linux-modules-extra-* from from -4.4.0-145-generic onwards. Otherwise,
the install fails on xenial.
Change-Id: If8bdad6f5641ee21fc7860dceeb4c3facbaecc76
Closes-Bug: #1825393
To support use of distinct subuid/subgid ranges per LXD container,
the default range for the root user must be increased to support
> 1 running container in this configuration.
Increase subuid/subgid range to support 5000 containers with distinct
ranges. Restart LXD daemon if idmap configuration changes, to ensure
that the full range of subid's are used.
Change-Id: I8b87dad736abaffdbd7afac090429790d3b03c96
Closes-Bug: 1648056
Juju 2.0 provides support for display of the version of
an application deployed by a charm in juju status.
Insert the application_version_set function into the
existing assess_status function - this gets called after
all hook executions, and periodically after that, so any
changes in package versions due to normal system updates
will also be reflected in the status output.
This review also includes a resync of charm-helpers to
pickup hookenv support for this feature.
Change-Id: Iecfdb372e21d1e23cefaa5f972008fc34d65b143
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.
Change-Id: I2ae8c26a2a486ac39ee386d2c0ff96ef186edf86
As block device configuration is called from the
config-changed hook, it's vital that the code for
managing the zfs pool is idempotent.
Add a helper to query pool information and ensure
that the ZFS pool does not already exist before
attempting creation.
Change-Id: I4f4ad9c4cdb73b77e8b3a9367b81ec1566bacd59
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add support for block-devices, but still only accept one block device.
Add tests for parsing the device block list.
Change-Id: I78fe3b9e617a7da75145a2695bee312cf3685246