Closed paigerube14 closed 2 years ago
Needing to add loading of proxy settings if they exist on the system when using private clusters with cerberus
with this updated code:
09-27 13:48:45.716 + python start_cerberus.py --config cerberus.yaml 09-27 13:48:48.473 2022-09-27 17:48:48,141 [INFO] Starting ceberus 09-27 13:48:48.473 2022-09-27 17:48:48,152 [INFO] Initializing client to talk to the Kubernetes cluster 09-27 13:48:48.473 2022-09-27 17:48:48,216 [INFO] client set 09-27 13:48:49.034 2022-09-27 17:48:48,749 [INFO] Fetching cluster info 09-27 13:48:49.034 2022-09-27 17:48:48,931 [INFO] Cluster version is 4.12.0-0.nightly-2022-09-26-111919 09-27 13:48:49.034 2022-09-27 17:48:48,931 [INFO] Server URL: https://api.***.qe.gcp.devcluster.openshift.com:6443/ 09-27 13:48:49.034 2022-09-27 17:48:48,931 [INFO] Publishing cerberus status at http://0.0.0.0:8080/ 09-27 13:48:49.034 2022-09-27 17:48:48,932 [INFO] Starting http server at http://0.0.0.0:8080/ 09-27 13:48:49.034 09-27 13:48:49.034 _ 09-27 13:48:49.034 ___ ___ _ __| |__ ___ _ __ _ _ ___ 09-27 13:48:49.034 / __/ _ \ '__| '_ \ / _ \ '__| | | / __| 09-27 13:48:49.034 | (_| __/ | | |_) | __/ | | |_| \__ \ 09-27 13:48:49.034 \___\___|_| |_.__/ \___|_| \__,_|___/ 09-27 13:48:49.034 09-27 13:48:49.034 09-27 13:48:49.957 Command "get-token" is deprecated, and will be removed in the future version. Use oc create token instead. 09-27 13:48:49.957 error: could not find a service account token for service account "prometheus-k8s" 09-27 13:48:50.213 2022-09-27 17:48:50,138 [WARNING] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2633)'))': /api/v1/namespaces/openshift-apiserver/pods?pretty=True&limit=100 09-27 13:48:50.213 2022-09-27 17:48:50,138 [WARNING] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2633)'))': /api/v1/namespaces/openshift-cluster-machine-approver/pods?pretty=True&limit=100 09-27 13:48:50.213 2022-09-27 17:48:50,138 [WARNING] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2633)'))': /api/v1/namespaces/openshift-kube-scheduler/pods?pretty=True&limit=100 09-27 13:48:50.213 2022-09-27 17:48:50,138 [WARNING] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2633)'))': /api/v1/namespaces/openshift-controller-manager-operator/pods?pretty=True&limit=100 09-27 13:48:54.712 2022-09-27 17:48:54,617 [INFO] Iteration 1: Node status: True 09-27 13:48:54.969 2022-09-27 17:48:54,834 [INFO] Iteration 1: No Terminating Namespaces status: True 09-27 13:48:56.349 2022-09-27 17:48:55,936 [INFO] Iteration 1: Cluster Operator status: True 09-27 13:48:56.349 2022-09-27 17:48:56,018 [INFO] Iteration 1: openshift-cluster-machine-approver: True 09-27 13:48:56.349 2022-09-27 17:48:56,018 [INFO] Iteration 1: openshift-controller-manager-operator: True 09-27 13:48:56.349 2022-09-27 17:48:56,115 [INFO] Iteration 1: openshift-route-controller-manager: True 09-27 13:48:56.349 2022-09-27 17:48:56,118 [INFO] Iteration 1: openshift-apiserver: True 09-27 13:48:56.349 2022-09-27 17:48:56,123 [INFO] Iteration 1: openshift-console: True 09-27 13:48:56.349 2022-09-27 17:48:56,220 [INFO] Iteration 1: openshift-authentication-operator: True 09-27 13:48:56.349 2022-09-27 17:48:56,258 [INFO] Iteration 1: openshift-infra: True 09-27 13:48:56.349 2022-09-27 17:48:56,314 [INFO] Iteration 1: openshift-config: True
https://github.com/redhat-chaos/cerberus/issues/183
Needing to add loading of proxy settings if they exist on the system when using private clusters with cerberus
with this updated code:
Fixes
https://github.com/redhat-chaos/cerberus/issues/183