Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestPvcSnapshotPerformance fails in ODF 4.18 - Cannot find start time #11435

Open
manuelgotin opened this issue Feb 18, 2025 · 0 comments
Open

Comments

@manuelgotin
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant