Merge lp:~axwalk/juju-core/lp1262764-manual-storage-setconfig into lp:~go-bot/juju-core/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Andrew Wilkins | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 2308 | ||||
Proposed branch: | lp:~axwalk/juju-core/lp1262764-manual-storage-setconfig | ||||
Merge into: | lp:~go-bot/juju-core/trunk | ||||
Diff against target: |
388 lines (+125/-66) 8 files modified
provider/manual/config.go (+10/-0) provider/manual/config_test.go (+17/-0) provider/manual/environ.go (+46/-41) provider/manual/environ_test.go (+8/-23) provider/manual/export_test.go (+1/-0) provider/manual/provider.go (+14/-2) provider/manual/provider_test.go (+22/-0) provider/manual/suite_test.go (+7/-0) |
||||
To merge this branch: | bzr merge lp:~axwalk/juju-core/lp1262764-manual-storage-setconfig | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+205530@code.launchpad.net |
Commit message
provider/manual: set storage in SetConfig
We currently rely on EnableBootstrap
specify the storage mechanism to use for bootstrap
and sync-tools. This is insufficient in practice,
causing panics such as those in lp:1262764.
Instead, we inject a boolean attribute into the
environment config that is stored in state; this
attribute is false in the .jenv file, and true
in state. We use its value to decide whether to
use sshstorage (external) or httpstorage (internal).
A followup will eliminate BootstrapStorager.
Fixes lp:1262764
Description of the change
provider/manual: set storage in SetConfig
We currently rely on EnableBootstrap
specify the storage mechanism to use for bootstrap
and sync-tools. This is insufficient in practice,
causing panics such as those in lp:1262764.
Instead, we inject a boolean attribute into the
environment config that is stored in state; this
attribute is false in the .jenv file, and true
in state. We use its value to decide whether to
use sshstorage (external) or httpstorage (internal).
A followup will eliminate BootstrapStorager.
Fixes lp:1262764
Reviewers: mp+205530_ code.launchpad. net,
Message:
Please take a look.
Description:
provider/manual: set storage in SetConfig
We currently rely on EnableBootstrap Storage to
specify the storage mechanism to use for bootstrap
and sync-tools. This is insufficient in practice,
causing panics such as those in lp:1262764.
Instead, we inject a boolean attribute into the
environment config that is stored in state; this
attribute is false in the .jenv file, and true
in state. We use its value to decide whether to
use sshstorage (external) or httpstorage (internal).
A followup will eliminate BootstrapStorager.
Fixes lp:1262764
https:/ /code.launchpad .net/~axwalk/ juju-core/ lp1262764- manual- storage- setconfig/ +merge/ 205530
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/61480043/
Affected files (+128, -66 lines): manual/ config. go manual/ config_ test.go manual/ environ. go manual/ environ_ test.go manual/ export_ test.go manual/ provider. go manual/ provider_ test.go manual/ suite_test. go
A [revision details]
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/