Merge lp://staging/~dimitern/juju-core/027-state-supports-nonced-provisioning into lp://staging/~juju/juju-core/trunk
Proposed by
Dimiter Naydenov
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1136 |
Proposed branch: | lp://staging/~dimitern/juju-core/027-state-supports-nonced-provisioning |
Merge into: | lp://staging/~juju/juju-core/trunk |
Diff against target: |
531 lines (+109/-63) 14 files modified
cmd/juju/ssh_test.go (+1/-1) cmd/juju/status_test.go (+1/-1) state/apiserver/api_test.go (+20/-25) state/machine.go (+29/-8) state/machine_test.go (+32/-10) state/megawatcher_internal_test.go (+4/-4) state/state.go (+4/-3) state/state_test.go (+7/-4) state/unit_test.go (+1/-1) worker/deployer/deployer_test.go (+1/-1) worker/firewaller/firewaller_test.go (+1/-1) worker/provisioner/provisioner.go (+6/-2) worker/uniter/filter_test.go (+1/-1) worker/uniter/uniter_test.go (+1/-1) |
To merge this branch: | bzr merge lp://staging/~dimitern/juju-core/027-state-supports-nonced-provisioning |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+157853@code.staging.launchpad.net |
Description of the change
state: add nonced provisioning support
Next step in nonced provisioning; adding support
in state: machine.
SetProvisioned(), taking instance id and nonce.
It allows you change it only once, so some tests
that assumed too much had to be changed (e.g.
changing instance id several times just to
trigger a machine change). Also CheckProvisioned()
is added to machine, taking a nonce and returning
true is returned only when the instance id is set
and the nonce matches.
In the upcoming CL we'll bring everything
together - PA generating an unique nonce,
and checking it.
To post a comment you must log in.
Reviewers: mp+157853_ code.launchpad. net,
Message:
Please take a look.
Description:
state: add nonced provisioning support
Next step in nonced provisioning; adding support SetInstanceId( ) renamed to
in state: machine.
SetProvisioned(), taking instance id and nonce.
It allows you change it only once, so some tests
that assumed too much had to be changed (e.g.
changing instance id several times just to
trigger a machine change). Also CheckProvisioned()
is added to machine, taking a nonce and returning
bool, error; true is returned only when the
instance id is set and the nonce matches.
In the upcoming CL we'll bring everything
together - PA generating an unique nonce,
and checking it.
https:/ /code.launchpad .net/~dimitern/ juju-core/ 027-state- supports- nonced- provisioning/ +merge/ 157853
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/8561044/
Affected files: ssh_test. go status_ test.go /api_test. go test.go er_internal_ test.go deployer/ deployer_ test.go firewaller/ firewaller_ test.go provisioner/ provisioner. go uniter/ filter_ test.go uniter/ uniter_ test.go
A [revision details]
M cmd/juju/
M cmd/juju/
M state/apiserver
M state/machine.go
M state/machine_
M state/megawatch
M state/state.go
M state/state_test.go
M state/unit_test.go
M worker/
M worker/
M worker/
M worker/
M worker/