Comment 7 for bug 849071

Revision history for this message
Juan L. Negron (negronjl) wrote : Re: [Bug 849071] Re: Ensemble needs to support wait cli option

This is actually very good. Gustavo understands the idea. He may not
completely agree with the implementation but the idea is out there and it is
a good one.

Gustavo, I understand your concern about the implementation. Would you
then suggest a more feasible way of implementing or accomplishing this?

Thanks,

Juan

Sent from my mobile.
Apologies for the brevity of this message.
On Sep 13, 2011 1:25 PM, "Gustavo Niemeyer" <email address hidden> wrote:
> I didn't say the idea is entirely without merit, but I do think that
> this should be evaluated on a per case basis, rather than the silver
> bullet being sold in the description.
>
> Your example is also questionable:
>
>> deploy-stack --wait-for-relations
>
> Please show this being useful in a non-error-prone way. The relation
> being established for Ensemble doesn't say much about it being ready for
> the underlying service, and the next action you attempt would have to
> wait on the _actual_ service to be ready.
>
> So, again, I'm understand the conceptual problem, and I'm happy to work
> with you guys to improve the situation, but let's try to provide tools
> that will enable the user to do things reliably.
>
> --
> You received this bug notification because you are subscribed to
> Ensemble.
> https://bugs.launchpad.net/bugs/849071
>
> Title:
> Ensemble needs to support wait cli option
>
> Status in Ensemble:
> Confirmed
>
> Bug description:
> Everytime I bootstrap or deploy something .. I always wait an undetermined
amount of time for ec2 to "catch-up"
> Can we have a "wait" option such that the ensemble command doesn't return
till the operation is completed
> ensemble bootstrap [-w | --wait]
>
> This should be supported for various operations:
> - Bootstrap
> - deploy (till it's started, or install_error I guess + I guess should set
exit status)
> - add-unit
>
> Perhaps there should even be a "ensemble wait" that waits on all async
> operations to finish, so I can like
>
> for i in `seq 1 5`; do ensemble add-unit foo ; done
> ensemble wait
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ensemble/+bug/849071/+subscriptions
>