Re: Schema for Juju RPC messages

2016-07-27 Thread Tim Penhey
While at the London sprint I was toying with the idea of adding the ability of the rpc package to do some rudimentary initial validation. We could get a good part of the way with relatively little effort IMO. Using the reflect package, we can interrogate the public attributes of the structure

Re: Small script to connect to Juju's mongo in LXD

2016-07-27 Thread Menno Smits
Small correction: http://paste.ubuntu.com/21232706/ Serves me right for cleaning it up a little before sending. On 28 July 2016 at 15:11, Menno Smits wrote: > Nice. I'd suggest 2 things: > >- Change the mongo command line to include `--authenticationDatabase >

Re: Small script to connect to Juju's mongo in LXD

2016-07-27 Thread Menno Smits
Nice. I'd suggest 2 things: - Change the mongo command line to include `--authenticationDatabase admin` and then change the database being connected to in the URL to "juju" instead of "admin". That way you get dropped straight into the juju database which is usually what you want.

Re: Small script to connect to Juju's mongo in LXD

2016-07-27 Thread Anastasia Macmood
We have started putting useful information and similar handy scripts on juju/wiki [1]. It'd be nice to grow this knowledge base and have this information in one central area - easier to maintain/keep current. Mailing lists are a nice way of communicating new and interesting information but can

Re: Small script to connect to Juju's mongo in LXD

2016-07-27 Thread Andrew Wilkins
On Thu, Jul 28, 2016 at 12:32 AM John Meinel wrote: > Did you intend to attach the script to the email? It does sound like > something useful. I know when we were investigating at some client sites we > had a small snippet of a bash function to dig the content out of

Re: Schema for Juju RPC messages

2016-07-27 Thread Rick Harding
> > That being said, any API client that requires three API calls to login > should be beat over the head with a fail stick, but there are many cases > where performing some workflow might require multiple api calls. The API > clients should work out a single function of

Re: Schema for Juju RPC messages

2016-07-27 Thread Rick Harding
On Wed, Jul 27, 2016 at 3:18 PM Katherine Cox-Buday < katherine.cox-bu...@canonical.com> wrote: > Good point, Mark. I agree that it's difficult to make an auto-generated > client idiomatic/nice to use. What I like to do is use the schema to > auto-generate the boilerplate, and then wrap that with

Re: Schema for Juju RPC messages

2016-07-27 Thread Katherine Cox-Buday
Mark Shuttleworth writes: > On 27/07/16 19:43, Reed O'Brien wrote: > > +1 > > > On Wed, Jul 27, 2016 at 9:52 AM, Katherine Cox-Buday > wrote: > > > I am a huge fan of publishing schema's and then

Re: Schema for Juju RPC messages

2016-07-27 Thread Mark Shuttleworth
On 27/07/16 19:43, Reed O'Brien wrote: > +1 > > On Wed, Jul 27, 2016 at 9:52 AM, Katherine Cox-Buday > > wrote: > > > I am a huge fan of publishing schema's and then generating SDKs > and documentation websites

Re: Schema for Juju RPC messages

2016-07-27 Thread Reed O'Brien
+1 On Wed, Jul 27, 2016 at 9:52 AM, Katherine Cox-Buday < katherine.cox-bu...@canonical.com> wrote: > > I am a huge fan of publishing schema's and then generating SDKs and > documentation websites off of them. It brings your API closer to language > agnostic, removes the burden on us having to

Re: Interactive bootstrap has landed

2016-07-27 Thread Andreas Hasenack
On Wed, Jul 27, 2016 at 2:19 PM, Nate Finch wrote: > If you run "juju bootstrap" or "juju bootstrap --upload-tools", you will > now be placed into an interactive mode that will ask you for details about > the cloud you'd like to bootstrap on. Currently this is limited

Re: Schema for Juju RPC messages

2016-07-27 Thread Katherine Cox-Buday
I am a huge fan of publishing schema's and then generating SDKs and documentation websites off of them. It brings your API closer to language agnostic, removes the burden on us having to hand-craft both our API client and our documentation site, and makes validation implicit. I'm not up on

Re: Small script to connect to Juju's mongo in LXD

2016-07-27 Thread John Meinel
Ah sorry. My email client treats everything after your signature as "quiet" values so it didn't jump out at me. I see it now. John =:-> On Jul 27, 2016 18:45, "Katherine Cox-Buday" < katherine.cox-bu...@canonical.com> wrote: > It's in the pastebin I linked. > > But yes, I find it extremely

Re: Small script to connect to Juju's mongo in LXD

2016-07-27 Thread Katherine Cox-Buday
It's in the pastebin I linked. But yes, I find it extremely useful for debugging. I could see how having it handy at client sites would be super useful. John Meinel writes: > Did you intend to attach the script to the email? It does sound like > something useful. I

Re: Small script to connect to Juju's mongo in LXD

2016-07-27 Thread John Meinel
Did you intend to attach the script to the email? It does sound like something useful. I know when we were investigating at some client sites we had a small snippet of a bash function to dig the content out of agent.conf and launch mongo with the right options. It would be nice to have that in a

Schema for Juju RPC messages

2016-07-27 Thread John A Meinel
We've had some requests from people trying to drive Juju that it would actually be really nice if we were stricter with the messages that we accept on our API. Specifically, as we've changed the API methods, they had several hard-to-debug problems because they were passing a parameter that was

Small script to connect to Juju's mongo in LXD

2016-07-27 Thread Katherine Cox-Buday
I frequently need to connect to Juju's Mongo instance to poke around and see if something I've done is having the desired effect. Back when we were using LXC, I had a script that would pull the password from agent.conf and open a shell. When we switched to LXD my script broke, and I never

Critical bugs need fixing

2016-07-27 Thread Curtis Hovey-Canonical
As seen at https://bugs.launchpad.net/juju-core/+bugs?field.importance=Critical We still have 14 Critical bugs, 7 have not been started. The last two still need assignee. I'll call out" munna/juju2 is too slow to deploy windows images" https://bugs.launchpad.net/juju-core/+bug/1605777

Re: Juju stable 1.25.6 is released

2016-07-27 Thread Mark Shuttleworth
On 27/07/16 11:35, Martin Packman wrote: > A stable release of Juju, juju-core 1.25.6, is now available. > This release replaces version 1.25.5. Thank you! Mark -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or unsubscribe at:

Re: Juju stable 1.25.6 is released

2016-07-27 Thread Adam Collard
Can we use hyperlinks to Launchpad bugs in these release emails? It's a small papercut but every time I want to dig in on some of the bugs to work out the potential impact and have to go through a copy/paste step. Thanks! On Wed, 27 Jul 2016 at 10:35 Martin Packman

Juju stable 1.25.6 is released

2016-07-27 Thread Martin Packman
# juju-core 1.25.6 A stable release of Juju, juju-core 1.25.6, is now available. This release replaces version 1.25.5. ## Getting Juju juju-core 1.25.6 is available for Xenial and backported to earlier series in the following PPA: https://launchpad.net/~juju/+archive/stable Windows,

Re: No help Topics in 2.0

2016-07-27 Thread Mark Shuttleworth
Good catch Nate. Mark On 27/07/16 05:08, Nate Finch wrote: > Juju 1.x had a ton of help in the CLI, right at your fingertips: > > $ juju1 help topics > azure-provider How to configure a Windows Azure provider > basics Basic commands > commandsBasic help for all