Open surajssd opened 4 years ago
This happens mainly on HA setups.
Could it be, that we don't wait until openebs-operator
is uninstalled OR that the webhook is not being unregistered properly and that's why openebs-storage-class
uninstallation fails?
Also, I think uninstalling should be happening in the reverse order than installing, that might also help.
Also, I think uninstalling should be happening in the reverse order than installing, that might also help.
Yes
If you delete
openebs-operator
before deleting the componentopenebs-storage-class
then it fails with errorFATA[0007] uninstallation completed with 1 error(s): admission webhook "admission-webhook.openebs.io" denied the request: failed to get spc cstor-pool-openebs-test-sc: storagepoolclaims.openebs.io "cstor-pool-openebs-test-sc" is forbidden: User "system:serviceaccount:openebs:openebs-operator" cannot get resource "storagepoolclaims" in API group "openebs.io" at the cluster scope
.OR