Description of problem (please be detailed as possible and provide log
When deployment of external mode in OCS 4.6 is attempted using a monitoring-endpoint which is not reachable, the ocs-operator crashes
$ oc get pods
NAME READY STATUS RESTARTS AGE
noobaa-operator-58958fb578-82xfw 1/1 Running 0 7m7s
ocs-metrics-exporter-b6ddd6869-n8nll 1/1 Running 0 7m7s
ocs-operator-6f48c6bff5-s48rg 0/1 CrashLoopBackOff 5 7m7s
rook-ceph-operator-8467f78647-4j56z 1/1 Running 0 7m7s
Version of all relevant components (if applicable):
Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
Yes, even though the endpoint is not valid, the operator should handle this and not result in a crash
Is there any workaround available to the best of your knowledge?
Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
Can this issue reproducible?
Can this issue reproduce from the UI?
If this is a regression, please provide more details to justify this:
Steps to Reproduce:
1. Run the exporter script on the RHCS cluster and pass an unreachable IP as the monitoring endpoint
Eg: # python3 exporter46.py --rgw-endpoint 10.1.8.96:8080 --rbd-data-pool-name ocs-cbp-46-rg --run-as-user client.ocs46 --monitoring-endpoint 22.214.171.124 --monitoring-endpoint-port 9283
2. Upload the JSON generated from the script and deploy OCS in external mode
The ocs-operator crashes
The ocs-operator should handle this error gracefully
This needs to be fixed, providing dev_ack.
Backport PR is not yet merged.
*** Bug 1889604 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: Red Hat OpenShift Container Storage 4.6.0 security, bug fix, enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.