A few issues

William Reade william.reade at canonical.com
Wed Apr 10 22:22:15 UTC 2013


On Wed, 2013-04-10 at 18:39 -0300, Gustavo Niemeyer wrote:
> I believe this is incorrect. Python has the "installed" status as
> well, and I believe it covers that case. "pending" means that the
> agent data is missing entirely, which isn't the situation described.

If it's running the "install" hook, it's not yet "installed". We do
have, and pass through, an "installed" agent-state, but many charms
don't spend long there before graduating to "started".

> Yes, I didn't even know --fake-series existed. How does that work? Can
> we make it easier for people just trying things out to not have to
> read a lot of theory before it will work?

There are two obvious improvements that need to be made to --fake-series
(which is merely the latest (and hopefully among the last) of various
short-term-focused responses to the lack of series handling). We should
certainly default to uploading fake tools for the default-series
regardless (which I think would have resolved your problem); and we
should expose it for upgrade-juju as well (with similar defaults).

This should hit the vast bulk of use cases; and the imminent changes to
the tools selection logic would have caused a clearer failure earlier,
so I think this is in hand.

> It's not clear to me how that's relevant. JSON already formatted
> machine ids as strings, both in Python and in the Go version we
> implemented. This issue is only relevant in YAML, and it was broken
> after the internal change in machine ids.

My contention is that inconsistent JSON output is a real issue, and the
YAML change is collateral damage from the fix; but that bringing the two
representations in line will still help more than it will hurt.

> As you know I was indeed displeased with the fact that integers are
> being represented as strings, but what I'm bringing up here is
> unrelated to that. In this case I'm simply concerned that this is a
> gratuitous incompatibility with existing logic that was broken mid-way
> through the life of the Go port for no apparent reason. As usual, I'll
> trust your judgement on the past path.

Yeah, in hindsight, that was a clear mistake; I didn't expect that an
int-ids-everywhere proposal would find favour, so I didn't push it as
hard as it deserved, and it's going to cause trouble sooner or later. I
agree it's orthogonal to this issue.

Thank you sincerely for your support at this difficult time :).

Cheers
William




More information about the Juju mailing list