Merge lp://qastaging/~bac/juju-quickstart/1309678 into lp://qastaging/juju-quickstart
Proposed by
Brad Crittenden
Status: | Merged |
---|---|
Merged at revision: | 65 |
Proposed branch: | lp://qastaging/~bac/juju-quickstart/1309678 |
Merge into: | lp://qastaging/juju-quickstart |
Diff against target: |
197 lines (+33/-30) 6 files modified
quickstart/app.py (+10/-8) quickstart/manage.py (+2/-2) quickstart/models/envs.py (+2/-2) quickstart/tests/models/test_envs.py (+2/-3) quickstart/tests/test_app.py (+8/-6) quickstart/tests/test_manage.py (+9/-9) |
To merge this branch: | bzr merge lp://qastaging/~bac/juju-quickstart/1309678 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+216634@code.qastaging.launchpad.net |
Description of the change
Make control-bucket optional.
The existing function get_admin_secret is made generic and the name is changed
to get_value_
generated file.
For both ec2 and openstack the control-bucket field has been made optional
with respect to the environments.yaml file.
QA:
1) Create an ec2 environment with no control-bucket.
2) Bootstrap that environment. Ensure a control-bucket is in the .jenv file.
3) Run quickstart and see that it uses the existing environment and does not
raise an error.
To post a comment you must log in.
Reviewers: mp+216634_ code.launchpad. net,
Message:
Please take a look.
Description:
Make control-bucket optional.
If not control-bucket is present in the environments.yaml file, read
from
generated .jenv file as Juju now creates a bucket name if none is given.
The existing function get_admin_secret is made generic and the name is from_jenv. It now takes a keyname to be fetched from the
changed
to get_value_
generated file.
For both ec2 and openstack the control-bucket field has been made
optional
with respect to the environments.yaml file but is still required to be
in one
of the two files.
Other than the error checking provided by fetching from the jenv file it control_ bucket,
is
unclear whether the actual value of the control bucket is of any use to
Juju
Quickstart. It looks as if it isn't. If so, that can be made explicit
by
inserting a comment and by removing the assignment to
options.
though that value is very useful for testing.
Finally, is there a danger that older versions of Juju will break?
QA:
1) Create an ec2 environment with no control-bucket.
2) Bootstrap that environment. Ensure a control-bucket is in the .jenv
file.
3) Run quickstart and see that it uses the existing environment and does
not
raise an error.
https:/ /code.launchpad .net/~bac/ juju-quickstart /1309678/ +merge/ 216634
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/90060043/
Affected files (+86, -30 lines): manage. py models/ envs.py tests/models/ test_envs. py tests/test_ app.py tests/test_ manage. py
A [revision details]
M quickstart/app.py
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/