Synchronous Bootstrap

William Reade william.reade at canonical.com
Tue Dec 3 14:41:45 UTC 2013


On Tue, Dec 3, 2013 at 12:49 PM, Andreas Hasenack <andreas at canonical.com>wrote:

> On Tue, Dec 3, 2013 at 4:31 AM, Andrew Wilkins <
> andrew.wilkins at canonical.com> wrote:
>
>> Ahoy,
>>
>> Just wanted to inform everyone that synchronous bootstrap has landed on
>> trunk. If you've got any scripts that bootstrap an environment and expect
>> it to chug away in the background, then some script changes will be
>> necessary.
>>
>>
> Why not introduce this behavior via a switch to the existing bootstrap
> command? Something like:
>
> juju bootstrap --wait
>
> Then existing scripts wouldn't break.
>

Followup commands always waited for bootstrap to complete before they'd
actually complete; the only negative impact should be that *if* you were
expecting to do independent work in parallel with a bootstrap, that work
will no longer be parallel. I'm very reluctant to maintain multiple code
paths for bootstrap, especially given the many drawbacks of async bootstrap
(lack of feedback, difficulty of diagnosing failure, unnecessarily complex
behaviour communicating secrets to the environment) -- are there cases
we've missed in which this change will actually stop anything working?

Cheers
William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20131203/8ab60d59/attachment.html>


More information about the Juju-dev mailing list