Skip to content

Commit

Permalink
test_pvc_creation_deletion_performance.py - creation deletion fix (#8663
Browse files Browse the repository at this point in the history
)

Signed-off-by: Yulia Persky <[email protected]>
  • Loading branch information
ypersky1980 authored Nov 2, 2023
1 parent 7e7c583 commit edc61fd
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
constants.CEPHFILESYSTEM: {
"type": "CephFS",
"sc": constants.CEPHFILESYSTEM_SC,
"delete_time": 2,
"delete_time": 10, # old value was 2
},
constants.CEPHBLOCKPOOL: {
"type": "RBD",
"sc": constants.CEPHBLOCKPOOL_SC,
"delete_time": 1,
"delete_time": 10, # old value was 1
},
}
Operations_Mesurment = ["create", "delete", "csi_create", "csi_delete"]
Expand Down Expand Up @@ -66,7 +66,7 @@ def teardown(self):
def create_fio_pod_yaml(self, pvc_size=1):
"""
This function create a new performance pod yaml file, which will trigger
the FIO command on starting and getting into Compleat state when finish
the FIO command on starting and getting into Complete state when finish
The FIO will fillup 70% of the PVC which will attached to the pod.
Expand Down Expand Up @@ -118,7 +118,7 @@ def create_pvcs_and_wait_for_bound(self, msg_prefix, pvcs, pvc_size, burst=True)
TimeoutExpiredError : if not all PVC(s) get into Bound state whithin 2 sec. per PVC
"""
# Creating PVC(s) for creation time mesurment and wait for bound state
timeout = pvcs * 2
timeout = pvcs * 4
start_time = self.get_time(time_format="csi")
log.info(f"{msg_prefix} Start creating new {pvcs} PVCs")
self.pvc_objs, _ = helpers.create_multiple_pvcs(
Expand Down Expand Up @@ -157,9 +157,9 @@ def run_io(self):
TimeoutExpiredError : if not all completed I/O whithin 20 Min.
"""
# wait up to 20 Min for all pod(s) to compleat running IO, this tuned for up to
# wait up to 60 Min for all pod(s) to complete running IO, this tuned for up to
# 120 PVCs of 25GiB each.
timeout = 1200
timeout = 5400 # old value 1200
pod_objs = []
# Create PODs, connect them to the PVCs and run IO on them
for pvc_obj in self.pvc_objs:
Expand All @@ -173,7 +173,7 @@ def run_io(self):
assert pod_obj, "Failed to create pod"
pod_objs.append(pod_obj)

log.info("Wait for all of the POD(s) to be created, and compleat running I/O")
log.info("Wait for all of the POD(s) to be created, and complete running I/O")
performance_lib.wait_for_resource_bulk_status(
"pod", len(pod_objs), self.namespace, constants.STATUS_COMPLETED, timeout, 5
)
Expand Down Expand Up @@ -251,7 +251,7 @@ def test_pvc_creation_deletion_measurement_performance(
if self.dev_mode:
num_of_samples = 2

accepted_creation_time = 1
accepted_creation_time = 5 # old_value=1
accepted_deletion_time = Interface_Info[self.interface]["delete_time"]
accepted_creation_deviation_percent = 50
accepted_deletion_deviation_percent = 50
Expand Down

0 comments on commit edc61fd

Please sign in to comment.