Descriptionprovider/common/boostrap.go: timeout sensibly
The new synchronous bootstrap tries indefinitely until it is able to
get a DNSName and then connect to the machine that should be starting
up (bug #1257427)
This changes it to use the same timeout that we have for connecting to
the DB or API (10 minutes). It adds some bits that make it possible to
set the timeout to other values (which makes nice tests), and then
changes a few of the types in use into smaller interfaces
(instance.Instance into DNSNamer and os.File into io.Writer), which
also makes it easier to test.
https://code.launchpad.net/~jameinel/juju-core/dont-wait-forever-1257427/+merge/197683
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 8
Patch Set 2 : provider/common/boostrap.go: timeout sensibly #
MessagesTotal messages: 3
|