Description of problem: When uninstall operator with multiple plugins enabled, not all plugins are removed. Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-06-23-201305 How reproducible: Always Steps to Reproduce: 1.Install an operator in project and enable at least 2 plugins. My example operator has enabled plugins: prometheus-plugin1 and prometheus-plugin2. 2.Uninstall the operator. 3.Check if plugins are removed from console operator. Actual results: 1. All plugins are set in console operator: $ oc get consoles.operator.openshift.io cluster -o json |grep plugin "plugins": [ "prometheus-plugin1", "prometheus-plugin2" 2.Operator is uninstalled. 3. There is still plugin remaining in console operator: $ oc get consoles.operator.openshift.io cluster -o json |grep plugin "plugins": [ "prometheus-plugin1" Expected results: 3. All plugins enabled by the operator should be removed from console operator. Additional info:
I haven't had a chance to look at this yet this sprint, but will take a look on Friday.
Hey @yanpzhan - Are there other steps here that you used to test this? Maybe I'm missing them, but I'm not seeing plugins on Prometheus. I'm happy to fix this but I haven't had any luck finding an operator with two.
Checked on 4.9 cluster with payload 4.9.0-0.nightly-2021-08-29-010334. 1. Install an operator in project with 2 plugins enabled. Check the plugins are added in console operator. $ oc get consoles.operator.openshift.io cluster -o json |grep plugin "plugins": [ "prometheus-plugin1", "prometheus-plugin2" 2. Uninstall the operator, then check if plugins are removed from console operator. $ oc get consoles.operator.openshift.io cluster -o json |grep plugin "plugins": [] The bug is fixed.
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: OpenShift Container Platform 4.9.0 bug fix and security 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. https://access.redhat.com/errata/RHSA-2021:3759