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

Issue 6847045: Really deprecate default-instance-type config key

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by gz
Modified:
11 years, 5 months ago
Reviewers:
mp+134168, hazmat
Visibility:
Public.

Description

Really deprecate default-instance-type config key When constraints were added, the idea was that default-instance-type should no longer be needed and could be removed from everyone's environments.yaml files. There were two problems with how this was done however. * The deprecation warning telling the user they need to remove default-instance-type is printed when the key does not exist, rather than when it does. * The environments file still lists default-instance-type as one of the required configuration keys, so juju will only work when it is present. This branch fixes those issues, so the advice about using constraints instead may now actually get through. What I'd also like to do, but this branch does not implement, is to use the value from default-instance-type to act as a minimum required instance type, given it's in quite wide use currently, and people are always asking for m1.medium then being surpised when juju deploys on an m1.tiny and runs out of memory. https://code.launchpad.net/~gz/juju/no_default_instance_1069883/+merge/134168 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -6 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M juju/environment/config.py View 2 chunks +3 lines, -2 lines 0 comments Download
M juju/environment/tests/test_config.py View 1 chunk +0 lines, -1 line 0 comments Download
M juju/providers/openstack/launch.py View 1 chunk +1 line, -1 line 0 comments Download
M juju/providers/openstack/tests/__init__.py View 2 chunks +0 lines, -2 lines 0 comments Download
M juju/providers/openstack/tests/test_launch.py View 6 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 2
gz
Please take a look.
11 years, 5 months ago (2012-11-13 18:27:51 UTC) #1
hazmat
11 years, 5 months ago (2012-11-14 17:43:31 UTC) #2
lgtm, thanks
Sign in to reply to this message.

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