Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add Support for Juju Storage #112
Comments
|
To expand, As for the deployer bits, this is in a weird phase change since Juju 2.0 adds native support for bundles, and storage I believe is a part of that primitive, we may need to add storage to deployer as part of this. We can also work around this by transparently supporting it where @tvansteenburgh opinions on the best approach for this? @Yrrsinn we'll schedule this in for something we try to tackle very soon to unblock you and others writing charms with storage. |
|
@axw added support to native bundle deploy with storage a bit ago and it's in 2.0. https://github.com/juju/bundlechanges/blob/2618de2ad622b29a396a826628d4a81b8562d6b2/changes_test.go#L1106 I understand that the deployer doesn't but I wonder if it can pass those settings on without interpreting. That one will have to be a different look/chunk of work. |
AdamIsrael
assigned
tvansteenburgh and
AdamIsrael
Jun 10, 2016
cholcombe973
commented
Jan 5, 2017
|
This is a blocker for me also on the gluster charm. |
|
I just created PR #169 which address this. |
Yrrsinn commentedFeb 2, 2016
This is needed for testing charms that depend on the juju-storage feature, these charms come with
hooks for every used storage relation, which need testing.
A charm can be deployed with different storage provider (e.g. loop or ebs for block)
$ juju deploy <charm> --storage <name>=<pool>,<size>,countThis could be expressed as an extension of Deployment.add(), e.g.
.add( 'servicename', storage={servicestorage:{'pool': 'ebs', 'size': 1024, 'count': 3}})Juju-Storage also provides the possibility to add storage to already deployed units
$ juju storage add <unit> <name>=<pool>,<size>,countI'm not sure how the adding (removing) of storage should be expressed in terms of amulet.
Trying to add this support myself, I stopped when I realize that amulet makes use of juju-deployer. juju-deployer does not provide support for juju-storage (not sure if it is expressible in the bundle-format, was not able to create a bundle using juju-gui export on a deployment with juju-storage)