juju / charmstore-client

Client for charmstore.
Other
9 stars 22 forks source link

How can we make multi-series charms single series? #95

Open mbruzek opened 7 years ago

mbruzek commented 7 years ago

@kwmonroe and I are trying to help our IBM partners resolve an issue. They have a multi-series charm named 'ibm-im'. They are trying to add some support for 'xenial' only and are not able to push a single series over a multi-series charm. https://jujucharms.com/u/ibmcharmers/ibm-im/

Can you please tell us how to make a multi-series charm single series again?

We tried several different things, such as editing the metadata.yaml with the proper seris and tried to push a single series. Here is the output:

ubuntu@5e3e0fb7c2ac:~/charms/trusty/ibm-im$ charm push . cs:~ibmcharmers/trusty/ibm-im  
ERROR cannot post archive: charm name duplicates multi-series charm name cs:~ibmcharmers/ibm-im-7
...
ubuntu@5e3e0fb7c2ac:~/charms/xenial/ibm-im$ charm push . cs:~ibmcharmers/xenial/ibm-im
ERROR cannot post archive: charm name duplicates multi-series charm name cs:~ibmcharmers/ibm-im-8

Here is the listing of the charm revisions.

$ charm show cs:~ibmcharmers/ibm-im revision-info
revision-info:
  Revisions:
  - cs:~ibmcharmers/ibm-im-8
  - cs:~ibmcharmers/ibm-im-7
  - cs:~ibmcharmers/trusty/ibm-im-6
  - cs:~ibmcharmers/trusty/ibm-im-5
  - cs:~ibmcharmers/trusty/ibm-im-4
  - cs:~ibmcharmers/trusty/ibm-im-3
  - cs:~ibmcharmers/trusty/ibm-im-2
  - cs:~ibmcharmers/trusty/ibm-im-1
  - cs:~ibmcharmers/trusty/ibm-im-0

We essentially want to reset this back to 6 and go from there.

mhilton commented 6 years ago

This was by design, @urosj are we likely to support doing this?

rogpeppe commented 5 years ago

We are not planning to allow this. Once multi-series, always multi-series. You can make another charm with a different name, or make the charm logic resilient to the different series.

erik78se commented 4 years ago

I get hit by this from multiple angles and would emphasize that there are fundamental worries to this, perhaps with also some soft values to the project juju itself.

I've written on this in the discourse: https://discourse.juju.is/t/support-multiple-os-series-in-a-single-charm/3121/6