https://codereview.appspot.com/9738043/diff/5001/cmd/jujud/bootstrap.go#newcode140
cmd/jujud/bootstrap.go:140: }
On 2013/05/27 20:13:26, fwereade wrote:
> I guess if we fail here, we have a borked environment regardless. So,
given the
> failure modes we've already embraced, ok, I guess... but it's a bit
surprising
> nonetheless. Comment perhaps?
i'm not sure what kind of comment you're thinking here.
how is failing to write the configuration any different
from any of the above failure modes?
what do you suggest instead? we still need to do exactly the same thing
AFAICS. i wasn't thinking of redesigning this logic at this point, but i
can do if you'd like it to change.
Please take a look.
https:/ /codereview. appspot. com/9738043/ diff/5001/ cmd/jujud/ bootstrap. go bootstrap. go (right):
File cmd/jujud/
https:/ /codereview. appspot. com/9738043/ diff/5001/ cmd/jujud/ bootstrap. go#newcode140 bootstrap. go:140: }
cmd/jujud/
On 2013/05/27 20:13:26, fwereade wrote:
> I guess if we fail here, we have a borked environment regardless. So,
given the
> failure modes we've already embraced, ok, I guess... but it's a bit
surprising
> nonetheless. Comment perhaps?
i'm not sure what kind of comment you're thinking here.
how is failing to write the configuration any different
from any of the above failure modes?
https:/ /codereview. appspot. com/9738043/ diff/5001/ cmd/jujud/ bootstrap_ test.go bootstrap_ test.go (right):
File cmd/jujud/
https:/ /codereview. appspot. com/9738043/ diff/5001/ cmd/jujud/ bootstrap_ test.go# newcode198 bootstrap_ test.go: 198: info.Tag, info.Password = "",
cmd/jujud/
testPasswordHash
On 2013/05/27 20:13:26, fwereade wrote:
> wait, why can user-admin log in as ""?
the empty string means "admin" when logging into the state. see the docs
on state.Info.Tag. i disclaim all responsibility for that decision :-)
https:/ /codereview. appspot. com/9738043/ diff/5001/ cmd/jujud/ bootstrap_ test.go# newcode220 bootstrap_ test.go: 220: machineConf1. StateInfo. Password, Equals, APIInfo. Password)
cmd/jujud/
c.Assert(
machineConf1.
On 2013/05/27 20:13:26, fwereade wrote:
> Are we duplicating tag/password for the same entities everywhere? If
so, why?
we use the same password for the state that we do for the API.
is that bad?
https:/ /codereview. appspot. com/9738043/ diff/5001/ environs/ agent/agent. go agent/agent. go (right):
File environs/
https:/ /codereview. appspot. com/9738043/ diff/5001/ environs/ agent/agent. go#newcode208 agent/agent. go:208: func (c *Conf) OpenAPI() (st *api.State, juggling
environs/
newPassword string, err error) {
On 2013/05/27 20:13:26, fwereade wrote:
> Why are we duplicating this back-to-front newPassword-
behaviour?
what do you suggest instead? we still need to do exactly the same thing
AFAICS. i wasn't thinking of redesigning this logic at this point, but i
can do if you'd like it to change.
https:/ /codereview. appspot. com/9738043/ diff/5001/ environs/ dummy/environs. go dummy/environs. go (left):
File environs/
https:/ /codereview. appspot. com/9738043/ diff/5001/ environs/ dummy/environs. go#oldcode465 dummy/environs. go:465: // logic is done.
environs/
On 2013/05/27 20:13:26, fwereade wrote:
> "TODO: this whole test-only parallel implementation of bootstrap-state
is an
> open invitation to bugs and insanity", perhaps?
that's not really a TODO. i've added something slightly different.
https:/ /codereview. appspot. com/9738043/