Skip to content
This repository was archived by the owner on Aug 2, 2019. It is now read-only.

I cannot re-deploy on OCP4 cluster #36

@mvazquezc

Description

@mvazquezc

I've deployed this repo on a working OCP4 cluster following the instructions on the readme file:

git clone https://github.com/openshift-cloud-functions/knative-operators
cd knative-operators/
git fetch --tags  
git checkout openshift-v0.4.0
./etc/scripts/install.sh

Then I wanted to delete everything related to knative and followed these steps:

oc delete ns istio-operator istio-system knative-build knative-eventing knative-serving myproject
oc -n openshift-operator-lifecycle-manager get catalogsource -o name | grep -E "knative|istio|maistra" | xargs oc -n openshift-operator-lifecycle-manager delete
oc get pods -o name -n openshift-operator-lifecycle-manager | grep -E "knative|maistra" | xargs oc -n openshift-operator-lifecycle-manager delete
oc get crd -o name | grep -E "istio|knative" | xargs oc delete
oc get clusterroles -o name | grep -E "istio|knative|maistra" | xargs oc delete
oc get clusterrolebinding -o name | grep -E "istio|maistra|openshift-ansible-installer-cluster-role-binding" | xargs oc delete
oc get service -o name -n openshift-operator-lifecycle-manager | grep -E "knative|istio|maistra" | xargs oc -n openshift-operator-lifecycle-manager delete
for namespace in $(oc get ns -o name | awk -F "/" '{print $2}')
do
  echo "Cleaning ns $namespace"
  oc get configmap -o name -n $namespace | grep -E "istio|knative|maistra" | xargs oc -n $namespace delete
  oc get secret -o name -n $namespace | grep -E "istio|knative|maistra" | xargs oc -n $namespace delete
done
oc -n openshift-monitoring -o name get clusterserviceversion | grep -E "istio|knative|maistra" | xargs oc -n openshift-monitoring delete
oc -n openshift-operators -o name get clusterserviceversion | grep -E "istio|knative|maistra" | xargs oc -n openshift-operators delete
oc -n openshift-operator-lifecycle-manager -o name get clusterserviceversion | grep -E "istio|knative|maistra" | xargs oc -n openshift-operator-lifecycle-manager delete

Now, when trying to deploy the project again, it fails while waiting for pods on olm namespace to come up:

+ eval oc get pods -n openshift-operator-lifecycle-manager '|' grep knative
++ oc get pods -n openshift-operator-lifecycle-manager
++ grep knative
+ sleep 5
+ [[ 127 -gt 120 ]]
+ echo 'ERROR: Timed out'
ERROR: Timed out
+ exit -1

The catalog-operator pod is showing these errors:

E0424 14:17:53.709605       1 queueinformer_operator.go:177] Sync "openshift-operator-lifecycle-manager/knative-build" failed: error ensuring pod: : error creating new pod: knative-build-: Internal error occurred: failed calling admission webhook "sidecar-injector.istio.io": Post https://istio-sidecar-injector.istio-system.svc:443/inject?timeout=30s: service "istio-sidecar-injector" not found
time="2019-04-24T14:17:54Z" level=warning msg="couldn't ensure registry server" error="error ensuring pod: : error creating new pod: knative-eventing-: Internal error occurred: failed calling admission webhook \"sidecar-injector.istio.io\": Post https://istio-sidecar-injector.istio-system.svc:443/inject?timeout=30s: service \"istio-sidecar-injector\" not found" id=wSCMk source=knative-eventing
time="2019-04-24T14:17:54Z" level=info msg="retrying openshift-operator-lifecycle-manager/knative-eventing"
E0424 14:17:54.307872       1 queueinformer_operator.go:177] Sync "openshift-operator-lifecycle-manager/knative-eventing" failed: error ensuring pod: : error creating new pod: knative-eventing-: Internal error occurred: failed calling admission webhook "sidecar-injector.istio.io": Post https://istio-sidecar-injector.istio-system.svc:443/inject?timeout=30s: service "istio-sidecar-injector" not found
time="2019-04-24T14:17:55Z" level=warning msg="couldn't ensure registry server" error="error ensuring pod: : error creating new pod: maistra-operators-: Internal error occurred: failed calling admission webhook \"sidecar-injector.istio.io\": Post https://istio-sidecar-injector.istio-system.svc:443/inject?timeout=30s: service \"istio-sidecar-injector\" not found" id=+F2Ul source=maistra-operators
time="2019-04-24T14:17:55Z" level=info msg="retrying openshift-operator-lifecycle-manager/maistra-operators"
E0424 14:17:55.307927       1 queueinformer_operator.go:177] Sync "openshift-operator-lifecycle-manager/maistra-operators" failed: error ensuring pod: : error creating new pod: maistra-operators-: Internal error occurred: failed calling admission webhook "sidecar-injector.istio.io": Post https://istio-sidecar-injector.istio-system.svc:443/inject?timeout=30s: service "istio-sidecar-injector" not found

Any suggestions?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions