red-hat-storage / ocs-ci

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

test_noobaa_kms_validation failed with rt 'setKMSConditionStatus Init' in 'time="2022-11-29T15:12:54Z" level=info msg="CLI version: 5.12.0\\n"\ntime="2022-11-29T15:12:54Z" level=info msg="noob...ge/noobaa\ntime="2022-11-29T17:43:49Z" level=info msg="UpdateStatus: Done generation 4" sys=openshift-storage/noobaa\n' #6761

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/6794/281166/281225/281226/log Run ID: 1669738462 Test Case: test_noobaa_kms_validation ODF Build: 4.12.0-120 OCP Version: 4.12 Job name: VSPHERE6 UPI KMS VAULT V1 1AZ RHCOS VSAN 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/6207/ Logs URL: http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/j-003vukv11cs33-uba/j-003vukv11cs33-uba_20221129T113107/logs/

Failure Details:

Message: assert 'setKMSConditionStatus Init' in 'time="2022-11-29T15:12:54Z" level=info msg="CLI version: 5.12.0\\n"\ntime="2022-11-29T15:12:54Z" level=info msg="noob...ge/noobaa\ntime="2022-11-29T17:43:49Z" level=info msg="UpdateStatus: Done generation 4" sys=openshift-storage/noobaa\n'
Type: None

Text:
self = <tests.manage.mcg.test_kms.TestNoobaaKMS object at 0x7f1dccbd75b0>

    @tier1
    @pytest.mark.polarion_id("OCS-2485")
    def test_noobaa_kms_validation(self):
        """
        Validate from logs that there is successfully used NooBaa with KMS integration.
        """
        operator_pod = pod.get_pods_having_label(
            label=constants.NOOBAA_OPERATOR_POD_LABEL,
            namespace=defaults.ROOK_CLUSTER_NAMESPACE,
        )[0]
        operator_logs = pod.get_pod_logs(pod_name=operator_pod["metadata"]["name"])
        if version.get_semantic_ocs_version_from_config() < version.VERSION_4_10:
            assert "found root secret in external KMS successfully" in operator_logs
        else:
>           assert "setKMSConditionStatus Init" in operator_logs
E           assert 'setKMSConditionStatus Init' in 'time="2022-11-29T15:12:54Z" level=info msg="CLI version: 5.12.0\\n"\ntime="2022-11-29T15:12:54Z" level=info msg="noob...ge/noobaa\ntime="2022-11-29T17:43:49Z" level=info msg="UpdateStatus: Done generation 4" sys=openshift-storage/noobaa\n'

tests/manage/mcg/test_kms.py:33: AssertionError
sagihirshfeld commented 1 year ago

It's a known automation issue: https://github.com/red-hat-storage/ocs-ci/issues/6575