red-hat-storage / ocs-ci

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

test_bucket_delete failed with TypeError: __init__() missing 1 required positional argument: 'value' #6769

Closed ebenahar closed 1 year ago

ebenahar commented 1 year ago

Run details:

URL: https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#OCS/launches/362/6633/272793/272804/272808/log Run ID: 1669598191 Test Case: test_bucket_delete ODF Build: 4.12.0-120 OCP Version: 4.12 Job name: VSPHERE6 UPI 1AZ RHCOS MCG Only Deployment 3M 3W tier1 Jenkins job: https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster-prod/6146/ Logs URL: http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/j-005vu1rmcg33-t1/j-005vu1rmcg33-t1_20221128T003211/logs/

Failure Details:

Message: TypeError: __init__() missing 1 required positional argument: 'value'
Type: None

Text:
self = <tests.manage.mcg.test_bucket_deletion.TestBucketDeletion object at 0x7f4d48061880>
verify_rgw_restart_count = None
mcg_obj = <ocs_ci.ocs.resources.mcg.MCG object at 0x7f4d6a77abb0>
bucket_factory = <function bucket_factory_fixture.<locals>._create_buckets at 0x7f4d6b4e34c0>
amount = 1, interface = 'OC'
bucketclass_dict = {'backingstore_dict': {'pv': [(1, 50, 'ocs-storagecluster-ceph-rbd')]}, 'interface': 'OC'}

    @pytest.mark.parametrize(
        argnames="amount,interface,bucketclass_dict",
        argvalues=[
            pytest.param(
                *[3, "S3", None],
                marks=[pytest.mark.polarion_id("OCS-1939"), tier1, acceptance],
            ),
            pytest.param(
                *[3, "CLI", None],
                marks=[tier1, acceptance, pytest.mark.polarion_id("OCS-1940")],
            ),
            pytest.param(
                *[3, "OC", None],
                marks=[tier1, acceptance, pytest.mark.polarion_id("OCS-1299")],
            ),
            pytest.param(
                *[100, "S3", None],
                marks=[
                    pytest.mark.skip(ERRATIC_TIMEOUTS_SKIP_REASON),
                    performance,
                    pytest.mark.polarion_id("OCS-1865"),
                ],
            ),
            pytest.param(
                *[100, "OC", None],
                marks=[
                    pytest.mark.skip(ERRATIC_TIMEOUTS_SKIP_REASON),
                    performance,
                    pytest.mark.polarion_id("OCS-1915"),
                ],
            ),
            pytest.param(
                *[1000, "S3", None],
                marks=[
                    pytest.mark.skip(ERRATIC_TIMEOUTS_SKIP_REASON),
                    performance,
                    pytest.mark.polarion_id("OCS-1866"),
                ],
            ),
            pytest.param(
                *[1000, "OC", None],
                marks=[
                    pytest.mark.skip(ERRATIC_TIMEOUTS_SKIP_REASON),
                    performance,
                    pytest.mark.polarion_id("OCS-1916"),
                ],
            ),
            pytest.param(
                *[
                    1,
                    "OC",
                    {
                        "interface": "OC",
                        "backingstore_dict": {
                            "pv": [(1, 50, DEFAULT_STORAGECLASS_RBD)]
                        },
                    },
                ],
                marks=[tier1, pytest.mark.polarion_id("OCS-2354")],
            ),
            pytest.param(
                *[
                    1,
                    "CLI",
                    {
                        "interface": "CLI",
                        "backingstore_dict": {
                            "pv": [(1, 50, DEFAULT_STORAGECLASS_RBD)]
                        },
                    },
                ],
                marks=[tier1, pytest.mark.polarion_id("OCS-2354")],
            ),
        ],
        ids=[
            "3-S3-DEFAULT-BACKINGSTORE",
            "3-CLI-DEFAULT-BACKINGSTORE",
            "3-OC-DEFAULT-BACKINGSTORE",
            "100-S3-DEFAULT-BACKINGSTORE",
            "100-OC-DEFAULT-BACKINGSTORE",
            "1000-S3-DEFAULT-BACKINGSTORE",
            "1000-OC-DEFAULT-BACKINGSTORE",
            "1-OC-PVPOOL",
            "1-CLI-PVPOOL",
        ],
    )
    def test_bucket_delete(
        self,
        verify_rgw_restart_count,
        mcg_obj,
        bucket_factory,
        amount,
        interface,
        bucketclass_dict,
    ):
        """
        Test deletion of bucket using the S3 SDK, MCG CLI and OC
        """
>       buckets = bucket_factory(amount, interface, bucketclass=bucketclass_dict)

tests/manage/mcg/test_bucket_deletion.py:136: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/conftest.py:2557: in _create_buckets
    bucketclass if bucketclass is None else bucket_class_factory(bucketclass)
ocs_ci/ocs/resources/bucketclass.py:169: in _create_bucket_class
    for backingstore in backingstore_factory(
ocs_ci/ocs/resources/backingstore.py:328: in _create_backingstore
    cmdMap[method.lower()][cloud.lower()](
ocs_ci/ocs/bucket_utils.py:696: in oc_create_pv_backingstore
    wait_for_pv_backingstore(backingstore_name, config.ENV_DATA["cluster_namespace"])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

backingstore_name = 'pv-backingstore-b5398a61e8e9485da1b1b173'
namespace = 'openshift-storage'

    def wait_for_pv_backingstore(backingstore_name, namespace=None):
        """
        wait for existing pv backing store to reach OPTIMAL state

        Args:
            backingstore_name (str): backingstore name
            namespace (str): backing store's namespace

        """

        namespace = namespace or config.ENV_DATA["cluster_namespace"]
        sample = TimeoutSampler(
            timeout=300,
            sleep=15,
            func=check_pv_backingstore_status,
            backingstore_name=backingstore_name,
            namespace=namespace,
        )
        if not sample.wait_for_func_status(result=True):
            logger.error(f"Backing Store {backingstore_name} never reached OPTIMAL state")
>           raise TimeoutExpiredError
E           TypeError: __init__() missing 1 required positional argument: 'value'

ocs_ci/ocs/bucket_utils.py:762: TypeError
ebenahar commented 1 year ago

This issue was encountered once again. Run details:

URL: https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#OCS/launches/362/6433/263940/263951/263956/log Run ID: 1668626119 Test Case: test_bucket_delete ODF Build: 4.12.0-113 OCP Version: 4.12 Job name: VSPHERE6 UPI 1AZ RHCOS MCG Only Deployment 3M 3W tier1 or tier_after_upgrade post upgrade Jenkins job: https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster-prod/6085/ Logs URL: http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/j-008vu1rmcg33-ua/j-008vu1rmcg33-ua_20221116T143051/logs/ Error Message: TypeError: __init__() missing 1 required positional argument: 'value'

sagihirshfeld commented 1 year ago

Fixed with https://github.com/red-hat-storage/ocs-ci/pull/6801