No VMs are started during beforeBootstrap(). You can throw validation exceptions in that method for each role.
-- Andrei Savu On Mon, Sep 24, 2012 at 5:37 PM, Steve Loughran <[email protected]>wrote: > I'm writing a service that is having some preflight checking of the cluster > spec done up front: > #of master nodes == 1 > #master-service and worker service must not co-exist > > From what I see, most services (implicitly) check this before the configure > operation, as they look for where the NN is, JT is, or similar, usually > implicitly and failing with a NoSuchElementException (e.g. WHIRR-652). > > I'm trying to be stricter and want to verify the template's validity before > any VMs have been requested. This would fail-fast and save money. > > Is there a way to do this at present -and if so, how? > > -steve >
