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

2016-07-28 Thread Michael Hudson-Doyle
On 28 July 2016 at 18:01, John Meinel wrote: > Shouldn't we have a Mongo 3.2 client in /usr/lib/juju/* on Xenial? I think > the specific directory includes the Mongo version (the 2.4 ones were > /usr/lib/juju/bin/mongo IIRC) Only in -proposed, see

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

2016-07-28 Thread John Meinel
Shouldn't we have a Mongo 3.2 client in /usr/lib/juju/* on Xenial? I think the specific directory includes the Mongo version (the 2.4 ones were /usr/lib/juju/bin/mongo IIRC) John =:-> On Jul 28, 2016 05:11, "Menno Smits" wrote: > Nice. I'd suggest 2 things: > >-

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: 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

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