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
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
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
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