Re: Charm store API proposal, new version

2014-07-16 Thread Ian Booth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To echo what Aaron says, in any distributed system, it is almost always a mistake not to design for bulk api calls. Even if you don't think they are needed for the initial use cases, they will almost always be needed at some point later. It is trivial

Re: Charm store API proposal, new version

2014-07-16 Thread John Meinel
... To echo what Aaron says, in any distributed system, it is almost always a mistake not to design for bulk api calls. Even if you don't think they are needed for the initial use cases, they will almost always be needed at some point later. It is trivial to use a bulk call with a single

Fwd: Charm store API proposal, new version

2014-07-16 Thread roger peppe
[resending with correct From address] On 15 July 2014 21:07, Aaron Bentley aaron.bent...@canonical.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14-07-15 11:43 AM, Richard Harding wrote: On Tue, 15 Jul 2014, Aaron Bentley wrote: On 14-07-15 10:17 AM, roger peppe wrote: The

Re: Current handling of failed upgrades is screwy

2014-07-16 Thread roger peppe
On 16 July 2014 13:12, David Cheney david.che...@canonical.com wrote: +132 ... might be +0 on a 32 bit architecture :-) -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev

Re: Charm store API proposal, new version

2014-07-16 Thread Gustavo Niemeyer
On Tue, Jul 15, 2014 at 7:05 PM, Richard Harding rick.hard...@canonical.com wrote: It is listed under known clients in the spec, and we mentioned your request down below. What we lack is your specific use cases as no one working on the spec is knowledgeable about how you're using the api.

Re: Charm store API proposal, new version

2014-07-16 Thread William Reade
On Wed, Jul 16, 2014 at 12:10 PM, Richard Harding rick.hard...@canonical.com wrote: I'm not against having any bulk api calls but we've got a handful of clients and the one use case we've found for them is Aaron's work which I think we can better address with our current scheme anyway as he

And now for my next trick ...

2014-07-16 Thread Jesse Meek
After checking the import grouping I became curious as to what else I could check. So, while on holiday, I wrote another script to check if errors are being discarded. It uses the ast package to check for both assignment statements, where a value of type error is being assigned to a variable

And now for my next trick ...

2014-07-16 Thread Jesse Meek
After checking the import grouping I became curious as to what else I could check. So, while on holiday, I wrote another script to check if errors are being discarded. It uses the ast package to check for both assignment statements, where a value of type error is being assigned to a variable

Re: And now for my next trick ...

2014-07-16 Thread roger peppe
Nice (and good to get some familiarity with go/ast). You might want to check out github.com/kisielk/errcheck, which does a similar thing, but using the types package, so it can do a somewhat more comprehensive check. It's a lot slower though. Here's the output when running it on juju-core:

Conditional compilation primer

2014-07-16 Thread David Cheney
Hello, Tim asked me to circulate this to aide those who have to review code that deals with conditional compilation. http://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool Cheers Dave -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or

log spam related to /etc/network/interfaces

2014-07-16 Thread Menno Smits
I've just noticed that Juju is currently repeating the following every 3 seconds on my dev machine when using the local provider: machine-0: 2014-07-17 05:12:32 ERROR juju.worker runner.go:218 exited networker: open /etc/network/interfaces: no such file or directory /etc/network/interfaces does

Re: Can we get rid of the hash(password) dance?

2014-07-16 Thread David Cheney
Yes, please! On Thu, Jul 17, 2014 at 2:49 PM, John Meinel j...@arbash-meinel.com wrote: Michael is working on changing how we handle sessions with Mongo, and noticed that his first attempt started running into Auth failures. It turned out that this was because of the hash(password) dance. (For