sustainable-computing-io / kepler-operator

Kepler Operator
Apache License 2.0
25 stars 26 forks source link

feat(must-gather): Added must-gather scripts #261

Closed vimalk78 closed 1 year ago

vimalk78 commented 1 year ago

Thie PR adds must-gather scripts for kepler-operator

Sample execution on single node CRC cluster:

$ oc adm must-gather --image=$(oc -n openshift-operators get deployment.apps/kepler-operator-controller-manager -o jsonpath='{.spec.template.spec.containers[?(@.name == "manager")].image}')  -- /usr/bin/gather 
[must-gather      ] OUT Using must-gather plug-in image: quay.io/vimalkum/kepler-operator:0.0.0-must-gather
When opening a support case, bugzilla, or issue please include the following summary data along with any other requested information:
ClusterID: 1f7b621c-7e7a-4ca8-81d5-f49ad9d9acb6
ClusterVersion: Stable at "4.13.12"
ClusterOperators:
    clusteroperator/cloud-credential is missing
    clusteroperator/cluster-autoscaler is missing
    clusteroperator/insights is missing
    clusteroperator/monitoring is missing
    clusteroperator/storage is missing

[must-gather      ] OUT namespace/openshift-must-gather-t75p4 created
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-llgwf created
[must-gather      ] OUT pod for plug-in image quay.io/vimalkum/kepler-operator:0.0.0-must-gather created
[must-gather-mjjlz] POD 2023-10-03T09:38:03.616361057Z must-gather logs are located at: '/must-gather/gather-debug.log'
[must-gather-mjjlz] POD 2023-10-03T09:38:03.616361057Z powermon must-gather started...
[must-gather-mjjlz] POD 2023-10-03T09:38:03.629416554Z 2023-10-03 09:38:03 getting kepler instance
[must-gather-mjjlz] POD 2023-10-03T09:38:05.108103126Z 2023-10-03 09:38:05 getting openshift-kepler-operator events
[must-gather-mjjlz] POD 2023-10-03T09:38:05.697635288Z 2023-10-03 09:38:05 getting kepler exporter daemonset
[must-gather-mjjlz] POD 2023-10-03T09:38:06.905154905Z 2023-10-03 09:38:06 getting kepler exporter config map
[must-gather-mjjlz] POD 2023-10-03T09:38:07.653189798Z 2023-10-03 09:38:07 getting kepler exporter service account
[must-gather-mjjlz] POD 2023-10-03T09:38:08.162324862Z 2023-10-03 09:38:08 getting kepler exporter service account
[must-gather-mjjlz] POD 2023-10-03T09:38:08.785281522Z 2023-10-03 09:38:08 running gather script for kepler pod: kepler-exporter-ds-h26gp
[must-gather-mjjlz] POD 2023-10-03T09:38:08.864821711Z 2023-10-03 09:38:08 collecting pod yaml for kepler pod: kepler-exporter-ds-h26gp
[must-gather-mjjlz] POD 2023-10-03T09:38:09.663837981Z 2023-10-03 09:38:09 collecting information from "cpuid" from kepler pod: kepler-exporter-ds-h26gp
[must-gather-mjjlz] POD 2023-10-03T09:38:10.371721220Z 2023-10-03 09:38:10 collecting environment variables from kepler pod: kepler-exporter-ds-h26gp
[must-gather-mjjlz] POD 2023-10-03T09:38:11.223976399Z 2023-10-03 09:38:11 collecting kernel version from kepler pod: kepler-exporter-ds-h26gp
[must-gather-mjjlz] POD 2023-10-03T09:38:12.969152179Z 2023-10-03 09:38:12 collecting ebpf information from kepler pod: kepler-exporter-ds-h26gp
[must-gather-mjjlz] POD 2023-10-03T09:38:14.204599060Z 2023-10-03 09:38:14 collecting logs from kepler pod: kepler-exporter-ds-h26gp
[must-gather-mjjlz] POD 2023-10-03T09:38:14.821072700Z 2023-10-03 09:38:14 running gather script for olm
[must-gather-mjjlz] POD 2023-10-03T09:38:14.914602992Z 2023-10-03 09:38:14 collecting olm info for kepler-operator
[must-gather-mjjlz] POD 2023-10-03T09:38:18.226907411Z 2023-10-03 09:38:18 collecting olm summary
[must-gather-mjjlz] POD 2023-10-03T09:38:19.342571734Z 2023-10-03 09:38:19 getting kepler-operator info
[must-gather-mjjlz] POD 2023-10-03T09:38:19.380959531Z 2023-10-03 09:38:19 collecting subscription info for kepler-operator
[must-gather-mjjlz] POD 2023-10-03T09:38:19.839823768Z 2023-10-03 09:38:19 collecting catalogsource info for kepler-operator
[must-gather-mjjlz] POD 2023-10-03T09:38:20.203048340Z 2023-10-03 09:38:20 collecting installplan info for kepler-operator
[must-gather-mjjlz] POD 2023-10-03T09:38:20.930806572Z 2023-10-03 09:38:20 collecting CSV for kepler-operator
[must-gather-mjjlz] POD 2023-10-03T09:38:24.948783859Z 2023-10-03 09:38:24 collecting deployment info for kepler-operator
[must-gather-mjjlz] POD 2023-10-03T09:38:29.524788569Z 2023-10-03 09:38:29 collecting pod info for kepler-operator
[must-gather-mjjlz] POD 2023-10-03T09:38:48.171054954Z powermon must-gather completed
[must-gather-mjjlz] OUT waiting for gather to complete
[must-gather-mjjlz] OUT downloading gather output
[must-gather-mjjlz] OUT receiving incremental file list
[must-gather-mjjlz] OUT ./
[must-gather-mjjlz] OUT gather-debug.log
[must-gather-mjjlz] OUT kepler-exporter-cm.yaml
[must-gather-mjjlz] OUT kepler-exporter-ds.yaml
[must-gather-mjjlz] OUT kepler-exporter-sa.yaml
[must-gather-mjjlz] OUT kepler-exporter-scc.yaml
[must-gather-mjjlz] OUT kepler.yaml
[must-gather-mjjlz] OUT openshift-kepler-operator_events
[must-gather-mjjlz] OUT kepler-info/
[must-gather-mjjlz] OUT kepler-info/kepler-exporter-ds-h26gp/
[must-gather-mjjlz] OUT kepler-info/kepler-exporter-ds-h26gp/ebpf-info
[must-gather-mjjlz] OUT kepler-info/kepler-exporter-ds-h26gp/env-variables
[must-gather-mjjlz] OUT kepler-info/kepler-exporter-ds-h26gp/kepler-pod.yaml
[must-gather-mjjlz] OUT kepler-info/kepler-exporter-ds-h26gp/kepler.log
[must-gather-mjjlz] OUT kepler-info/kepler-exporter-ds-h26gp/kernel-info
[must-gather-mjjlz] OUT kepler-info/kepler-exporter-ds-h26gp/node-cpuid-info
[must-gather-mjjlz] OUT kepler-operator-info/
[must-gather-mjjlz] OUT kepler-operator-info/kepler-operator-catalogsource.yaml
[must-gather-mjjlz] OUT kepler-operator-info/kepler-operator-csv.yaml
[must-gather-mjjlz] OUT kepler-operator-info/kepler-operator-deployment.yaml
[must-gather-mjjlz] OUT kepler-operator-info/kepler-operator-installplan.yaml
[must-gather-mjjlz] OUT kepler-operator-info/kepler-operator-subscription.yaml
[must-gather-mjjlz] OUT kepler-operator-info/kepler-operator.yaml
[must-gather-mjjlz] OUT kepler-operator-info/summary.txt
[must-gather-mjjlz] OUT olm-info/
[must-gather-mjjlz] OUT olm-info/olm-reources.yaml
[must-gather-mjjlz] OUT olm-info/summary.txt
[must-gather-mjjlz] OUT 
[must-gather-mjjlz] OUT sent 469 bytes  received 137,494 bytes  30,658.44 bytes/sec
[must-gather-mjjlz] OUT total size is 592,732  speedup is 4.30
[must-gather      ] OUT namespace/openshift-must-gather-t75p4 deleted
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-llgwf deleted

Reprinting Cluster State:
When opening a support case, bugzilla, or issue please include the following summary data along with any other requested information:
ClusterID: 1f7b621c-7e7a-4ca8-81d5-f49ad9d9acb6
ClusterVersion: Stable at "4.13.12"
ClusterOperators:
    clusteroperator/cloud-credential is missing
    clusteroperator/cluster-autoscaler is missing
    clusteroperator/insights is missing
    clusteroperator/monitoring is missing
    clusteroperator/storage is missing
vimalk78 commented 1 year ago

script runs to completion