Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1228)

Issue 12232043: Remove control-bucket from environmnts.yaml (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by wallyworld
Modified:
10 years, 5 months ago
Reviewers:
rog, jameinel, fwereade, mp+178003
Visibility:
Public.

Description

Remove control-bucket from environmnts.yaml This is the first in a series of branches to simplify environments.yaml by removing unnecessary attributes. These attributes can be inferred or generated and are stored in an .environments direcotry under JUJU_HOME, so that they may be used again next time a command is run. The first attribute removed is control-bucket. The next branches will deal with admin-secret and the certificates. Another branch will regenerate the control-bucket if there happens to be a name clash. We don't currently do that now, but since the attribute is now "hidden", it is more user firendly to do so. https://code.launchpad.net/~wallyworld/juju-core/simple-environment-config/+merge/178003 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 31

Patch Set 2 : Remove control-bucket from environmnts.yaml #

Total comments: 33

Patch Set 3 : Remove control-bucket from environmnts.yaml #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -61 lines) Patch
M README View 1 chunk +2 lines, -1 line 0 comments Download
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 2 1 chunk +16 lines, -1 line 0 comments Download
M cmd/juju/bootstrap_test.go View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M doc/glossary.txt View 1 1 chunk +4 lines, -6 lines 0 comments Download
M environs/boilerplate_config.go View 1 2 3 chunks +7 lines, -18 lines 0 comments Download
M environs/boilerplate_config_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/config.go View 1 2 3 chunks +60 lines, -1 line 2 comments Download
M environs/config_test.go View 1 2 1 chunk +121 lines, -0 lines 0 comments Download
M environs/dummy/config_test.go View 1 2 2 chunks +21 lines, -3 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 chunks +19 lines, -3 lines 0 comments Download
M environs/ec2/config_test.go View 1 2 7 chunks +17 lines, -9 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 chunks +16 lines, -2 lines 0 comments Download
M environs/export_test.go View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A environs/localconfig.go View 1 2 1 chunk +73 lines, -0 lines 2 comments Download
A environs/localconfig_test.go View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M environs/openstack/config_test.go View 1 2 5 chunks +12 lines, -7 lines 0 comments Download
M environs/openstack/provider.go View 1 2 4 chunks +23 lines, -8 lines 0 comments Download

Messages

Total messages: 9
wallyworld
Please take a look.
10 years, 9 months ago (2013-08-01 05:53:08 UTC) #1
rog
This looks like a good step forward, thanks. Some remarks below. https://codereview.appspot.com/12232043/diff/1/doc/glossary.txt File doc/glossary.txt (right): ...
10 years, 9 months ago (2013-08-02 10:51:07 UTC) #2
fwereade
Looking very nice; I'm generally in favour of rog's suggestions, and I'm still a bit ...
10 years, 9 months ago (2013-08-02 11:19:18 UTC) #3
wallyworld
I've refactored the implementation. A new interface HasLocalConfig is used to determine whether a provider ...
10 years, 9 months ago (2013-08-05 10:58:26 UTC) #4
wallyworld
Please take a look.
10 years, 9 months ago (2013-08-05 11:00:07 UTC) #5
rog
Thanks for re-working this. It's still not quite right though, in my view. Summarising the ...
10 years, 9 months ago (2013-08-06 13:55:38 UTC) #6
wallyworld
Please take a look. https://codereview.appspot.com/12232043/diff/15001/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/12232043/diff/15001/cmd/juju/bootstrap.go#newcode111 cmd/juju/bootstrap.go:111: // Write out local state, ...
10 years, 9 months ago (2013-08-07 08:02:26 UTC) #7
jameinel
It is getting a bit late for me to claim I understand everything that is ...
10 years, 9 months ago (2013-08-08 18:14:04 UTC) #8
wallyworld
10 years, 9 months ago (2013-08-09 03:38:50 UTC) #9
https://codereview.appspot.com/12232043/diff/25001/environs/config.go
File environs/config.go (right):

https://codereview.appspot.com/12232043/diff/25001/environs/config.go#newcode171
environs/config.go:171: //	attrs["admin-secret"] = adminSecret
On 2013/08/08 18:14:04, jameinel wrote:
> I think we actually want admin-secret to be .juju/environments/*.yaml config
and
> not have it in environments.yaml. (And created as random data at bootstrap
> time.)
> 
> Is there a reason you want users to have to think about the admin secret?

The end goal is *not* to have admin-secret in the user yaml. It is only
commented out here because I am doing it in the very next branch but wanted to
illustrate where the code would live to show that attrs common to all providers
would be handled in once place and each provider would also do it's own as well.

https://codereview.appspot.com/12232043/diff/25001/environs/localconfig.go
File environs/localconfig.go (right):

https://codereview.appspot.com/12232043/diff/25001/environs/localconfig.go#ne...
environs/localconfig.go:35: return config.JujuHomePath(".environments", envName)
On 2013/08/08 18:14:04, jameinel wrote:
> Because the actual environment files are the point that needs to be shared
> between people, I would probably recommend not making it private.
> 
> I realize it isn't something people should be editing, but we are already in
> ~/.juju so double-private seems a bit too much IMO.

I am following the design doc by William, but there has been lively discussion
on this :-)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b