red-hat-storage / ocs-ci

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

tests/functional/pv/pvc_clone/test_pgsql_pvc_clone.py::TestPvcCloneOfWorkloads::test_encrypted_pvc_clone[v1] failing on power #10556

Closed veerareddylucky closed 1 month ago

veerareddylucky commented 1 month ago

Test cases failed with below error

self = <ocs_ci.utility.kms.Vault object at 0x7ffe3d948c70>

def gather_vault_config(self):
    """
    This function populates the vault configuration

    """
    if self.vault_deploy_mode == "external":
        if config.ENV_DATA.get("use_vault_namespace"):
            vault_conf = load_auth_config()["vault_hcp"]
        else:
          vault_conf = load_auth_config()["vault"]

E KeyError: 'vault'

ocs_ci/utility/kms.py:606: KeyError test_encrypted_pvc_clone[v1].log

PrasadDesala commented 1 month ago

@veerareddylucky It failed at loading the vault configuration. Can you please share the run-ci command that you used to run this test?

veerareddylucky commented 1 month ago

nohup run-ci -m "tier2" --ocs-version 4.17 --ocsci-conf=conf/ocsci/production_powervs_upi.yaml --ocsci-conf conf/ocsci/lso_enable_rotational_disks.yaml --ocsci-conf /root/ocs-ci-conf.yaml --cluster-name "ocstest" --cluster-path /root/ --collect-logs tests/functional/pv/pvc_clone/test_pgsql_pvc_clone.py::TestPvcCloneOfWorkloads::test_encrypted_pvc_clone[v1] | tee -a test_encrypted_pvc_clone[v1]1.log

PrasadDesala commented 1 month ago

It looks like vault details are missing in the auth config file /data/auth.yaml. Please check if that is the case. You need to have a vault sever configured and added those details in the auth config for this test.

PrasadDesala commented 1 month ago

Test failed due to configuration issue. Vault details were missing in the auth.yaml. The test passed successfully after adding the vault details.