Commit 79cb4c7a authored by Felix Seibert's avatar Felix Seibert
Browse files

fixing osd uuid usage

parent 222fcbfb
......@@ -195,7 +195,7 @@ class OSDManager(object):
containing_folder_id = self.get_containing_folder_id(path_on_volume)
print("containing folder id: " + containing_folder_id)
osd_for_file = self.distribution.get_containing_osd(containing_folder_id)
osd_for_file = self.distribution.get_containing_osd(containing_folder_id).uuid
print("osd_for_file: " + str(osd_for_file))
if osd_of_file != osd_for_file:
......@@ -205,8 +205,8 @@ class OSDManager(object):
# if no replication is used (otherwise than for moving the files from osd to osd),
# we should reset the replication policy to none
policy_command = div_util.create_replication_policy_command(absolute_file_path)
create_command = div_util.create_create_replica_command(absolute_file_path, osd_for_file.uuid)
delete_command = div_util.create_delete_replica_command(absolute_file_path, osd_of_file.uuid)
create_command = div_util.create_create_replica_command(absolute_file_path, osd_for_file)
delete_command = div_util.create_delete_replica_command(absolute_file_path, osd_of_file)
change_policy_command_list.append(div_util.command_list_to_single_string(policy_command))
create_replica_command_list.append(div_util.command_list_to_single_string(create_command))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment