def execute(self): Configuration.Instance().cluster_name = self.params.cluster cluster_name = self.params.cluster try: cluster = Configurator().load_cluster(cluster_name) cluster.update() except (ClusterNotFound, ConfigurationError), ex: log.error("Setting up cluster %s: %s\n" % (cluster_name, ex)) return
def execute(self): # Get current cluster configuration cluster_name = self.params.cluster try: cluster = Configurator().load_cluster(cluster_name) cluster.update() except (ClusterNotFound, ConfigurationError), ex: log.error("Listing nodes from cluster %s: %s\n" % (cluster_name, ex)) return
def execute(self): """ Lists all nodes within the specified cluster with certain information like id and ip. """ Configuration.Instance().cluster_name = self.params.cluster cluster_name = self.params.cluster try: cluster = Configurator().load_cluster(cluster_name) if self.params.update: cluster.update() except (ClusterNotFound, ConfigurationError), ex: log.error("Listing nodes from cluster %s: %s\n" % (cluster_name, ex)) return