On 25 September 2012 13:27, Andrei Savu <savu.and...@gmail.com> wrote:

> Why not just check the ClusterSpec? Why do you need another structure?
>

cluster spec doesn't have a flat list of instances to search on -the data's
there, just less obviously accessible


>
> The role assignments after bootstrap will match whirr.instance-templates.
>
> -- Andrei Savu
>
> On Tue, Sep 25, 2012 at 3:23 PM, Steve Loughran <ste...@hortonworks.com
> >wrote:
>
> > On 24 September 2012 16:03, Andrei Savu <savu.and...@gmail.com> wrote:
> >
> > > No VMs are started during beforeBootstrap().
> > >
> > > You can throw validation exceptions in that method for each role.
> > >
> >
> > Of course, as the set of instances in a cluster is null at that point,
> you
> > can't do a lookup and assert that there is exactly one namenode in the
> > cluster.
> >
> > It looks like I could it by going through the instance templates and
> > creating a structure that modelled what is going to be instantiated,
> that I
> > could then preflight over.
> >
> > Has anyone doe anything like that yet?
> >
>

Reply via email to