Don't bother with snapshot management by Daemon

This is *definitely* not needed in the end, and just uses RAM for
no conceivable purpose. Snapshots are fully client-managed.
This commit is contained in:
Joshua Boniface 2019-06-19 09:43:04 -04:00
parent 98365b0fcf
commit db0b382b3d
1 changed files with 0 additions and 21 deletions

View File

@ -861,27 +861,6 @@ if enable_storage:
volume_list = new_volume_list
logger.out('{}Volume list:{} {}'.format(logger.fmt_blue, logger.fmt_end, ' '.join(volume_list)), state='i')
# Snapshot objects
for volume in volume_list:
@zk_conn.ChildrenWatch('/ceph/snapshots/{}/{}'.format(pool, volume))
def update_snapshots(new_snapshot_list):
global snapshot_list, d_snapshot
# Add any missing Snapshots to the list
for snapshot in new_snapshot_list:
if not snapshot in snapshot_list:
d_snapshot[snapshot] = CephInstance.CephSnapshotInstance(zk_conn, this_node, pool, volume, snapshot)
# Remove any deleted Snapshots from the list
for snapshot in snapshot_list:
if not snapshot in new_snapshot_list:
# Delete the object
del(d_snapshot[snapshot])
# Update and print new list
snapshot_list = new_snapshot_list
logger.out('{}Snapshot list:{} {}'.format(logger.fmt_blue, logger.fmt_end, ' '.join(snapshot_list)), state='i')
###############################################################################
# PHASE 9 - Run the daemon
###############################################################################