Merge lp://staging/~jimbaker/pyjuju/env-origin into lp://staging/pyjuju
Proposed by
Jim Baker
Status: | Merged |
---|---|
Approved by: | Gustavo Niemeyer |
Approved revision: | 380 |
Merged at revision: | 382 |
Proposed branch: | lp://staging/~jimbaker/pyjuju/env-origin |
Merge into: | lp://staging/pyjuju |
Diff against target: |
608 lines (+337/-27) 19 files modified
docs/source/provider-configuration-ec2.rst (+9/-3) juju/providers/common/cloudinit.py (+78/-2) juju/providers/common/launch.py (+9/-2) juju/providers/common/tests/data/cloud_init_bootstrap (+0/-2) juju/providers/common/tests/data/cloud_init_bootstrap_zookeepers (+0/-2) juju/providers/common/tests/data/cloud_init_branch_trunk (+17/-0) juju/providers/common/tests/data/cloud_init_normal (+0/-2) juju/providers/common/tests/data/cloud_init_ppa (+15/-0) juju/providers/common/tests/test_cloudinit.py (+109/-3) juju/providers/ec2/tests/common.py (+1/-0) juju/providers/ec2/tests/data/bootstrap_cloud_init (+0/-2) juju/providers/ec2/tests/data/launch_cloud_init (+0/-2) juju/providers/ec2/tests/data/launch_cloud_init_branch (+20/-0) juju/providers/ec2/tests/data/launch_cloud_init_ppa (+15/-0) juju/providers/ec2/tests/test_bootstrap.py (+1/-0) juju/providers/ec2/tests/test_launch.py (+60/-2) juju/providers/orchestra/tests/common.py (+3/-1) juju/providers/orchestra/tests/data/bootstrap_user_data (+0/-2) juju/providers/orchestra/tests/data/launch_user_data (+0/-2) |
To merge this branch: | bzr merge lp://staging/~jimbaker/pyjuju/env-origin |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Niemeyer | Approve | ||
William Reade (community) | Approve | ||
Review via email: mp+75823@code.staging.launchpad.net |
Description of the change
Implements optional environment settings juju-origin (which replaces juju-branch).
Does not implement juju-version or support for deb repositories, per attached bug.
Functionally tested for not setting juju-origin, setting it to the standard PPA (the only one supported now), and LP branches.
To post a comment you must log in.
[1]
The documentation must be changed accordingly.
[2]
Please drop the version support. Without pinning, this doesn't guarantee that
the version will stay as suggested, and we shouldn't be looking into pinning
right now.
[3]
238 + # XXX needed for python-txzookeeper dependency
239 return ["ppa:juju/pkgs"]
That's a *major* one. Why? Please synchronize with SpamapS and ensure that's not
needed anymore.
[4]
213 + # Classify origins so the proper install script is later selected startswith( "deb ") or \ startswith( "ppa:") or \ startswith( "http:" ) or \ startswith( "https: ")): startswith( "lp:"):
214 + if origin is None:
215 + self._origin_type = _DISTRO
216 + elif (origin.
217 + origin.
218 + origin.
219 + origin.
220 + self._origin_type = _DEBIAN
221 + elif origin.
222 + self._origin_type = _BRANCH
Why is this changing? The original version of this logic was significantly
simpler and cleaner, and seems to support all the cases we're trying to
support right now.
[5]
I'm _very_ concerned about your summary. The support for other package sources
besides branches is precisely what this branch is introducing, and you seem to
claim this wasn't tested at all.
Please do make sure this stuff is tested.