Descriptionfinish nonced provisioning
Now the provisioner uses all that was done
in the previous CLs and brings it together:
generating an unique nonce at StartInstance
time and passing that to SetProvisioned as
well. MA.Entity now returns ErrTerminateAgent
when the machine is not provisioned.
The nonce is generated using trivial.NewUUID(),
badged with the machine tag the provisioner is
running on (the machine id is now passed to
NewProvisioner).
Also, TestUUID in trivial was extracted into
its own test module. Added IsValidUUIDString()
and UUIDFromString() -> UUID, error to uuid.go,
and tests.
https://code.launchpad.net/~dimitern/juju-core/028-provisioner-use-nonces/+merge/158089
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 14
Patch Set 2 : finish nonced provisioning #
MessagesTotal messages: 5
|