Bob Lantz
Committed by Brian O'Connor

Unpack/install all nodes before startup

Madan suggested that this might help vs. the pipelined
startup we were doing before, so let's try it.

We will unpack/install all nodes before we start up,
so that we can start the whole cluster at about the same
instant.

Note that this is probably closer to what we'd see in hardware.

The disadvantage is that we don't get a "clean" environment
with each invocation of start().

Change-Id: I0a45984f50e1ef25a7d8a836e46978fdbdff0bd0
......@@ -217,6 +217,8 @@ class ONOSNode( Controller ):
self.dir = '/tmp/%s' % self.name
self.client = self.dir + '/karaf/bin/client'
self.ONOS_HOME = '/tmp'
self.cmd( 'rm -rf', self.dir )
self.ONOS_HOME = unpackONOS( self.dir, run=self.ucmd )
# pylint: disable=arguments-differ
......@@ -225,8 +227,6 @@ class ONOSNode( Controller ):
env: environment var dict
nodes: all nodes in cluster"""
env = dict( env )
self.cmd( 'rm -rf', self.dir )
self.ONOS_HOME = unpackONOS( self.dir, run=self.ucmd )
env.update( ONOS_HOME=self.ONOS_HOME )
self.updateEnv( env )
karafbin = glob( '%s/apache*/bin' % self.ONOS_HOME )[ 0 ]
......