|
|
@@ -439,7 +439,7 @@ class UpdateSourceReplicaTask(base.TaskRunner):
|
|
|
return task_info
|
|
|
|
|
|
source_provider = providers_factory.get_provider(
|
|
|
- origin["type"], constants.PROVIDER_TYPE_REPLICA_UPDATE,
|
|
|
+ origin["type"], constants.PROVIDER_TYPE_SOURCE_REPLICA_UPDATE,
|
|
|
event_handler, raise_if_not_found=False)
|
|
|
if not source_provider:
|
|
|
raise exception.CoriolisException(
|
|
|
@@ -447,7 +447,6 @@ class UpdateSourceReplicaTask(base.TaskRunner):
|
|
|
" updating Replicas" % origin["type"])
|
|
|
|
|
|
origin_connection_info = base.get_connection_info(ctxt, origin)
|
|
|
- export_info = task_info.get("export_info", {})
|
|
|
volumes_info = task_info.get("volumes_info", {})
|
|
|
|
|
|
LOG.info("Checking source provider environment params")
|
|
|
@@ -455,9 +454,10 @@ class UpdateSourceReplicaTask(base.TaskRunner):
|
|
|
# in the dedicated DB column of the Replica and thus stores
|
|
|
# the previous value of it:
|
|
|
old_source_env = origin.get('source_environment', {})
|
|
|
- volumes_info = source_provider.check_update_environment_params(
|
|
|
- ctxt, origin_connection_info, export_info, volumes_info,
|
|
|
- old_source_env, new_source_env)
|
|
|
+ volumes_info = (
|
|
|
+ source_provider.check_update_source_environment_params(
|
|
|
+ ctxt, origin_connection_info, instance, volumes_info,
|
|
|
+ old_source_env, new_source_env))
|
|
|
|
|
|
task_info['volumes_info'] = volumes_info
|
|
|
|
|
|
@@ -475,7 +475,8 @@ class UpdateDestinationReplicaTask(base.TaskRunner):
|
|
|
return task_info
|
|
|
|
|
|
destination_provider = providers_factory.get_provider(
|
|
|
- destination["type"], constants.PROVIDER_TYPE_REPLICA_UPDATE,
|
|
|
+ destination["type"],
|
|
|
+ constants.PROVIDER_TYPE_DESTINATION_REPLICA_UPDATE,
|
|
|
event_handler, raise_if_not_found=False)
|
|
|
if not destination_provider:
|
|
|
raise exception.CoriolisException(
|
|
|
@@ -492,9 +493,10 @@ class UpdateDestinationReplicaTask(base.TaskRunner):
|
|
|
# set in the dedicated DB column of the Replica and thus stores
|
|
|
# the previous value of it:
|
|
|
old_destination_env = destination.get('target_environment', {})
|
|
|
- volumes_info = destination_provider.check_update_environment_params(
|
|
|
- ctxt, destination_connection_info, export_info, volumes_info,
|
|
|
- old_destination_env, new_destination_env)
|
|
|
+ volumes_info = (
|
|
|
+ destination_provider.check_update_destination_environment_params(
|
|
|
+ ctxt, destination_connection_info, export_info, volumes_info,
|
|
|
+ old_destination_env, new_destination_env))
|
|
|
|
|
|
task_info['volumes_info'] = volumes_info
|
|
|
|