Re: JUJU_UNIT_NAME no longer set in env

2017-05-22 Thread Ian Booth
FWIW, Juju itself still sets JUJU_UNIT_NAME https://github.com/juju/juju/blob/develop/worker/uniter/runner/context/context.go#L582 On 23/05/17 05:59, James Beedy wrote: > Juju 2.1.2 > > I'm getting this "JUJU_UNIT_NAME not in env" error on legacy-non-reactive > xenial charm using service_name()

GUI Props

2017-05-22 Thread James Beedy
The latest Juju GUI release is a huge step in the right direction! Amongst the great improvements, the account page is really the start to something great! Massive props and many thanks to all who have put in hard work and long hours to bring the GUI to where it is today. Looking forward, I'm wond

JUJU_UNIT_NAME no longer set in env

2017-05-22 Thread James Beedy
Juju 2.1.2 I'm getting this "JUJU_UNIT_NAME not in env" error on legacy-non-reactive xenial charm using service_name() from hookenv. http://paste.ubuntu.com/24626263/ Did we remove this? ~James -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.

Re: Python-Django

2017-05-22 Thread James Beedy
The python-Django charm is largely outdated in many respects. I have been meaning to do a deep dive on it and turn it into something usable (there have been a few attempts at this over the years we can also look at). I can apply some of the goodies I've developed for my rails-layer in the Django

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

2017-05-22 Thread Alex Kavanagh
>From a 'principle of least surprise', I think that this proposal is probably a bad idea. The main driver is to (I guess) reduce the volume of 'chat' between the controller and 100's or 1000's of charms, and the effect this has on the status log. However, my 'guess' is also probably wrong as it w

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

2017-05-22 Thread Stuart Bishop
On 22 May 2017 at 14:36, Tim Penhey wrote: > On 20/05/17 19:48, Merlijn Sebrechts wrote: >> >> On May 20, 2017 09:05, "John Meinel" > > wrote: >> >> I would actually prefer if it shows up in 'juju status' but that we >> suppress it from 'juju status-log' by d

Re: django charm broken or am I just doing it wrong?

2017-05-22 Thread Erik Lönroth
Hello Tim! Thanx for interacting on the subject. Would you be able to assist me in be able to deploy my website/django with juju and/or improve the docs for the charm? I am not an expert but love to help. /Erik Den 22 maj 2017 9:15 fm skrev "Tim Penhey" : > Hmm.. I kinda do, but haven't touch

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

2017-05-22 Thread Tim Penhey
On 20/05/17 19:48, Merlijn Sebrechts wrote: On May 20, 2017 09:05, "John Meinel" > wrote: I would actually prefer if it shows up in 'juju status' but that we suppress it from 'juju status-log' by default. This is still very strange behavior. Why should th

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

2017-05-22 Thread Tim Penhey
On 19/05/17 19:21, roger peppe wrote: On 19 May 2017 at 03:13, Tim Penhey wrote: Hi folks, Currently juju will update the status of any hook execution for any unit to show that it is busy doing things. This was all well and good until we do things based on time. Every five minutes (or so) eac

Re: django charm broken or am I just doing it wrong?

2017-05-22 Thread Tim Penhey
Hmm.. I kinda do, but haven't touched it for a long time. I also use the subordinate charm method of delivering the webapp to the charm. I found that to use the charm properly you had to have the settings for the django project be a directory rather than a simple .py file. Tim On 22/05/17