provider/lxd: experimental LXD storage provider #7027

Merged
merged 1 commit into from Feb 24, 2017

Conversation

Projects
None yet
3 participants
Member

axw commented Feb 23, 2017

Description of change

Introduce a new "lxd" storage provider that is
enabled with the "lxd-storage" feature flag.
This storage provider requires the storage
feature available in LXD 2.9+.

The first commit in this PR is from #7026, and should be reviewed there.

QA steps

First create a storage pool in LXD called "lxd".

  1. juju bootstrap localhost

  2. juju deploy postgresql --pgdata=lxd
    Fails with: ERROR cannot add application "storagetest": pool "lxd" not found because the feature flag is not set.

  3. juju destroy-controller -y localhost

  4. export JUJU_DEV_FEATURE_FLAGS=lxd-storage

  5. juju bootstrap localhost

  6. juju deploy postgresql --pgdata=lxd

Verify there's a volume in the "lxd" LXD storage pool, it's attached to the container, and mounted at the path shown in "juju storage".

Documentation changes

Not yet. This is experimental, and subject to change.

Bug reference

None.

provider/lxd/storage.go
return nil, errors.NotFoundf("storage provider %q", t)
}
+
+// lxdStorageProvider is a storage provider for Azure disks.
Member

axw commented Feb 24, 2017

$$merge$$

Contributor

jujubot commented Feb 24, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Feb 24, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10364

provider/lxd: experimental LXD storage provider
Introduce a new "lxd" storage provider that is
enabled with the "lxd-storage" feature flag.
This storage provider requires the storage
feature available in LXD 2.9+.
Member

axw commented Feb 24, 2017

$$merge$$

Contributor

jujubot commented Feb 24, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 60c7097 into juju:develop Feb 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment