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

Issue 5874064: Reinstate default-image-id and default-instance-type outside EC2

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by fwereade
Modified:
12 years, 1 month ago
Reviewers:
hazmat, mp+99026
Visibility:
Public.

Description

Reinstate default-image-id and default-instance-type outside EC2 MachineProvider.get_legacy_config_keys should return any *set* config keys that are only valid in legacy deployments (ie those bootstrapped *before* upgrading to new config format); bootstrap, deploy, and add-unit are responsible for checking this and taking action (which might be to warn and continue (in a legacy environment) or to bomb out (in a new environment)). The EC2 provider itself also now handles those keys again, if they're there, and considers them to take precedence over constraints. https://code.launchpad.net/~fwereade/juju/handle-default-foo-options-outside-ec2/+merge/99026 Requires: https://code.launchpad.net/~fwereade/juju/rework-arch-constraint/+merge/99003 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Reinstate default-image-id and default-instance-type outside EC2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -76 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/control/add_unit.py View 1 2 chunks +4 lines, -0 lines 0 comments Download
M juju/control/bootstrap.py View 2 chunks +5 lines, -0 lines 0 comments Download
M juju/control/deploy.py View 1 2 chunks +5 lines, -1 line 0 comments Download
A juju/control/legacy.py View 1 1 chunk +41 lines, -0 lines 0 comments Download
M juju/control/tests/test_add_unit.py View 2 chunks +54 lines, -1 line 0 comments Download
M juju/control/tests/test_bootstrap.py View 1 chunk +22 lines, -0 lines 0 comments Download
M juju/control/tests/test_deploy.py View 1 2 chunks +64 lines, -1 line 0 comments Download
M juju/environment/config.py View 2 chunks +47 lines, -52 lines 0 comments Download
M juju/environment/tests/test_config.py View 5 chunks +65 lines, -11 lines 0 comments Download
M juju/providers/common/base.py View 1 chunk +4 lines, -0 lines 0 comments Download
M juju/providers/common/tests/test_base.py View 1 chunk +4 lines, -0 lines 0 comments Download
M juju/providers/dummy.py View 1 chunk +3 lines, -0 lines 0 comments Download
M juju/providers/ec2/__init__.py View 1 1 chunk +11 lines, -0 lines 0 comments Download
M juju/providers/ec2/tests/test_provider.py View 1 chunk +17 lines, -0 lines 0 comments Download
M juju/providers/ec2/tests/test_utils.py View 2 chunks +31 lines, -2 lines 0 comments Download
M juju/providers/ec2/utils.py View 2 chunks +12 lines, -7 lines 0 comments Download
M juju/state/environment.py View 2 chunks +6 lines, -1 line 0 comments Download
M juju/state/tests/test_environment.py View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5
fwereade
Please take a look.
12 years, 1 month ago (2012-03-23 14:03:03 UTC) #1
hazmat
Thanks for taking care of this william. It looks pretty good. https://codereview.appspot.com/5874064/diff/1/juju/control/add_unit.py File juju/control/add_unit.py (right): ...
12 years, 1 month ago (2012-03-25 18:16:33 UTC) #2
fwereade
https://codereview.appspot.com/5874064/diff/1/juju/control/add_unit.py File juju/control/add_unit.py (right): https://codereview.appspot.com/5874064/diff/1/juju/control/add_unit.py#newcode49 juju/control/add_unit.py:49: # Ensure all usage of questionable config keys is ...
12 years, 1 month ago (2012-03-26 09:42:21 UTC) #3
fwereade
*** Submitted: Reinstate default-image-id and default-instance-type outside EC2 MachineProvider.get_legacy_config_keys should return any *set* config keys ...
12 years, 1 month ago (2012-03-26 09:44:17 UTC) #4
hazmat
12 years, 1 month ago (2012-03-26 11:51:43 UTC) #5
On Mon, Mar 26, 2012 at 5:42 AM, <fwereade@gmail.com> wrote:

>
>
https://codereview.appspot.**com/5874064/diff/1/juju/**control/add_unit.py<ht...
> File juju/control/add_unit.py (right):
>
> https://codereview.appspot.**com/5874064/diff/1/juju/**
>
control/add_unit.py#newcode49<https://codereview.appspot.com/5874064/diff/1/juju/control/add_unit.py#newcode49>
> juju/control/add_unit.py:49: # Ensure all usage of questionable config
> keys is questioned and if
> On 2012/03/25 18:16:33, hazmat wrote:
>
>> this could be refactored into a legacy.check_environment(**client)
>>
> method and used
>
>> from add_unit and deploy.
>>
>
> Became legacy.check(client, legacy_keys); IMO least icky of several icky
> options.



That seems to assume that there is only one from of legacy.

-k
Sign in to reply to this message.

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