No way to express Juju Storage Relations

Bug #1541032 reported by Bruno Ranieri
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-deployer
Fix Released
High
Tim Kuhlman

Bug Description

I can't find a way to express Juju storage constraints.

Given a charm that makes use of storage relations (in metadata.yaml)
[...]
  data-block:
    type: block
    description: storage needed for deployed service
    minimum-size: 200G
    multiple:
      range: 1-

it can be deployed using command-line argument (e.g.)
[...] --storage data-block=ebs
to switch the storage provider from loop to ebs volumes (on aws).

In addition to this, juju provides at the command line the possibility to add storage to an unit (e.g.)

juju storage add <unit> data-block=ebs,1024G,3

this must be expressible using juju-deployer as well.

This bug report is downstream from a feature request for amulet (Juju Testing Framework). Since amulet is build on juju-deployer, amulet cannot be used for charms that use Juju storage.

Related branches

Changed in juju-deployer:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Gui Bot (rick-harding+guibot) wrote :

The native juju deploy of bundles added support for this and it's in 2.0. We should mirror support from that as required.

https://github.com/juju/bundlechanges/blob/2618de2ad622b29a396a826628d4a81b8562d6b2/changes_test.go#L1106

Tim Kuhlman (timkuhlman)
Changed in juju-deployer:
assignee: nobody → Tim Kuhlman (timkuhlman)
Tim Kuhlman (timkuhlman)
Changed in juju-deployer:
status: Confirmed → In Progress
Changed in juju-deployer:
status: In Progress → Fix Committed
Tom Haddon (mthaddon)
Changed in juju-deployer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.