red-hat-storage / ocs-ci

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

test_create_scale_pods_and_pvcs_using_kube_job fails on GCP with Unsupported Platform #8793

Closed vkathole closed 1 month ago

vkathole commented 10 months ago

RP Link: https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#ocs/launches/557/16152/769331/769345/769346/log

Message: ocs_ci.ocs.exceptions.UnsupportedPlatformError: Unsupported Platform
Type: None

Text:
self = <tests.e2e.workloads.test_create_scale_pods_and_pvcs_using_kube_job.TestCreateScalePodsAndPvcsUsingKubeJob object at 0x7f99ed917c40>
create_scale_pods_and_pvcs_using_kube_job = <function create_scale_pods_and_pvcs_using_kube_job..factory at 0x7f99cb120040>

@skipif_bm
@skipif_external_mode
@ipi_deployment_required
def test_create_scale_pods_and_pvcs_using_kube_job(
    self, create_scale_pods_and_pvcs_using_kube_job
):
    """
    Test create scale pods and PVCs using a kube job
    """
    log.info("Start creating resources using kube job...")

  create_scale_pods_and_pvcs_using_kube_job()

tests/e2e/workloads/test_create_scale_pods_and_pvcs_using_kube_job.py:59: 

tests/conftest.py:6245: in factory
    kube_pod_obj_list, kube_pvc_obj_list = fio_scale.create_scale_pods(
ocs_ci/ocs/scale_lib.py:290: in create_scale_pods
    expected_worker_count = get_expected_worker_count(scale_count)

scale_count = 40

def get_expected_worker_count(scale_count=1500):
    """
    Function to get expected worker count based on platform to scale pods in cluster

    Args:
        scale_count (int): Scale count of the PVC+POD to be created

    Returns:
        expected_worker_count (int): Expected worker count to scale required number of pod

    """
    # Get expected worker count based on dict in constants.py
    worker_count_dict = constants.SCALE_WORKER_DICT
    if scale_count in worker_count_dict:
        if (
            config.ENV_DATA["deployment_type"] == "ipi"
            and config.ENV_DATA["platform"].lower() == "aws"
        ):
            expected_worker_count = worker_count_dict[scale_count]["aws"]
        elif (
            config.ENV_DATA["deployment_type"] == "upi"
            and config.ENV_DATA["platform"].lower() == "vsphere"
        ):
            expected_worker_count = worker_count_dict[scale_count]["vmware"]
        elif (
            config.ENV_DATA["deployment_type"] == "upi"
            and config.ENV_DATA["platform"].lower() == "baremetal"
        ):
            expected_worker_count = worker_count_dict[scale_count]["bm"]
        elif (
            config.ENV_DATA["deployment_type"] == "ipi"
            and config.ENV_DATA["platform"].lower() == "azure"
        ):
            expected_worker_count = worker_count_dict[scale_count]["azure"]
        elif (
            config.ENV_DATA["deployment_type"] == "ipi"
            and config.ENV_DATA["platform"].lower() == "rhv"
        ):
            expected_worker_count = worker_count_dict[scale_count]["rhv"]
        elif (
            config.ENV_DATA["deployment_type"] == "ipi"
            and config.ENV_DATA["platform"].lower() == constants.VSPHERE_PLATFORM
        ):
            expected_worker_count = worker_count_dict[scale_count]["vmware"]
        elif (
            config.ENV_DATA["deployment_type"] == "ipi"
            and config.ENV_DATA["platform"].lower() == constants.IBMCLOUD_PLATFORM
        ):
            expected_worker_count = worker_count_dict[scale_count]["ibm_cloud"]
        else:

          raise UnsupportedPlatformError("Unsupported Platform")
E               ocs_ci.ocs.exceptions.UnsupportedPlatformError: Unsupported Platform

ocs_ci/ocs/scale_lib.py:772: UnsupportedPlatformError
github-actions[bot] commented 7 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.

vkathole commented 5 months ago

Observed in https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#ocs/launches/632/18899/918955/919208/log again

nagendra202 commented 5 months ago

https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#ocs/launches/632/18565/900585/900834/log

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.