Small script to connect to Juju's mongo in LXD

Anastasia Macmood anastasia.macmood at canonical.com
Thu Jul 28 02:57:48 UTC 2016


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 be tedious to search through when something is needed.

[1]

https://github.com/juju/juju/wiki/Debugging-Juju


On 28/07/16 12:46, Andrew Wilkins wrote:
> On Thu, Jul 28, 2016 at 12:32 AM John Meinel <john at arbash-meinel.com
> <mailto:john at arbash-meinel.com>> 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 agent.conf and launch mongo with the right options.
>     It would be nice to have that in a more official place so it
>     doesn't get forgotten.
>
>
> Kapil wrote a plugin for inspecting
> Mongo: https://github.com/kapilt/juju-dbinspect. It's almost certainly
> broken in Juju 2.0. I've found it handy in the past, it'd be good to
> have that brought up to date.
>
> Cheers,
> Andrew
>  
>
>     John
>     =:->
>
>
>     On Wed, Jul 27, 2016 at 6:19 PM, Katherine Cox-Buday
>     <katherine.cox-buday at canonical.com
>     <mailto:katherine.cox-buday at canonical.com>> wrote:
>
>         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 updated it. I
>         finally got frustrated enough to modify[1] it, and thought
>         others might find this useful for poking around Mongo.
>
>         Let me know if you have any suggestions.
>
>         --
>         Katherine
>
>         [1] - http://pastebin.ubuntu.com/21155985/
>
>         --
>         Juju-dev mailing list
>         Juju-dev at lists.ubuntu.com <mailto:Juju-dev at lists.ubuntu.com>
>         Modify settings or unsubscribe at:
>         https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
>     --
>     Juju-dev mailing list
>     Juju-dev at lists.ubuntu.com <mailto:Juju-dev at lists.ubuntu.com>
>     Modify settings or unsubscribe at:
>     https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20160728/7fcb01c6/attachment.html>


More information about the Juju-dev mailing list