Can resources be optional?

Bug #1588555 reported by Matt Bruzek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Undecided
Unassigned

Bug Description

We are developing a charm with our partners that takes 2 resources.

One of the resources is optional but the charm publish commands requires both resources.

charm push cs:~kwmonroe/trusty/ibm-im
charm publish cs:~kwmonroe/trusty/ibm-im-0
ERROR cannot publish charm or bundle: bad request: charm published with incorrect resources: resources are missing from publish request: ibm_im_fixpack, ibm_im_installer

Is there any way of making some resources optional? I discussed this with cmars and wallyworld in #juju. We talked about an "optional" tag in the metadata.yaml. Are there any other ideas?

Revision history for this message
Richard Harding (rharding) wrote :

The charmstore requires that to publish a charm with resources you must supply at least a dummy resource so that any time a user is to juju deploy XXX it's expected to work with the dummy placeholder resource.

An example would be the django charm. It should ship with a hello world application so that tests can run, the charm can be deployed, etc. All of that works without requiring the user to provide something locally in the right format from their machine which they might not have.

Changed in juju-core:
status: New → Won't Fix
Revision history for this message
Matt Bruzek (mbruzek) wrote :

Thanks for the response rharding. I wonder if that will be obvious to users who will want to use resources and run into this issue as I have. I can envision users having optional resources or may not have resources for all architectures at the time of charm publish.

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.