Open HariNarayananMohan opened 4 years ago
Thanks for the report.
Will investigate if the installation instructions are still up to date. Note to self: CI uses standalone kustomize v3, kubectl ships with kustomize v2. make deploy
uses kustomize build <config> | kubectl apply -f
.
With the cluster deployment error, the manager is logging
2020-06-18T17:54:30.724Z ERROR controller-runtime.controller Reconciler error {"controller": "etcdcluster", "request": "hari/my-cluster", "error": "Failed to reconcile: unable to create service: services \"my-cluster\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>"}
A quick search suggests that OpenShift requires an additional RBAC permission for <resource>/finalizer
to set finalizers. Our tests and deployments are currently on Kind/GKE, so would have missed this. Will investigate what is needed for a fix.
https://github.com/jaegertracing/jaeger-operator/issues/461 https://github.com/spotahome/redis-operator/issues/98
Thanks for the report.
Will investigate if the installation instructions are still up to date. Note to self: CI uses standalone kustomize v3, kubectl ships with kustomize v2.
make deploy
useskustomize build <config> | kubectl apply -f
.With the cluster deployment error, the manager is logging
2020-06-18T17:54:30.724Z ERROR controller-runtime.controller Reconciler error {"controller": "etcdcluster", "request": "hari/my-cluster", "error": "Failed to reconcile: unable to create service: services \"my-cluster\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>"}
A quick search suggests that OpenShift requires an additional RBAC permission for
<resource>/finalizer
to set finalizers. Our tests and deployments are currently on Kind/GKE, so would have missed this. Will investigate what is needed for a fix.jaegertracing/jaeger-operator#461 spotahome/redis-operator#98
Thank you! I followed it and was able to make it work few days before. Thought of sharing it back.
Thank you! I followed it and was able to make it work few days before. Thought of sharing it back.
Hi! Could you share how? :) It's unclear which resource needs this exactly.
In the meantime I've read the sources to see which ownerReferences were created.. and found this works:
- apiGroups:
- etcd.improbable.io
resources:
- etcdbackupschedules/finalizers
verbs:
- update
- apiGroups:
- etcd.improbable.io
resources:
- etcdclusters/finalizers
verbs:
- update
- apiGroups:
- etcd.improbable.io
resources:
- etcdpeers/finalizers
verbs:
- update
- apiGroups:
- etcd.improbable.io
resources:
- etcdrestores/finalizers
verbs:
- update
Versions of relevant software used Openshift 4.3 which uses Kubenetes 1.16
What happened I'm trying to get the etcd-cluster-operator run on my cluster and provision EtcdClusters. Followed these Installing instructions and Contributing documentation separately, I was not able to successfully create the EtcdCluster in both ways.
What you expected to happen Install etcd-cluster-operator in my cluster and provision etcdclusters.
How to reproduce it (as minimally and precisely as possible):
Install cert manager
Option 1: Follow Installing Instructions
Step 1: Clone this github repo to your local. Step 2: From the root directory of the repo - cd config/default Step 3: export ECO_VERSION=v0.2.0 Step 4: kustomize edit set image controller=$ECO_VERSION Step 5: kustomize edit set image proxy=$ECO_VERSION Step 6: kubectl apply --kustomize .
Output
Option 2: Follow Contributing Instructions
Step 1: export DOCKER_REPO=\<registryname> Step 2: make docker-build Step 3: make docker-push Step 4: make deploy
Current status:
Step 5: kubectl apply -f config/samples/etcd_v1alpha1_etcdcluster.yaml
I tried creating this CR in both
hari
namespace andeco-system
namespaceOutput Full logs to relevant components eco-controller-manager.log
Anything else we need to know