"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "manila/share/drivers/netapp/dataontap/cluster_mode/lib_base.py" between
manila-11.0.0.tar.gz and manila-11.0.1.tar.gz

About: OpenStack Manila provides “Shared Filesystems as a service”.
The "Victoria" series (latest release).

lib_base.py  (manila-11.0.0):lib_base.py  (manila-11.0.1)
skipping to change at line 2179 skipping to change at line 2179
dm_session.update_snapmirror(orig_active_replica, replica) dm_session.update_snapmirror(orig_active_replica, replica)
except exception.StorageCommunicationException: except exception.StorageCommunicationException:
# Ignore any errors since the current source replica may be # Ignore any errors since the current source replica may be
# unreachable # unreachable
pass pass
# 2. Break SnapMirror # 2. Break SnapMirror
dm_session.break_snapmirror(orig_active_replica, replica) dm_session.break_snapmirror(orig_active_replica, replica)
# 3. Setup access rules # 3. Setup access rules
new_active_replica = replica.copy() new_active_replica = replica.copy()
new_active_replica['export_locations'] = self._create_export(
new_active_replica, share_server, vserver, vserver_client)
helper = self._get_helper(replica) helper = self._get_helper(replica)
helper.set_client(vserver_client) helper.set_client(vserver_client)
try: try:
helper.update_access(replica, share_name, access_rules) helper.update_access(replica, share_name, access_rules)
except Exception: except Exception:
new_active_replica['access_rules_status'] = ( new_active_replica['access_rules_status'] = (
constants.SHARE_INSTANCE_RULES_SYNCING) constants.SHARE_INSTANCE_RULES_SYNCING)
else: else:
new_active_replica['access_rules_status'] = constants.STATUS_ACTIVE new_active_replica['access_rules_status'] = constants.STATUS_ACTIVE
new_active_replica['export_locations'] = self._create_export(
new_active_replica, share_server, vserver, vserver_client)
new_active_replica['replica_state'] = constants.REPLICA_STATE_ACTIVE new_active_replica['replica_state'] = constants.REPLICA_STATE_ACTIVE
# 4. Set File system size fixed to false # 4. Set File system size fixed to false
vserver_client.set_volume_filesys_size_fixed(share_name, vserver_client.set_volume_filesys_size_fixed(share_name,
filesys_size_fixed=False) filesys_size_fixed=False)
return new_active_replica return new_active_replica
def _safe_change_replica_source(self, dm_session, replica, def _safe_change_replica_source(self, dm_session, replica,
orig_source_replica, orig_source_replica,
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)