You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue exists since ODF 4.17 - please see the following unresolved issue: #10671
Error:
�[1m�[31mtests/cross_functional/performance/csi_tests/test_pvc_snapshot_performance.py�[0m:345:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
�[1m�[31mocs_ci/utility/retry.py�[0m:91: in f_retry
return f(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
interface = 'CephBlockPool'
pvc_name = 'restore-pvc0-322aa85401934771a10879276c3e69e'
start_time = '2025-02-09T10:49:47Z'
@retry(Exception, tries=6, delay=5, backoff=2)
def measure_pvc_creation_time(interface, pvc_name, start_time):
"""
Measure PVC creation time, provided pvc name and time after which the PVC was created
Args:
interface (str) : an interface (RBD or CephFS) to run on
pvc_name (str) : Name of the pvc for which we measure the time
start_time (str): Formatted time from which and on to search the relevant logs
Returns:
(float) creation time for PVC in seconds
"""
log_names = get_logfile_names(interface)
logs = read_csi_logs(log_names, "csi-provisioner", start_time)
st = None
et = None
# look for start time and end time of pvc creation. The start/end line may appear in log several times
# in order to be on the safe side and measure the longest time difference (which is the actual pvc creation
# time), the earliest start time and the latest end time are taken
for sublog in logs:
for line in sublog:
if (
st is None
and "provision" in line
and pvc_name in line
and "started" in line
):
st = string_to_time(line.split(" ")[1])
elif "provision" in line and pvc_name in line and "succeeded" in line:
et = string_to_time(line.split(" ")[1])
del logs
if st is None:
logger.error(f"Cannot find start time of {pvc_name}")
> raise Exception(f"Cannot find start time of {pvc_name}")
�[1m�[31mE Exception: Cannot find start time of restore-pvc0-322aa85401934771a10879276c3e69e�[0m
�[1m�[31mocs_ci/helpers/performance_lib.py�[0m:269: Exception
�[1m------------------------------ live log teardown -------------------------------�[0m
The text was updated successfully, but these errors were encountered:
This issue exists since ODF 4.17 - please see the following unresolved issue: #10671
Error:
The text was updated successfully, but these errors were encountered: