Merge lp:~lifeless/pyjuju/apt-proxy-support into lp:~hazmat/pyjuju/apt-proxy-support
Status: | Needs review |
---|---|
Proposed branch: | lp:~lifeless/pyjuju/apt-proxy-support |
Merge into: | lp:~hazmat/pyjuju/apt-proxy-support |
Diff against target: |
42 lines (+5/-7) 2 files modified
juju/control/bootstrap.py (+2/-4) juju/providers/common/base.py (+3/-3) |
To merge this branch: | bzr merge lp:~lifeless/pyjuju/apt-proxy-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kapil Thangavelu | Pending | ||
Review via email: mp+111763@code.launchpad.net |
Description of the change
This tweaks your branch to work for bootstrap.
The handing around of data seems a little confused here and there; I'd consider making cloud-init a top level idiom and just pass a dict around of everything-
Anyhow, bunch of little tweaks, no tests, but - it bootstraps off of my proxy.
Running 'juju deploy haproxy' after that doesn't reuse the apt-proxy ::: but I'm running from source, so who knows whats up there.
curl http://
Unmerged revisions
- 537. By Robert Collins
-
Use the value, not a manually constructed dict, for apt-proxy, as the launch class takes it as a separate parameter.
- 536. By Robert Collins
-
Support the new API call through provider.bootstrap. Gets to attempted bootstrap (fails with bad config on the instance).
- 535. By Robert Collins
-
Use the right type for the apt proxy.
- 534. By Robert Collins
-
Fix typo.
Hi Robert,
thanks for the branch, i ended up making the provider calls a bit more
flexible in the core upgrade branch to support multiple datums provided to
the launch calls. it was originally that way but got lost in a refactor.
cheers,
Kapil
On Sun, Jun 24, 2012 at 11:39 PM, Robert Collins
<email address hidden>wrote:
> Robert Collins has proposed merging lp:~lifeless/juju/apt-proxy-support /code.launchpad .net/~lifeless/ juju/apt- proxy-support/ +merge/ 111763 for-cloud- init; let providers w/out use it as the lingua franca. 169.254. 169.254/ 1.0/user- data shows that the apt-proxy /code.launchpad .net/~lifeless/ juju/apt- proxy-support/ +merge/ 111763 bootstrap. py' bootstrap. py 2012-06-22 19:30:51 +0000 bootstrap. py 2012-06-25 03:38:18 +0000 add_argument( constraints) bootstrap( constraints, options.apt_proxy) /common/ base.py' common/ base.py 2012-06-22 19:30:51 +0000 common/ base.py 2012-06-25 03:38:18 +0000 internet. defer import inlineCallbacks, returnValue, succeed t(self) .run(share= share) url=None) : url=apt_ proxy_url) .run()
> into lp:~hazmat/juju/apt-proxy-support.
>
> Requested reviews:
> Kapil Thangavelu (hazmat)
>
> For more details, see:
> https:/
>
> This tweaks your branch to work for bootstrap.
>
> The handing around of data seems a little confused here and there; I'd
> consider making cloud-init a top level idiom and just pass a dict around of
> everything-
> But thats a different story.
>
> Anyhow, bunch of little tweaks, no tests, but - it bootstraps off of my
> proxy.
>
> Running 'juju deploy haproxy' after that doesn't reuse the apt-proxy :::
> but I'm running from source, so who knows whats up there.
> curl http://
> setting was not passed to cloud-init for the new node.
> --
> https:/
> You are requested to review the proposed merge of
> lp:~lifeless/juju/apt-proxy-support into lp:~hazmat/juju/apt-proxy-support.
>
> === modified file 'juju/control/
> --- juju/control/
> +++ juju/control/
> @@ -18,8 +18,7 @@
> sub_parser.
> "--apt-proxy",
> help="Apt proxy URL for use by all environment machines.",
> - default=None,
> - type=expand_
> + default=None)
> return sub_parser
>
>
> @@ -44,5 +43,4 @@
> options.log.info(
> "Bootstrapping environment %r (origin: %s type: %s)..." % (
> environment.name, environment.origin, environment.type))
> - yield provider.bootstrap(
> - constraints, {"apt-proxy": options.apt_proxy})
> + yield provider.
>
> === modified file 'juju/providers
> --- juju/providers/
> +++ juju/providers/
> @@ -1,4 +1,4 @@
> -]import copy
> +import copy
> from operator import itemgetter
>
> from twisted.
> @@ -160,9 +160,9 @@
> """
> return ZookeeperConnec
>
> - def bootstrap(self, constraints):
> + def bootstrap(self, constraints, apt_proxy_
> """Bootstrap an juju server in the provider."""
> - return Bootstrap(self, constraints).run()
> + return Bootstrap(self, constraints,
> apt_proxy_
>
> def get_machine(self, instance_id):
> """Retrieve a provider machine by instance id.
>
>
>