Saiku Amulet charm testing

Marco Ceppi marco at ondina.co
Tue Dec 8 14:17:20 UTC 2015


Try

d = amulet.Deployment(series='trusty')

otherwise I think it defaults to precise but I'd need to check.

Marco

On Tue, Dec 8, 2015 at 9:10 AM Tom Barber <tom at analytical-labs.com> wrote:

> Okay modification made, can someone explain:
>
> cannot add relation "saiku:website tomcat:website": principal and
> subordinate services\' series must match'
>
> Thanks
>
> Tom
>
> --------------
>
> Director Meteorite.bi - Saiku Analytics Founder
> Tel: +44(0)5603641316
>
> (Thanks to the Saiku community we reached our Kickstart
> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/>
> goal, but you can always help by sponsoring the project
> <http://www.meteorite.bi/products/saiku/sponsorship>)
>
> On 8 December 2015 at 13:00, Tom Barber <tom at analytical-labs.com> wrote:
>
>> Thanks chaps.
>>
>> Tom
>>
>> --------------
>>
>> Director Meteorite.bi - Saiku Analytics Founder
>> Tel: +44(0)5603641316
>>
>> (Thanks to the Saiku community we reached our Kickstart
>> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/>
>> goal, but you can always help by sponsoring the project
>> <http://www.meteorite.bi/products/saiku/sponsorship>)
>>
>> On 8 December 2015 at 12:59, Tim Van Steenburgh <
>> tim.van.steenburgh at canonical.com> wrote:
>>
>>>
>>>
>>> On Tue, Dec 8, 2015 at 6:43 AM, Tom Barber <tom at analytical-labs.com>
>>> wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I'm trying to finally finish off this Saiku charm so I can submit it
>>>> for validation.
>>>>
>>>> I want to write a few simple tests but I need a couple of pointers for
>>>> help with Amulet as I'm not a python guy.
>>>>
>>>> d = amulet.Deployment()
>>>> d.add('tomcat')
>>>> d.add('saiku','cs:~f-tom-n/trusty/saikuanalytics-enterprise')
>>>> d.relate('saiku', 'tomcat')
>>>> d.expose('tomcat')
>>>>
>>>> I'm trying that but the relate throws a wobbly:
>>>>
>>>> ValueError: All relations must be explicit, service:relation
>>>>
>>>> What have I done wrong there?
>>>>
>>>
>>> You have to be explicit about what relation you're connecting services
>>> on, e.g.,
>>>
>>> d.relate('saiku:website', 'tomcat:website')
>>>
>>>
>>>>
>>>> Also, we use a manual environment internally, can I get amulet to
>>>> deploy to an LXC container like we do when deploying manually?
>>>>
>>>
>>> Yep, you can use the same placement directives that you'd use in a
>>> bundle file (see
>>> https://jujucharms.com/docs/1.25/charms-bundles#bundle-placement-directives),
>>> e.g.,
>>>
>>> d.add('tomcat', placement='lxc:0')
>>>
>>>
>>>> Thanks
>>>>
>>>> Tom
>>>>
>>>>
>>>> --------------
>>>>
>>>> Director Meteorite.bi - Saiku Analytics Founder
>>>> Tel: +44(0)5603641316
>>>>
>>>> (Thanks to the Saiku community we reached our Kickstart
>>>> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/> goal,
>>>> but you can always help by sponsoring the project
>>>> <http://www.meteorite.bi/products/saiku/sponsorship>)
>>>>
>>>> --
>>>> Juju mailing list
>>>> Juju at lists.ubuntu.com
>>>> Modify settings or unsubscribe at:
>>>> https://lists.ubuntu.com/mailman/listinfo/juju
>>>>
>>>>
>>>
>>
> --
> 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/20151208/14ade868/attachment.html>


More information about the Juju mailing list