Merge lp:~axwalk/juju-core/lp1315216-lxc-use-clone into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2712 |
Proposed branch: | lp:~axwalk/juju-core/lp1315216-lxc-use-clone |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
406 lines (+156/-15) 12 files modified
environs/config/config.go (+13/-3) environs/config/config_test.go (+6/-0) state/api/params/params.go (+12/-0) state/api/provisioner/provisioner.go (+8/-1) state/api/provisioner/provisioner_test.go (+54/-0) state/apiserver/provisioner/provisioner.go (+20/-1) state/apiserver/provisioner/provisioner_test.go (+10/-0) worker/provisioner/container_initialisation.go (+19/-3) worker/provisioner/kvm-broker.go (+2/-1) worker/provisioner/kvm-broker_test.go (+5/-2) worker/provisioner/lxc-broker.go (+2/-2) worker/provisioner/lxc-broker_test.go (+5/-2) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/lp1315216-lxc-use-clone |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+218773@code.launchpad.net |
Commit message
Introduce lxc-use-clone, ContainerManage
A new lxc-use-clone config attribute and a new
ContainerManage
If lxc-use-clone is set to true, then the LXC
provisioner will be configured to use cloning
regardless of provider type. This setting is currently
immutable; additional work will be required to support
reacting to changes and reconfiguring the provisioner.
Fixes lp:1315216
Description of the change
Introduce lxc-use-clone, ContainerManage
A new lxc-use-clone config attribute and a new
ContainerManage
If lxc-use-clone is set to true, then the LXC
provisioner will be configured to use cloning
regardless of provider type. This setting is currently
immutable; additional work will be required to support
reacting to changes and reconfiguring the provisioner.
Fixes lp:1315216
Reviewers: mp+218773_ code.launchpad. net,
Message:
Please take a look.
Description: rConfig
Introduce lxc-use-clone, ContainerManage
A new lxc-use-clone config attribute and a new rConfig provisioner API are introduced.
ContainerManage
If lxc-use-clone is set to true, then the LXC
provisioner will be configured to use cloning
regardless of provider type. This setting is currently
immutable; additional work will be required to support
reacting to changes and reconfiguring the provisioner.
Fixes lp:1315216
https:/ /code.launchpad .net/~axwalk/ juju-core/ lp1315216- lxc-use- clone/+ merge/218773
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/96140044/
Affected files (+85, -13 lines): config/ config. go config/ config_ test.go params/ params. go provisioner/ provisioner. go /provisioner/ provisioner. go provisioner/ container_ initialisation. go provisioner/ kvm-broker. go provisioner/ kvm-broker_ test.go provisioner/ lxc-broker. go provisioner/ lxc-broker_ test.go
A [revision details]
M environs/
M environs/
M state/api/
M state/api/
M state/apiserver
M worker/
M worker/
M worker/
M worker/
M worker/
Index: [revision details] 20140508054219- e6ylw5luw58d6zh x
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: environs/ config/ config. go config/ config. go' config/ config. go 2014-04-11 17:51:58 +0000 config/ config. go 2014-05-08 09:56:27 +0000 "test-mode" ].(bool)
=== modified file 'environs/
--- environs/
+++ environs/
@@ -698,6 +698,13 @@
return c.defined[
}
+// LXCUseClone reports whether the LXC provisioner should create a "lxc-use- clone"] .(bool) addresses- delay": schema.ForceInt(),
+// template and use cloning to speed up container provisioning.
+func (c *Config) LXCUseClone() bool {
+ v, _ := c.defined[
+ return v
+}
+
// UnknownAttrs returns a copy of the raw configuration attributes
// that are supposedly specific to the environment type. They could
// also be wrong attributes, though. Only the specific environment
@@ -774,6 +781,7 @@
"bootstrap-
"test-mode": schema.Bool(),
"proxy-ssh": schema.Bool(),
+ "lxc-use-clone": schema.Bool(),
// Deprecated fields, retain for backwards compatibility. store-auth" : "",
"tools-url": schema.String(),
@@ -831,9 +839,10 @@
// Authentication string sent with requests to the charm store
"charm-
// Previously image-stream could be set to an empty value
- "image-stream": "",
- "test-mode": false,
- "proxy-ssh": false,
+ "image-stream": "",
+ "test-mode": false,
+ "proxy-ssh": false,
+ "lxc-use-clone": false,
}
func allowEmpty(attr string) bool { timeout" , retry-delay" , addresses- delay",
@@ -894,6 +903,7 @@
"bootstrap-
"bootstrap-
"bootstrap-
+ "lxc-use-clone",
}
var (
Index: environs/ config/ config_ test.go config/ config_ test.go' config/ config_ test.go 2014-04-11 18:13:56 +0000 config/ config_ test.go 2014...
=== modified file 'environs/
--- environs/
+++ environs/