Re: Private Icons for a charm.

2017-10-05 Thread Alex Kavanagh
>> 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 > > -- Alex Kavanagh - Software Engineer Cloud Dev Ops - Solutions & Product Engineering - Canonical Ltd -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju

Re: set_state not setting the state immediately

2017-10-03 Thread Alex Kavanagh
doesn't commit) the kv() store. So anything you put in kv() (from charmhelpers.core.unitdata) also won't get committed. Also, if you flush kv() yourself you'll mess with charms.reactive. In this situation, I tend to use a file as a sentinel to flag that I've really done

Re: charmhelpers migration to github

2017-09-21 Thread Alex Kavanagh
cycles on decoding > >>> unstructured information. > >>> > >>> Best Regards, > >>> Dmitrii Shcherbakov > >>> > >>> Field Software Engineer > >>> IRC (freenode): Dmitrii-Sh > >>> > >>> On Thu, Sep

Re: charmhelpers migration to github

2017-09-20 Thread Alex Kavanagh
anch is not a silver bullet > of course. > > https://github.com/isaacs/github/issues/997 > https://github.com/isaacs/github/issues/999 > > It would be great to hear some feedback on this topic so that we are not > doing anything random and have a common workflow. > > Thanks i

Re: charmhelpers migration to github

2017-09-20 Thread Alex Kavanagh
gt;>>>>>>> > >>>>>>>> >https://github.com/juju/charm-helpers >>>>>>>> > >>>>>>>> > I think we're in a good position to plan for a switch - I >>>>>>>> appreciate

Re: charmhelpers migration to github

2017-09-18 Thread Alex Kavanagh
gt;> that we >> > can automatically test pull requests. >> > >> > Cheers >> > >> > James >> >> I landed two of Alex's MPs today which fix unit test failures that >> would need to get pulled in. Other than that, the road is cle

Re: How to use LXC local image for new machine

2017-09-01 Thread Alex Kavanagh
On Fri, Sep 1, 2017 at 11:47 AM, Stuart Bishop wrote: > On 1 September 2017 at 02:37, fengxia wrote: > > According to https://bugs.launchpad.net/juju/+bug/1650651, juju 2.1 > supports > > using local image if its alias is `juju/series/arch` format. > > > > So following this, I created a local im

Re: Juju Charmer application

2017-08-30 Thread Alex Kavanagh
> -- > Frode Nordahl > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/juju > > -- Alex Kavanagh - Software Engineer Cloud Dev Ops - Solutions & Product Engineering - Canonical Ltd -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju

Re: designate-charm/designate-sink patch backport request

2017-08-17 Thread Alex Kavanagh
t to xenial stable, it looks safe. I applied > locally and it works flawlessy. > > I will be happy to test a new deb build if you want. > > Regards, have a nice weekend > > Patrizio > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscr

Re: juju application stuck, cannot remove/scale out

2017-08-07 Thread Alex Kavanagh
On Mon, Aug 7, 2017 at 2:14 PM, Patrizio Bassi wrote: > Dear Alex, > > i didn't try further, but i'll let you know in case it happens again > Regards > Thanks Patrizio. I hope the testing continues well. Cheers Alex. > > Patrizio > > 2017-08-04 16

Re: juju application stuck, cannot remove/scale out

2017-08-04 Thread Alex Kavanagh
gt;> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm >>> an/listinfo/juju >>> >>> >> >> >> -- >> Tom Barber >> CTO Spicule LTD >> t...@spicule.co.uk >> >> http://spicule.co.uk >> >> @spicu

Re: juju application stuck, cannot remove/scale out

2017-08-04 Thread Alex Kavanagh
t; How to fix this kind of problem? > Thank you > > Patrizio > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/juju > > -- Alex Kavanagh - Software Engineer Cloud Dev Ops - Sol

Re: Is a set state called multiple times?

