We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent failure:
[2024-11-22T20:06:51.515Z] �[1m-------------------------------- live log call ---------------------------------�[0m [2024-11-22T20:06:51.515Z] 15:06:51 - MainThread - ocs_ci.utility.utils - �[32mINFO�[0m - Executing command: oc --kubeconfig /home/jenkins/current-cluster-dir/openshift-cluster-dir/auth/kubeconfig -n openshift-storage get Pod -n openshift-storage -o yaml [2024-11-22T20:06:51.769Z] 15:06:51 - MainThread - ocs_ci.framework.pytest_customization.reports - �[32mINFO�[0m - duration reported by tests/functional/pod_and_daemons/test_csi_logs_rotation.py::TestPodsCsiLogRotation::test_pods_csi_log_rotation[csi-rbdplugin-provisioner-/var/lib/rook/openshift-storage.rbd.csi.ceph.com/log/controller-plugin/-csi-rbdplugin.log-csi-addons.log] immediately after test execution: 0.45 [2024-11-22T20:06:52.327Z] �[31mFAILED�[0m [2024-11-22T20:06:52.327Z] _ TestPodsCsiLogRotation.test_pods_csi_log_rotation[csi-rbdplugin-provisioner-/var/lib/rook/openshift-storage.rbd.csi.ceph.com/log/controller-plugin/-csi-rbdplugin.log-csi-addons.log] _ [2024-11-22T20:06:52.327Z] [2024-11-22T20:06:52.327Z] self = <test_csi_logs_rotation.TestPodsCsiLogRotation object at 0x7fb63c050580> [2024-11-22T20:06:52.327Z] pod_selector = 'csi-rbdplugin-provisioner' [2024-11-22T20:06:52.327Z] logs_dir = '/var/lib/rook/openshift-storage.rbd.csi.ceph.com/log/controller-plugin/' [2024-11-22T20:06:52.327Z] log_file_name = 'csi-rbdplugin.log', additional_log_file_name = 'csi-addons.log' [2024-11-22T20:06:52.327Z] [2024-11-22T20:06:52.327Z] @pytest.mark.parametrize( [2024-11-22T20:06:52.327Z] argnames=[ [2024-11-22T20:06:52.327Z] "pod_selector", [2024-11-22T20:06:52.327Z] "logs_dir", [2024-11-22T20:06:52.327Z] "log_file_name", [2024-11-22T20:06:52.327Z] "additional_log_file_name", [2024-11-22T20:06:52.327Z] ], [2024-11-22T20:06:52.327Z] argvalues=[ [2024-11-22T20:06:52.327Z] pytest.param( [2024-11-22T20:06:52.327Z] *[ [2024-11-22T20:06:52.327Z] "csi-cephfsplugin", [2024-11-22T20:06:52.327Z] "/var/lib/rook/openshift-storage.cephfs.csi.ceph.com/log/node-plugin/", [2024-11-22T20:06:52.327Z] "csi-cephfsplugin.log", [2024-11-22T20:06:52.327Z] "", [2024-11-22T20:06:52.327Z] ], [2024-11-22T20:06:52.327Z] ), [2024-11-22T20:06:52.327Z] pytest.param( [2024-11-22T20:06:52.327Z] *[ [2024-11-22T20:06:52.327Z] "csi-rbdplugin", [2024-11-22T20:06:52.327Z] "/var/lib/rook/openshift-storage.rbd.csi.ceph.com/log/node-plugin/", [2024-11-22T20:06:52.327Z] "csi-rbdplugin.log", [2024-11-22T20:06:52.327Z] "", [2024-11-22T20:06:52.327Z] ], [2024-11-22T20:06:52.327Z] ), [2024-11-22T20:06:52.327Z] pytest.param( [2024-11-22T20:06:52.327Z] *[ [2024-11-22T20:06:52.327Z] "csi-cephfsplugin-provisioner", [2024-11-22T20:06:52.327Z] "/var/lib/rook/openshift-storage.cephfs.csi.ceph.com/log/controller-plugin/", [2024-11-22T20:06:52.327Z] "csi-cephfsplugin.log", [2024-11-22T20:06:52.327Z] "csi-addons.log", [2024-11-22T20:06:52.327Z] ], [2024-11-22T20:06:52.327Z] ), [2024-11-22T20:06:52.327Z] pytest.param( [2024-11-22T20:06:52.327Z] *[ [2024-11-22T20:06:52.327Z] "csi-rbdplugin-provisioner", [2024-11-22T20:06:52.327Z] "/var/lib/rook/openshift-storage.rbd.csi.ceph.com/log/controller-plugin/", [2024-11-22T20:06:52.327Z] "csi-rbdplugin.log", [2024-11-22T20:06:52.327Z] "csi-addons.log", [2024-11-22T20:06:52.327Z] ], [2024-11-22T20:06:52.327Z] ), [2024-11-22T20:06:52.327Z] ], [2024-11-22T20:06:52.327Z] ) [2024-11-22T20:06:52.327Z] def test_pods_csi_log_rotation( [2024-11-22T20:06:52.328Z] self, pod_selector, logs_dir, log_file_name, additional_log_file_name [2024-11-22T20:06:52.328Z] ): [2024-11-22T20:06:52.328Z] """ [2024-11-22T20:06:52.328Z] Tests that the both log files on provisioner pod are rotated correctly. [2024-11-22T20:06:52.328Z] [2024-11-22T20:06:52.328Z] Args: [2024-11-22T20:06:52.328Z] pod_selector (str): Pod selector according to the interface [2024-11-22T20:06:52.328Z] logs_dir (str): Logs directory on this pod [2024-11-22T20:06:52.328Z] log_file_name (str) Current log file name [2024-11-22T20:06:52.328Z] additional_log_file_name (str) Additional log file name; empty string if is not relevant [2024-11-22T20:06:52.328Z] [2024-11-22T20:06:52.328Z] """ [2024-11-22T20:06:52.328Z] csi_interface_plugin_pod_objs = pod.get_all_pods( [2024-11-22T20:06:52.328Z] namespace=OPENSHIFT_STORAGE_NAMESPACE, selector=[pod_selector] [2024-11-22T20:06:52.328Z] ) [2024-11-22T20:06:52.328Z] [2024-11-22T20:06:52.328Z] # check on the first pod [2024-11-22T20:06:52.328Z] > pod_obj = csi_interface_plugin_pod_objs[0] [2024-11-22T20:06:52.328Z] �[1m�[31mE IndexError: list index out of range�[0m [2024-11-22T20:06:52.328Z] [2024-11-22T20:06:52.328Z] �[1m�[31mtests/functional/pod_and_daemons/test_csi_logs_rotation.py�[0m:168: IndexError [2024-11-22T20:06:52.328Z] [2024-11-22T20:06:52.328Z] �[1m------------------------------ live log teardown -------------------------------�[0m
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prevent failure:
The text was updated successfully, but these errors were encountered: