What determines the charm series?

Akshat Jiwan Sharma akshatjiwan at gmail.com
Tue Sep 26 16:29:35 UTC 2017


Thanks Rick!

On 26-Sep-2017 20:00, "Rick Harding" <rick.harding at canonical.com> wrote:

> The series is defined in the metadata.yaml. Charms now support a list of
> series and the preference for the charm is determined by the order in the
> list.
>
> Before the support for one charm to support multiple series at once, users
> had to publish them directly to a specific series which is why you're not
> seeing it in the older charms.
>
> You can force a deploy to a series at deploy time. To quote juju deploy
> --help
>
> If '--series' is not specified, the charm's default series is used. The
> default
> series for a charm is the first one specified in the charm metadata. If the
> specified series is not supported by the charm, this results in an error,
> unless '--force' is used.
>
> If you want to see if the charm will work on the latest series try using
> that --force option.
>
> On Tue, Sep 26, 2017 at 10:25 AM Akshat Jiwan Sharma <
> akshatjiwan at gmail.com> wrote:
>
>> Hello Everyone,
>>
>> I was looking at wordpress charm on the juju store and I noticed that the
>> recommended version supported Trusty and Precise series. Where as one
>> community version supported xenial and trusty series.
>>
>> I downloaded the recommended  <https://jujucharms.com/wordpress/trusty/5> charm
>> package from the store and tried to look at code but I could not see where
>> exactly the series definition is set. However in one of the community
>> editions <https://jujucharms.com/u/ionutbalutoiu/wordpress/1> the series
>> was mentioned in the metadata.yml file.
>>
>> Is there any way I can use the recommended wordpress charm on my xenial
>> machine. Currently when I try to deploy I get the following error:-
>>
>> "cannot add application "wordpress": cannot deploy to machine 0: series
>> does not match"
>>
>> Thanks,
>> Akshat
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/juju
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170926/cb3886aa/attachment.html>


More information about the Juju mailing list