I have to say, I update local multiseries charms all the time and do see that, so its certainly a bit odd.
On Thu, Dec 8, 2016 at 7:46 PM, Merlijn Sebrechts < merlijn.sebrec...@gmail.com> wrote: > Ok. > > And what about deployment of a multiseries charm? It seems to me that it > should use the `default-series` of the model if the charm supports it. The > order in `metadata.yaml` should only be used as a last resort.. > > 2016-12-08 14:41 GMT-05:00 Rick Harding <rick.hard...@canonical.com>: > >> Oops sorry. It's what I get for replying while out. So the series in >> metadata.yaml is ordered by preferred series. However, you're completely >> correct that upgrade should not be attempting to upgrade across series with >> an upgrade charm. We'll look into this and file a bug as soon as we >> replicate. >> >> On Thu, Dec 8, 2016, 8:37 PM Merlijn Sebrechts < >> merlijn.sebrec...@gmail.com> wrote: >> >>> That seems like strange behavior. I would expect that the following for >>> multiseries charms: >>> >>> - For upgrading, use the series of the deployed application. If that >>> series is not supported by the "new" charm, throw an error. The error can >>> be overridden with `--force-series`. (as stated in the help docs.) >>> - For deploying, use the `default-series` (This is NOT the case, and this >>> is definitely a bug according to the docs >>> <https://jujucharms.com/docs/2.0/models-config#list-of-model-keys>.) >>> >>> >>> In general, for multiseries charms, the following order seems the most >>> logical to me: >>> Application to upgrade > default-series > order of series in >>> metadata.yaml >>> >>> >>> Also note that it's not possible to specify a series manually with >>> `upgrade-charm`. The command doesn't recognize the `--series` flag. >>> >>> 2016-12-08 14:20 GMT-05:00 Rick Harding <rick.hard...@canonical.com>: >>> >>> Trusty is listed first. Order counts for the series list. >>> >>> On Thu, Dec 8, 2016, 6:25 PM Merlijn Sebrechts < >>> merlijn.sebrec...@gmail.com> wrote: >>> >>> Hi >>> >>> >>> I'm having trouble upgrading a multiseries charm. >>> >>> >>> merlijn@travers:~$ juju status >>> Model Controller Cloud/Region Version >>> merlijntest sojobo tengumaas 2.0.1 >>> >>> App Version Status Scale Charm Store Rev OS Notes >>> openvpn active 1 openvpn jujucharms 4 ubuntu >>> >>> Unit Workload Agent Machine Public address Ports Message >>> openvpn/1* active idle 10 193.190.127.152 443/tcp Ready >>> >>> Machine State DNS Inst id Series AZ >>> 10 started 193.190.127.152 4y3h7y xenial default >>> >>> merlijn@travers:~$ juju upgrade-charm openvpn --path >>> $JUJU_REPOSITORY/builds/openvpn >>> Added charm "local:trusty/openvpn-16" to the model. >>> ERROR cannot upgrade application "openvpn" to charm >>> "local:trusty/openvpn-16": cannot change an application's series >>> >>> >>> Metadata.yaml: >>> >>> "series": ["trusty", "xenial"] >>> >>> >>> I have no idea why he thinks I want to upgrade to trusty... >>> >>> >>> >>> Kind regards >>> Merlijn >>> -- >>> Juju mailing list >>> Juju@lists.ubuntu.com >>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm >>> an/listinfo/juju >>> >>> >>> > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/juju > > -- Tom Barber CTO Spicule LTD t...@spicule.co.uk http://spicule.co.uk GB: +44(0)5603641316 US: +18448141689
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju