Exemplo n.º 1
0
 def rollback(self, state):
     amt_to_host = {}
     for host in state.failed_hosts:
         assert host.amt_host
         amt_to_host[host.amt_host] = host
     results = amtredird.stop(self.amtredird_url, amt_to_host.keys())
     for amt_host, (result, args) in results.iteritems():
         if result != 0:
             state.log.warning('failed to stop redirection for {}'.format(
                 amt_to_host[amt_host]))
Exemplo n.º 2
0
 def rollback(self, state):
     amt_to_host = {}
     for host in state.failed_hosts:
         assert host.amt_host
         amt_to_host[host.amt_host] = host
     results = amtredird.stop(self.amtredird_url, amt_to_host.keys())
     for amt_host, (result, args) in results.iteritems():
         if result != 0:
             state.log.warning('failed to stop redirection for {}'.format(
                 amt_to_host[amt_host]))
Exemplo n.º 3
0
 def command(self, hosts):
     return amtredird.stop(self.amtredird_url, hosts)
Exemplo n.º 4
0
class DisableRedirection(ChangeRedirection):
    'disable IDE-R redirection via amtredird'
    command = lambda self, hosts: amtredird.stop(self.amtredird_url, hosts)