2017-07-28 Thread Alex Kavanagh
t; After reading Tilman's and Cory's replies, I think the confusion is at >> continuous evaluation (thus execution) of a True state. So a pair of @when >> and @when_not will result in one of them being executed over and over >> despite adding a remove_state("myse

Re: Is a set state called multiple times?

2017-07-27 Thread Alex Kavanagh
eer > Lenovo USA > > Phone: 5088011794 > fx...@lenovo.com > > Lenovo.com > Twitter | Facebook | Instagram | Blogs | Forums > > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/juju > -- Alex Kavanagh - Software Engineer Cloud Dev Ops - Solutions & Product Engineering - Canonical Ltd -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju

Re: How to count relations?

2017-06-09 Thread Alex Kavanagh
aks down on 1-to-many. > > On Wed, Jun 7, 2017 at 12:30 PM, Alex Kavanagh < > alex.kavan...@canonical.com> wrote: > >> >> >> On Wed, Jun 7, 2017 at 4:44 PM, Cory Johns >> wrote: >> >>> Alex beat me to it, but here's a marginally more co

Re: How to count relations?

2017-06-07 Thread Alex Kavanagh
face I wrote (manila-plugin). Thanks! Alex. > On Wed, Jun 7, 2017 at 11:38 AM, Alex Kavanagh < > alex.kavan...@canonical.com> wrote: > >> Hi >> >> I'm assuming you are using charms.reactive; if not then look into >> relation_ids command. >> >

Re: How to count relations?

2017-06-07 Thread Alex Kavanagh
> > Phone: 5088011794 > fx...@lenovo.com > > Lenovo.com > Twitter | Facebook | Instagram | Blogs | Forums > 9 > > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/juju &g

Re: Migrating charmhelpers to github

2017-05-25 Thread Alex Kavanagh
On Thu, May 25, 2017 at 2:17 PM, Adam Collard wrote: > On Thu, 25 May 2017 at 14:14 Alex Kavanagh > wrote: > >> Hi James >> >> I'm a big +1 to this idea, but with one tiny reservation: I have a >> rather large merge-proposal regarding a refactor of the ho

Re: Migrating charmhelpers to github

2017-05-25 Thread Alex Kavanagh
t; Anyone got any objections? > > This will of course impact anyone currently syncing charmhelpers into > their charm, but that's not a hard problem to solve. > > Cheers > > James > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscr

Re: PROPOSAL: stop recording 'executing update-status hook'

2017-05-22 Thread Alex Kavanagh
gt; > Thoughts? > > Unfortunately update-status got wired into charms.reactive like all > the other standard hooks, and just means 'do whatever still needs to > be done'. I think its too late to add timeouts or restrictions. But I > do think special casing it in the status

Re: Normalizing output dir for charm build

2017-05-10 Thread Alex Kavanagh
tible, and may affect automated >> build systems, but I think it would be easy to adjust for and simplify >> things for everyone concerned. >> >> Thoughts? Objections? >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsub

Re: Proposing Alex Kavanagh for ~charmers

2017-04-27 Thread Alex Kavanagh
gt;> -- >> 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.

Re: Do states have namespace?

2017-04-18 Thread Alex Kavanagh
; Engineer > Lenovo USA > > Phone: 5088011794 > fx...@lenovo.com > > Lenovo.com > Twitter | Facebook | Instagram | Blogs | Forums > > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/juj

Re: Juju charm hook vs. state

2017-04-14 Thread Alex Kavanagh
x27;installed') def install_software(): ... install the software ... set_state('installed') i.e. you are on the right approach! Hope that this helps. All the best Alex. > > -- > Feng xia > Engineer > Lenovo USA > > Phone: 5088011794 > fx...@l

Re: Multi-series charm authors: new functionality for comparing ubuntu versions

2017-04-14 Thread Alex Kavanagh
On Thu, Apr 13, 2017 at 10:13 PM, Colin Watson wrote: > On Thu, Apr 13, 2017 at 09:15:08PM +0100, Alex Kavanagh wrote: > > So instead of: > > > > if ubuntu_version > 'trusty': > > > > We do: > > > > cmp_version = CompareHos

Multi-series charm authors: new functionality for comparing ubuntu versions

2017-04-13 Thread Alex Kavanagh
ase > 'mitaka': We're now in the process of finalises the fixes to the OpenStack charms and they'll be in 'next' over the coming week. Thanks, and hope this is useful. Best Alex. [1] -- charm-helpers: https://launchpad.net/charm-helpers -- Alex Kavanagh -

Re: normal charm to subordinate charm and now peer relation does not work

2017-01-27 Thread Alex Kavanagh
; >> get initialised with bullshit. > >> > >> This would be a example of a correctly initialised conversion. > >> {'scope': 'global', 'units': ['dokuwiki/25'], 'namespace': > 'host-system'} > >> >

Re: normal charm to subordinate charm and now peer relation does not work

2017-01-25 Thread Alex Kavanagh
On Wed, Jan 25, 2017 at 1:08 PM, Tilman Baumann < tilman.baum...@canonical.com> wrote: > > > On 25.01.2017 13:06, Alex Kavanagh wrote: > > Hi Tilman > > > > On Wed, Jan 25, 2017 at 11:43 AM, Tilman Baumann > > mailto:tilman.baum...@canonical.com>>

Re: normal charm to subordinate charm and now peer relation does not work

2017-01-25 Thread Alex Kavanagh
; > Thanks > Tilman > > > PS: File as bug in LP? > > > On 25.01.2017 11:00, Tilman Baumann wrote: > > On 24.01.2017 16:56, Alex Kavanagh wrote: > >> Hi Tilman > >> > >> (I'm not an expert here, but was staring at the docs) > >>

Re: normal charm to subordinate charm and now peer relation does not work

2017-01-24 Thread Alex Kavanagh
lled when a unit joins or > > leaves. But somehow it's information is not added to the conversation. > > Or rather, I think it replaces actually the currently visible single > > entry in there. > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify s

Re: Proposal: display-name for charm metadata

2016-09-24 Thread Alex Kavanagh
renced the Application, instead of the deployment > instructions, to use the display-name field (see attached). > > Curious opinions on this, repercussions of adding metadata fields, esp for > older versions of Juju, and if this is worth pursing. > > -- > Juju mailing list > Ju

Re: Dynamically registering reactive handlers at runtime

2016-02-18 Thread Alex Kavanagh
are not known during build time. We > do know that _all_ queued packages have to be installed. Would it be > possible to have an `apt.installed.all` state? > Well, your own script sets the states, so yes; but I don't know enough about your use case to advise on that - I was more com

Re: Dynamically registering reactive handlers at runtime

2016-02-18 Thread Alex Kavanagh
priate handlers, or bundle them all into a single @when(...) if they share a common handler? e.g. @when('apt.installed.packagename1') def ... @when('apt.installed.packagename2') def ... and/or @when('apt.installed.packagename1', 'apt.installed.packagename2'