Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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