diff --git a/e2e/libs/volume/crd.py b/e2e/libs/volume/crd.py index 41fbb4fcf3..ec89be8f77 100644 --- a/e2e/libs/volume/crd.py +++ b/e2e/libs/volume/crd.py @@ -367,7 +367,7 @@ def get_endpoint(self, volume_name): def write_random_data(self, volume_name, size, data_id): node_name = self.get(volume_name)["spec"]["nodeID"] - endpoint = f"{HOST_ROOTFS}{self.get_endpoint(volume_name)}" + endpoint = self.get_endpoint(volume_name) cmd = [ "sh", "-c", @@ -383,7 +383,7 @@ def write_random_data(self, volume_name, size, data_id): def keep_writing_data(self, volume_name, size): node_name = self.get(volume_name)["spec"]["nodeID"] - endpoint = f"{HOST_ROOTFS}{self.get_endpoint(volume_name)}" + endpoint = self.get_endpoint(volume_name) logging(f"Keeping writing data to volume {volume_name}") res = self.node_exec.issue_cmd( node_name, @@ -435,7 +435,7 @@ def check_data_checksum(self, volume_name, data_id): def get_checksum(self, volume_name): node_name = self.get(volume_name)["spec"]["nodeID"] - endpoint = f"{HOST_ROOTFS}{self.get_endpoint(volume_name)}" + endpoint = self.get_endpoint(volume_name) checksum = self.node_exec.issue_cmd( node_name, ["sh", "-c", f"md5sum {endpoint} | awk \'{{print $1}}\'"]) diff --git a/e2e/libs/volume/rest.py b/e2e/libs/volume/rest.py index 6f1a80b027..4ec867df15 100644 --- a/e2e/libs/volume/rest.py +++ b/e2e/libs/volume/rest.py @@ -245,7 +245,7 @@ def check_data_checksum(self, volume_name, data_id): def get_checksum(self, volume_name): node_name = self.get(volume_name).controllers[0].hostId - endpoint = f"{HOST_ROOTFS}{self.get_endpoint(volume_name)}" + endpoint = self.get_endpoint(volume_name) checksum = self.node_exec.issue_cmd( node_name, ["sh", "-c", f"md5sum {endpoint} | awk \'{{print $1}}\'"])