kudobuilder / kudo

Kubernetes Universal Declarative Operator (KUDO)
https://kudo.dev
Apache License 2.0
1.17k stars 103 forks source link

Failed to install first-operator example to OpenShift 4.10.13 #1808

Open dove-young opened 2 years ago

dove-young commented 2 years ago

What happened:

[root@st2 ~]#  kubectl kudo install ./first-operator -v 11
repo configs: { name:community, url:https://kudo-repository.storage.googleapis.com/v1 }

repository used { name:community, url:https://kudo-repository.storage.googleapis.com/v1 }
I0531 01:57:57.335378 1066260 request.go:645] Throttling request took 1.143914662s, request: GET:https://api.b-10.example.com:6443/apis/autoscaling/v2beta1?timeout=32s
acquiring kudo client
getting operator package
determining package type of /root/first-operator
local operator discovered: /root/first-operator
folder walking through directory first-operator
folder walking through directory templates
Preparing kudo/first-operator:0.1.0 for installation
parameters in use: map[]
operator.kudo.dev kudo/first-operator does not exist

operator kudo/first-operator created
operatorversion kudo/first-operator-1.7.9-0.1.0 created
Error: failed to install instance kudo/first-operator-instance: installing Instance: Internal error occurred: failed calling webhook "instance-admission.kudo.dev": received invalid webhook response: expected response.uid="0556b79b-e871-453b-b8d5-733f586376ad", got ""
[root@st2 ~]#

What you expected to happen: It should be installed.

How to reproduce it (as minimally and precisely as possible):

repository used { name:community, url:https://kudo-repository.storage.googleapis.com/v1 } I0531 01:57:57.335378 1066260 request.go:645] Throttling request took 1.143914662s, request: GET:https://api.b-10.example.com:6443/apis/autoscaling/v2beta1?timeout=32s acquiring kudo client getting operator package determining package type of /root/first-operator local operator discovered: /root/first-operator folder walking through directory first-operator folder walking through directory templates Preparing kudo/first-operator:0.1.0 for installation parameters in use: map[] operator.kudo.dev kudo/first-operator does not exist

operator kudo/first-operator created operatorversion kudo/first-operator-1.7.9-0.1.0 created Error: failed to install instance kudo/first-operator-instance: installing Instance: Internal error occurred: failed calling webhook "instance-admission.kudo.dev": received invalid webhook response: expected response.uid="0556b79b-e871-453b-b8d5-733f586376ad", got "" [root@st2 ~]#

**Anything else we need to know?**:

oc get operatorversion NAME AGE first-operator-1.7.9-0.1.0 9m38s

oc get operator.kudo.dev NAME AGE first-operator 9m56s

kubectl kudo get instance Error: expecting one of "instances, operators, operatorversions or all" and not "instance"

kubectl kudo get instances List of current installed instances in namespace "kudo": .


**Environment**:

you can find env info from this issue https://github.com/kudobuilder/kudo/issues/1807

- Kubernetes version (use `kubectl version`):
- Kudo version (use `kubectl kudo version`): 
- Operator:
- operatorVersion:
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g. `uname -a`):
- Install tools:
- Others: