Exemplo n.º 1
0
    def on_joining_cluster(self, cluster_view):
        join_cassandra_cluster(cluster_view,
                               "/etc/cassandra/cassandra.yaml",
                               "/etc/cassandra/cassandra-rackdc.properties",
                               self._ip,
                               self._local_site)

        if (self._ip == sorted(cluster_view.keys())[0]):
            _log.debug("Adding Memento schema")
            run_command("/usr/share/clearwater/cassandra-schemas/memento.sh")

        _log.debug("Clearing Cassandra not-clustered alarm")
        issue_alarm(constants.CLEAR_CASSANDRA_NOT_YET_CLUSTERED)
Exemplo n.º 2
0
    def on_joining_cluster(self, cluster_view):
        join_cassandra_cluster(cluster_view,
                               "/etc/cassandra/cassandra.yaml",
                               "/etc/cassandra/cassandra-rackdc.properties",
                               self._ip,
                               self._local_site)

        if (self._ip == sorted(cluster_view.keys())[0]):
            # The schema could have been lost, or not installed due to cassandra
            # not running. Add it now to one of the Homers.
            _log.debug("Adding Homer schema")
            run_command("/usr/share/clearwater/cassandra-schemas/homer.sh")

        _log.debug("Clearing Cassandra not-clustered alarm")
        issue_alarm(alarm_constants.CASSANDRA_NOT_YET_CLUSTERED_CLEARED)
Exemplo n.º 3
0
    def on_joining_cluster(self, cluster_view):
        join_cassandra_cluster(cluster_view, "/etc/cassandra/cassandra.yaml",
                               "/etc/cassandra/cassandra-rackdc.properties",
                               self._ip, self._local_site)

        if (self._ip == sorted(cluster_view.keys())[0]):
            _log.debug("Adding Homestead schema")
            run_command(
                "/usr/share/clearwater/cassandra-schemas/homestead_cache.sh")
            run_command(
                "/usr/share/clearwater/cassandra-schemas/homestead_provisioning.sh"
            )

        _log.debug("Clearing Cassandra not-clustered alarm")
        issue_alarm(alarm_constants.CASSANDRA_NOT_YET_CLUSTERED_CLEARED)