Skip to content

Commit

Permalink
zookeeper is moved to cfgm and cassandra will be running
Browse files Browse the repository at this point in the history
in both cfgm and database nodes, So making backup_restore
procedure to accomadate this.

Change-Id: I66121bbc28609e8c3d48ba52586580d28606aae9
Closs-Bug: 1636344
  • Loading branch information
cijohnson committed Dec 6, 2016
1 parent 66405a9 commit 04817d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fabfile/tasks/backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def backup_nova_instance_data():
# end backup_nova_instance_data


@roles('database')
@roles('database', 'cfgm')
def backup_cassandra(db_datas, store_db='local', cassandra_backup='full'):
"""Backup cassandra data in all databases """
global backup_path, final_dir
Expand Down Expand Up @@ -335,7 +335,7 @@ def backup_instance_image(db_datas, store_db='local'):
sudo(remote_bk_cmd)
# end backup_instances_images

@roles('database')
@roles('database', 'cfgm')
def backup_zookeeper(db_datas, store_db='local'):
"""Backup zookeeper data to all database nodes """
host = env.host_string
Expand Down Expand Up @@ -686,7 +686,7 @@ def restart_analytics():
time.sleep(5)

@task
@roles('database')
@roles('database', 'cfgm')
def restore_cassandra(backup_data_path='', store_db='local',cassandra_backup='full'):
"""Restore cassandra data to all databases .and usuage is restore_cassadra_db """
global backup_path
Expand Down Expand Up @@ -899,7 +899,7 @@ def restore_instance_image(backup_data_path, store_db='local'):

# end restore_glance_images

@roles('database')
@roles('database', 'cfgm')
def restore_zookeeper(backup_data_path, store_db='local'):
"""Restore zookeeper data to all database nodes """
global backup_path
Expand Down

0 comments on commit 04817d0

Please sign in to comment.