red-hat-storage / ocs-ci

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

[Provider-Client]test_rbd_image_metadata failed due to wrong pool name #9193

Closed jilju closed 4 months ago

jilju commented 9 months ago

The test case tests/functional/pv/pv_services/test_rbd_image_metadata.py::TestRbdImageMetadata::test_rbd_image_metadata failed because it checks for the hard-coded pool name instead of identifying the correct poolname.

tests.functional.pv.pv_services.test_rbd_image_metadata.TestRbdImageMetadata.test_rbd_image_metadata
 Error Details
ocs_ci.ocs.exceptions.CommandFailed: Error during execution of command: oc --kubeconfig /home/jenkins/clusters/ibm-cloud-pv-cl/openshift-cluster-dir/auth/kubeconfig -n openshift-storage rsh rook-ceph-tools-57fd4d4d68-6qnls rbd image-meta list ocs-storagecluster-cephblockpool/csi-vol-d839ce98-b020-456e-be68-c566baa29124.
Error is rbd: error opening pool 'ocs-storagecluster-cephblockpool': (2) No such file or directory
command terminated with exit code 2
# check the metadata on each images
        rbd_pool_name = (
            (config.ENV_DATA.get("rbd_name") or RBD_NAME)
            if config.DEPLOYMENT["external_mode"]
            else constants.DEFAULT_CEPHBLOCKPOOL
        )
        ceph_tool_pod = get_ceph_tools_pod()
        for image in rbd_images:
            cmd = f"rbd image-meta list {rbd_pool_name}/{image}"
>           metadata = ceph_tool_pod.exec_cmd_on_pod(command=cmd, out_yaml_format=False)

tests/functional/pv/pv_services/test_rbd_image_metadata.py:75: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
ocs_ci/ocs/resources/pod.py:192: in exec_cmd_on_pod
    return self.ocp.exec_oc_cmd(
ocs_ci/ocs/ocp.py:178: in exec_oc_cmd
    out = run_cmd(
ocs_ci/utility/utils.py:484: in run_cmd
    completed_process = exec_cmd(

Test run http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/hcp414-aaa/hcp414-aaa_20240112T084548/multicluster/logs/test_report_1705543010.html

github-actions[bot] commented 5 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 4 months ago

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