Descriptionstate: add nonced provisioning support
Next step in nonced provisioning; adding support
in state: machine.SetInstanceId() renamed to
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.
https://code.launchpad.net/~dimitern/juju-core/027-state-supports-nonced-provisioning/+merge/157853
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 19
Patch Set 2 : state: add nonced provisioning support #
Total comments: 12
Patch Set 3 : state: add nonced provisioning support #Patch Set 4 : state: add nonced provisioning support #
MessagesTotal messages: 14
|