Ejemplo n.º 1
0
    def _do_remove_nodes(self, count):
        """Remove 'count' nodes, starting from the end of the list. This way
        the HTCondor Hub gets removed last."""
        for _ in range(count):
            node = self.nodes.pop()
            self.logger.info("Removing node with IP %s" % node.ip)
            self.controller.delete_nodes([ node ])
            node_info.remove_node_info('/etc/hosts', node.ip)

        self.state = self.S_RUNNING
Ejemplo n.º 2
0
    def _do_remove_nodes(self, count):
        """Remove 'count' nodes, starting from the end of the list. This way
        the HTCondor Hub gets removed last."""
        for _ in range(count):
            node = self.nodes.pop()
            self.logger.info("Removing node with IP %s" % node.ip)
            self.controller.delete_nodes([node])
            node_info.remove_node_info('/etc/hosts', node.ip)

        self.state = self.S_RUNNING
Ejemplo n.º 3
0
 def _do_remove_nodes(self, worker_id):
     """Remove 'count' nodes, starting from the end of the list. This way
     the HTC Hub gets removed last."""
     self.logger.info(str(self.controller.get_clouds()))
     node = self.service.get_worker(worker_id)
     client.condor_off(node.ip, self.AGENT_PORT)  # sign off with condor
     self.logger.info("Removing node with IP %s" % node)
     self.controller.delete_nodes([node])
     node_info.remove_node_info("/etc/hosts", node.ip)
     self.service.remove_worker(worker_id)
     self.nodes.remove(node)
     self.logger.info(str(self.service))
     self.state = self.S_RUNNING
     self.pool[node.type] -= 1
Ejemplo n.º 4
0
 def _do_remove_nodes(self, worker_id):
     """Remove 'count' nodes, starting from the end of the list. This way
     the HTC Hub gets removed last."""
     self.logger.info(str(self.controller.get_clouds()))
     node = self.service.get_worker(worker_id)
     client.condor_off(node.ip, self.AGENT_PORT)     # sign off with condor
     self.logger.info("Removing node with IP %s" % node)
     self.controller.delete_nodes([ node ])
     node_info.remove_node_info('/etc/hosts', node.ip)
     self.service.remove_worker(worker_id)
     self.nodes.remove(node)
     self.logger.info(str(self.service))
     self.state = self.S_RUNNING
     self.pool[node.type]-=1