Following ocne cluster dump command can be used to collect diagnostic data in Oracle Cloud Native Environment 2.x version for debugging the issues.
ocne cluster dump -k <kubeconfig file> -m -d /<directory to save logs>
Above command has to be executed on the client workstation CLI node from which connect to the OCNE 2.x cluster for administration. "-m" flag is to collect the Kubernetes configmap details
Below is snippet of above command and files it collects
# ocne cluster dump -k /root/.kube/kubeconfig.mycluster -m -d /ocne-logs
INFO[2025-07-13T16:15:57-07:00] Collecting node data
INFO[2025-07-13T16:15:57-07:00] Collecting cluster data
W0713 16:15:58.447261 6932 warnings.go:70] metadata.name: this is used in the Pod's hostname, which can result in surprising behavior; a DNS label is recommended: [must not contain dots]
INFO[2025-07-13T16:16:56-07:00] Cluster dump successfully completed, files written to /ocne-logs
INFO[2025-07-13T16:15:57-07:00] Collecting node data
INFO[2025-07-13T16:15:57-07:00] Collecting cluster data
W0713 16:15:58.447261 6932 warnings.go:70] metadata.name: this is used in the Pod's hostname, which can result in surprising behavior; a DNS label is recommended: [must not contain dots]
INFO[2025-07-13T16:16:56-07:00] Cluster dump successfully completed, files written to /ocne-logs
Following directories/files will be created in the location specified for collecting ocne cluster dump logs
cluster
nodes
cluster-info.out
cluster
nodes
cluster-info.out
Below is list of files it collects under above directories
./cluster/namespaces/default/services.yaml
./cluster/namespaces/default/endpointslices.discovery.k8s.io.yaml
./cluster/namespaces/default/serviceaccounts.yaml
./cluster/namespaces/default/configmaps.yaml
./cluster/namespaces/default/endpoints.yaml
./cluster/namespaces/kube-flannel/serviceaccounts.yaml
./cluster/namespaces/kube-flannel/configmaps.yaml
./cluster/namespaces/kube-flannel/controllerrevisions.apps.yaml
./cluster/namespaces/kube-flannel/daemonsets.apps.yaml
./cluster/namespaces/kube-flannel/pods.yaml
./cluster/namespaces/kube-flannel/podlogs/kube-flannel-ds-t82r2.txt
./cluster/namespaces/kube-node-lease/configmaps.yaml
./cluster/namespaces/kube-node-lease/serviceaccounts.yaml
./cluster/namespaces/kube-node-lease/leases.coordination.k8s.io.yaml
./cluster/namespaces/kube-public/serviceaccounts.yaml
./cluster/namespaces/kube-public/configmaps.yaml
./cluster/namespaces/kube-public/roles.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-public/rolebindings.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-system/services.yaml
./cluster/namespaces/kube-system/endpoints.yaml
./cluster/namespaces/kube-system/configmaps.yaml
./cluster/namespaces/kube-system/deployments.apps.yaml
./cluster/namespaces/kube-system/daemonsets.apps.yaml
./cluster/namespaces/kube-system/serviceaccounts.yaml
./cluster/namespaces/kube-system/controllerrevisions.apps.yaml
./cluster/namespaces/kube-system/replicasets.apps.yaml
./cluster/namespaces/kube-system/leases.coordination.k8s.io.yaml
./cluster/namespaces/kube-system/rolebindings.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-system/roles.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-system/endpointslices.discovery.k8s.io.yaml
./cluster/namespaces/kube-system/pods.yaml
./cluster/namespaces/kube-system/podlogs/coredns-7cbdbfd99c-dqrrs.txt
./cluster/namespaces/kube-system/podlogs/kube-proxy-lswtw.txt
./cluster/namespaces/kube-system/podlogs/kube-scheduler-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/kube-system/podlogs/nginx-release-ingress-nginx-controller-67fb944fd7-kzn25.txt
./cluster/namespaces/kube-system/podlogs/coredns-7cbdbfd99c-jtvgc.txt
./cluster/namespaces/kube-system/podlogs/etcd-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/kube-system/podlogs/kube-apiserver-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/kube-system/podlogs/kube-controller-manager-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/ocne-system/events.yaml
./cluster/namespaces/ocne-system/services.yaml
./cluster/namespaces/ocne-system/endpoints.yaml
./cluster/namespaces/ocne-system/serviceaccounts.yaml
./cluster/namespaces/ocne-system/events.events.k8s.io.yaml
./cluster/namespaces/ocne-system/configmaps.yaml
./cluster/namespaces/ocne-system/deployments.apps.yaml
./cluster/namespaces/ocne-system/replicasets.apps.yaml
./cluster/namespaces/ocne-system/pods.yaml
./cluster/namespaces/ocne-system/endpointslices.discovery.k8s.io.yaml
./cluster/namespaces/ocne-system/podlogs/ocne-catalog-577b7cd5f9-8s4r9.txt
./cluster/namespaces/ocne-system/podlogs/ui-846bddd4b-pgt8z.txt
./cluster/cluster-wide/namespaces.yaml
./cluster/cluster-wide/nodes.yaml
./cluster/cluster-wide/csinodes.storage.k8s.io.yaml
./cluster/cluster-wide/ingressclasses.networking.k8s.io.yaml
./cluster/cluster-wide/apiservices.apiregistration.k8s.io.yaml
./cluster/cluster-wide/validatingwebhookconfigurations.admissionregistration.k8s.io.yaml
./cluster/cluster-wide/clusterrolebindings.rbac.authorization.k8s.io.yaml
./cluster/cluster-wide/clusterroles.rbac.authorization.k8s.io.yaml
./cluster/cluster-wide/priorityclasses.scheduling.k8s.io.yaml
./cluster/cluster-wide/customresourcedefinitions.apiextensions.k8s.io.yaml
./cluster/cluster-wide/flowschemas.flowcontrol.apiserver.k8s.io.yaml
./cluster/cluster-wide/prioritylevelconfigurations.flowcontrol.apiserver.k8s.io.yaml
./nodes/REDACTED-bb6a8590/journal.ocne.service
./nodes/REDACTED-bb6a8590/journal.ostree-remount.service
./nodes/REDACTED-bb6a8590/journal.tail.out
./nodes/REDACTED-bb6a8590/ostree-refs.out
./nodes/REDACTED-bb6a8590/podman-images.json
./nodes/REDACTED-bb6a8590/podman-images.out
./nodes/REDACTED-bb6a8590/podman-info.json
./nodes/REDACTED-bb6a8590/podman-inspect-all-err-debug.out
./nodes/REDACTED-bb6a8590/podman-inspect-all-err.out
./nodes/REDACTED-bb6a8590/podman-inspect-all.json
./nodes/REDACTED-bb6a8590/update.yaml
./nodes/REDACTED-bb6a8590/crictl.conf
./nodes/REDACTED-bb6a8590/crio-proxy.conf
./nodes/REDACTED-bb6a8590/crio-registries.conf
./nodes/REDACTED-bb6a8590/crio.conf
./nodes/REDACTED-bb6a8590/disk-df.out
./nodes/REDACTED-bb6a8590/disk-du.out
./nodes/REDACTED-bb6a8590/journal.boots.out
./nodes/REDACTED-bb6a8590/journal.crio.service
./nodes/REDACTED-bb6a8590/journal.disk-usage.out
./nodes/REDACTED-bb6a8590/journal.errors.out
./nodes/REDACTED-bb6a8590/journal.grow-rootfs.service
./nodes/REDACTED-bb6a8590/journal.head.out
./nodes/REDACTED-bb6a8590/journal.keepalived.service
./nodes/REDACTED-bb6a8590/journal.kubelet.service
./nodes/REDACTED-bb6a8590/journal.ocne-image-cleanup.service
./nodes/REDACTED-bb6a8590/journal.ocne-nginx-refresh.service
./nodes/REDACTED-bb6a8590/journal.ocne-nginx.service
./nodes/REDACTED-bb6a8590/journal.ocne-update.service
./nodes/REDACTED-bb6a8590/services.out
./nodes/REDACTED-bb6a8590/top.out
./cluster-info.out
./cluster/namespaces/default/endpointslices.discovery.k8s.io.yaml
./cluster/namespaces/default/serviceaccounts.yaml
./cluster/namespaces/default/configmaps.yaml
./cluster/namespaces/default/endpoints.yaml
./cluster/namespaces/kube-flannel/serviceaccounts.yaml
./cluster/namespaces/kube-flannel/configmaps.yaml
./cluster/namespaces/kube-flannel/controllerrevisions.apps.yaml
./cluster/namespaces/kube-flannel/daemonsets.apps.yaml
./cluster/namespaces/kube-flannel/pods.yaml
./cluster/namespaces/kube-flannel/podlogs/kube-flannel-ds-t82r2.txt
./cluster/namespaces/kube-node-lease/configmaps.yaml
./cluster/namespaces/kube-node-lease/serviceaccounts.yaml
./cluster/namespaces/kube-node-lease/leases.coordination.k8s.io.yaml
./cluster/namespaces/kube-public/serviceaccounts.yaml
./cluster/namespaces/kube-public/configmaps.yaml
./cluster/namespaces/kube-public/roles.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-public/rolebindings.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-system/services.yaml
./cluster/namespaces/kube-system/endpoints.yaml
./cluster/namespaces/kube-system/configmaps.yaml
./cluster/namespaces/kube-system/deployments.apps.yaml
./cluster/namespaces/kube-system/daemonsets.apps.yaml
./cluster/namespaces/kube-system/serviceaccounts.yaml
./cluster/namespaces/kube-system/controllerrevisions.apps.yaml
./cluster/namespaces/kube-system/replicasets.apps.yaml
./cluster/namespaces/kube-system/leases.coordination.k8s.io.yaml
./cluster/namespaces/kube-system/rolebindings.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-system/roles.rbac.authorization.k8s.io.yaml
./cluster/namespaces/kube-system/endpointslices.discovery.k8s.io.yaml
./cluster/namespaces/kube-system/pods.yaml
./cluster/namespaces/kube-system/podlogs/coredns-7cbdbfd99c-dqrrs.txt
./cluster/namespaces/kube-system/podlogs/kube-proxy-lswtw.txt
./cluster/namespaces/kube-system/podlogs/kube-scheduler-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/kube-system/podlogs/nginx-release-ingress-nginx-controller-67fb944fd7-kzn25.txt
./cluster/namespaces/kube-system/podlogs/coredns-7cbdbfd99c-jtvgc.txt
./cluster/namespaces/kube-system/podlogs/etcd-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/kube-system/podlogs/kube-apiserver-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/kube-system/podlogs/kube-controller-manager-elorl02cn09-adm.us.oracle.com.txt
./cluster/namespaces/ocne-system/events.yaml
./cluster/namespaces/ocne-system/services.yaml
./cluster/namespaces/ocne-system/endpoints.yaml
./cluster/namespaces/ocne-system/serviceaccounts.yaml
./cluster/namespaces/ocne-system/events.events.k8s.io.yaml
./cluster/namespaces/ocne-system/configmaps.yaml
./cluster/namespaces/ocne-system/deployments.apps.yaml
./cluster/namespaces/ocne-system/replicasets.apps.yaml
./cluster/namespaces/ocne-system/pods.yaml
./cluster/namespaces/ocne-system/endpointslices.discovery.k8s.io.yaml
./cluster/namespaces/ocne-system/podlogs/ocne-catalog-577b7cd5f9-8s4r9.txt
./cluster/namespaces/ocne-system/podlogs/ui-846bddd4b-pgt8z.txt
./cluster/cluster-wide/namespaces.yaml
./cluster/cluster-wide/nodes.yaml
./cluster/cluster-wide/csinodes.storage.k8s.io.yaml
./cluster/cluster-wide/ingressclasses.networking.k8s.io.yaml
./cluster/cluster-wide/apiservices.apiregistration.k8s.io.yaml
./cluster/cluster-wide/validatingwebhookconfigurations.admissionregistration.k8s.io.yaml
./cluster/cluster-wide/clusterrolebindings.rbac.authorization.k8s.io.yaml
./cluster/cluster-wide/clusterroles.rbac.authorization.k8s.io.yaml
./cluster/cluster-wide/priorityclasses.scheduling.k8s.io.yaml
./cluster/cluster-wide/customresourcedefinitions.apiextensions.k8s.io.yaml
./cluster/cluster-wide/flowschemas.flowcontrol.apiserver.k8s.io.yaml
./cluster/cluster-wide/prioritylevelconfigurations.flowcontrol.apiserver.k8s.io.yaml
./nodes/REDACTED-bb6a8590/journal.ocne.service
./nodes/REDACTED-bb6a8590/journal.ostree-remount.service
./nodes/REDACTED-bb6a8590/journal.tail.out
./nodes/REDACTED-bb6a8590/ostree-refs.out
./nodes/REDACTED-bb6a8590/podman-images.json
./nodes/REDACTED-bb6a8590/podman-images.out
./nodes/REDACTED-bb6a8590/podman-info.json
./nodes/REDACTED-bb6a8590/podman-inspect-all-err-debug.out
./nodes/REDACTED-bb6a8590/podman-inspect-all-err.out
./nodes/REDACTED-bb6a8590/podman-inspect-all.json
./nodes/REDACTED-bb6a8590/update.yaml
./nodes/REDACTED-bb6a8590/crictl.conf
./nodes/REDACTED-bb6a8590/crio-proxy.conf
./nodes/REDACTED-bb6a8590/crio-registries.conf
./nodes/REDACTED-bb6a8590/crio.conf
./nodes/REDACTED-bb6a8590/disk-df.out
./nodes/REDACTED-bb6a8590/disk-du.out
./nodes/REDACTED-bb6a8590/journal.boots.out
./nodes/REDACTED-bb6a8590/journal.crio.service
./nodes/REDACTED-bb6a8590/journal.disk-usage.out
./nodes/REDACTED-bb6a8590/journal.errors.out
./nodes/REDACTED-bb6a8590/journal.grow-rootfs.service
./nodes/REDACTED-bb6a8590/journal.head.out
./nodes/REDACTED-bb6a8590/journal.keepalived.service
./nodes/REDACTED-bb6a8590/journal.kubelet.service
./nodes/REDACTED-bb6a8590/journal.ocne-image-cleanup.service
./nodes/REDACTED-bb6a8590/journal.ocne-nginx-refresh.service
./nodes/REDACTED-bb6a8590/journal.ocne-nginx.service
./nodes/REDACTED-bb6a8590/journal.ocne-update.service
./nodes/REDACTED-bb6a8590/services.out
./nodes/REDACTED-bb6a8590/top.out
./cluster-info.out
Keywords
ocne cne cloud native environment oracle kubernetes debug debugging troubleshoot troubleshooting validate validating check checking issue issues problem problems collect collection k8s
No comments:
Post a Comment