red-hat-storage / ocs-ci

https://ocs-ci.readthedocs.io/en/latest/
MIT License
109 stars 166 forks source link

test_pod_reattach_time_performance tests are failing while pulling "quay.io/ocsci/perf:latest" image #9610

Closed pintojoy closed 1 month ago

pintojoy commented 5 months ago

self = <test_pod_reattachtime.TestPodReattachTimePerformance object at 0x7f4aff49ddf0> storageclass_factory = <function storageclass_factory_fixture..factory at 0x7f4afe597af0> copies = 3, timeout = 120, total_time_limit = 70

@pytest.mark.parametrize( argnames=["interface", "copies", "timeout", "total_time_limit"], argvalues=[ pytest.param( [constants.CEPHBLOCKPOOL, 3, 120, 70], marks=pytest.mark.polarion_id("OCS-2043"), ), pytest.param( [constants.CEPHBLOCKPOOL, 13, 600, 420], marks=pytest.mark.polarion_id("OCS-2673"), ), pytest.param( [constants.CEPHFILESYSTEM, 3, 120, 70], marks=pytest.mark.polarion_id("OCS-2044"), ), pytest.param( [constants.CEPHFILESYSTEM, 13, 600, 420], marks=pytest.mark.polarion_id("OCS-2674"), ), ], ) @pytest.mark.usefixtures(base_setup.name) def test_pod_reattach_time_performance( self, storageclass_factory, copies, timeout, total_time_limit ): """ Test assign nodeName to a pod using RWX pvc Each kernel (unzipped) is 892M and 61694 files The test creates samples_num pvcs and pods, writes kernel files multiplied by number of copies and calculates average total and csi reattach times and standard deviation """ kernel_url = "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.5.tar.gz" download_path = "tmp"

samples_num = 7
if self.dev_mode:
    samples_num = 3

test_start_time = PASTest.get_time()

helpers.pull_images(constants.PERF_IMAGE)

tests/e2e/performance/csi_tests/test_pod_reattachtime.py:126:

ocs_ci/utility/retry.py:49: in f_retry return f(args, *kwargs) ocs_ci/helpers/helpers.py:1145: in pull_images assert node_obj.ocp.exec_oc_debug_cmd(

self = <ocs_ci.ocs.ocp.OCP object at 0x7f4b074dcb20>, node = '10.243.128.48' cmd_list = ['podman pull quay.io/ocsci/perf:latest'], timeout = 300 namespace = 'openshift-storage'

def exec_oc_debug_cmd(self, node, cmd_list, timeout=300, namespace=None): """ Function to execute "oc debug" command on OCP node

Args:
    node (str): Node name where the command to be executed
    cmd_list (list): List of commands eg: ['cmd1', 'cmd2']
    timeout (int): timeout for the exec_oc_cmd, defaults to 600 seconds
    namespace (str): Namespace name which will be used to create debug pods

Returns:
    out (str): Returns output of the executed command/commands

Raises:
    CommandFailed: When failure in command execution
"""
# Appending one empty value in list for string manipulation
create_cmd_list = copy.deepcopy(cmd_list)
create_cmd_list.append(" ")
err_msg = "CMD FAILED"
cmd = f" || echo '{err_msg}';".join(create_cmd_list)
namespace = namespace or config.ENV_DATA["cluster_namespace"]
debug_cmd = (
    f"debug nodes/{node} --to-namespace={namespace} "
    f' -- chroot /host /bin/bash -c "{cmd}"'
)
out = str(
    self.exec_oc_cmd(command=debug_cmd, out_yaml_format=False, timeout=timeout)
)
if err_msg in out:

  raise CommandFailed

E ocs_ci.ocs.exceptions.CommandFailed

ocs_ci/ocs/ocp.py:229: CommandFailed

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.

github-actions[bot] commented 1 month ago

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.