Esempio n. 1
0
def test0(client_list):
    dlist = []
    for host in hosts.get_hosts('action'):
        print 'launch test0   %s' % (host)
        
        d = base.launch(client_list, host, 'test', wait=False)
        dlist.append(d)
    
    dl = defer.DeferredList(dlist)  
    dl.addCallback(test0_res, client_list)
Esempio n. 2
0
def deploy_phase(client_list):
    print 'deploying rain driver...'
    
    dlist = []
    
    for host in hosts.get_hosts('action'):
        print '   %s' % (host)
        d = base.launch(hosts, client_list, host, 'vm_shutdown', wait=True)
        dlist.append(d)
    
    # Wait for all drones to finish and set phase
    dl = defer.DeferredList(dlist)
    dl.addCallback(finished, client_list)
Esempio n. 3
0
def deploy_phase(client_list):
    print 'deploying rain driver...'
    
    dlist = []
    
    for host in hosts.get_hosts('deploy'):
        print '   %s' % (host)
        d = base.launch(client_list, host, 'relay_deploy', wait=True)
        dlist.append(d)
        d.addErrback(error, client_list)
    
    # Wait for all drones to finish and set phase
    dl = defer.DeferredList(dlist)
    dl.addCallback(finished, client_list)
Esempio n. 4
0
def deploy_phase(client_list):
    print 'deploying SensorHub: '
    
    dlist = []
    
    # Deploy sensorhubs
    for host in hosts.get_hosts('deploy'):
        print '   %s' % (host)
        d = base.launch(client_list, host, 'sensorhub_deploy', wait=True)
        dlist.append(d)
    
    # Wait for all drones to finish and set phase
    dl = defer.DeferredList(dlist)
    dl.addCallback(finished, client_list)