~rogpeppe/juju-core/trunk

Viewing all changes in revision 1137.

finish 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.

R=fwereade, TheMue
CC=
https://codereview.appspot.com/8620043

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: