Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-345

CRW 1.2.2 operator must be deployed to OCP 4.1 using --oauth flag

XMLWordPrintable

      The deploy.sh script is only supported for use with Openshift 3.11. For 4.x, recommended approach is to use OperatorHub to deploy/update CRW 1.2.

      However, though it's not supported, it's possible to use the deprecated deploy.sh script to deploy CRW 1.2 to OCP 4.1, with one caveat:

      OPENSHIFT_URL=https://api.crw.codereadyqe.com:6443
      OPENSHIFT_USERNAME=******
      OPENSHIFT_PASSWORD="***ask Nick or Radim***"
      
      oc login ${OPENSHIFT_URL} -u ${OPENSHIFT_USERNAME} -p ${OPENSHIFT_PASSWORD} --insecure-skip-tls-verify
      
      google-chrome https://console-openshift-console.apps.crw.codereadyqe.com/k8s/cluster/projects
      

      Then using the latest deployment script from https://github.com/redhat-developer/codeready-workspaces-deprecated/blob/6.19.x/operator-installer/deploy.sh ...

      ./deploy.sh -d --server-image=quay.io/crw/server-rhel8 -v=1.2-45 --operator-image=quay.io/crw/operator-rhel8:1.2-17 --verbose -p=crw-che7d
      
      ... results in ...
      
      time="2019-08-12T20:49:00Z" level=info msg="Creating a new object: Secret, name: self-signed-certificate" 
      E0812 20:49:00.566837       1 runtime.go:66] Observed a panic: &runtime.TypeAssertionError{_interface:(*runtime._type)(0x11d45e0), concrete:(*runtime._type)(0x1192dc0), asserted:(*runtime._type)(0x11d8f60), missingMethod:""} (interface conversion: interface {} is string, not map[string]interface {})
      /go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
      /go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
      /go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
      /opt/rh/go-toolset-1.11/root/usr/lib/go-toolset-1.11-golang/src/runtime/asm_amd64.s:522
      /opt/rh/go-toolset-1.11/root/usr/lib/go-toolset-1.11-golang/src/runtime/panic.go:513
      /opt/rh/go-toolset-1.11/root/usr/lib/go-toolset-1.11-golang/src/runtime/iface.go:248
      /go/src/github.com/eclipse/che-operator/pkg/util/util.go:180
      /go/src/github.com/eclipse/che-operator/pkg/util/util.go:111
      /go/src/github.com/eclipse/che-operator/pkg/controller/che/che_controller.go:228
      /go/src/github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:213
      /go/src/github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158
      /go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
      /go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134
      /go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
      /opt/rh/go-toolset-1.11/root/usr/lib/go-toolset-1.11-golang/src/runtime/asm_amd64.s:1333
      panic: interface conversion: interface {} is string, not map[string]interface {} [recovered]
      	panic: interface conversion: interface {} is string, not map[string]interface {}
      
      goroutine 351 [running]:
      github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
      	/go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:58 +0x108
      panic(0x1207d00, 0xc0008575c0)
      	/opt/rh/go-toolset-1.11/root/usr/lib/go-toolset-1.11-golang/src/runtime/panic.go:513 +0x1b9
      github.com/eclipse/che-operator/pkg/util.GetClusterPublicHostnameForOpenshiftV4(0x0, 0x0, 0x0, 0x0)
      	/go/src/github.com/eclipse/che-operator/pkg/util/util.go:180 +0x7ba
      github.com/eclipse/che-operator/pkg/util.GetClusterPublicHostname(0xc00010c101, 0xc000261800, 0x0, 0x0, 0x1370b0e)
      	/go/src/github.com/eclipse/che-operator/pkg/util/util.go:111 +0x2f
      github.com/eclipse/che-operator/pkg/controller/che.(*ReconcileChe).Reconcile(0xc00010c100, 0xc0009040b0, 0x9, 0xc000904090, 0x9, 0x2027a60, 0x5fb, 0x0, 0x0)
      	/go/src/github.com/eclipse/che-operator/pkg/controller/che/che_controller.go:228 +0x242
      github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000138460, 0x0)
      	/go/src/github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:213 +0x1d3
      github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1()
      	/go/src/github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158 +0x36
      github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1(0xc0005aef80)
      	/go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x54
      github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc0005aef80, 0x3b9aca00, 0x0, 0x1, 0xc0004cc0c0)
      	/go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134 +0xbe
      github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until(0xc0005aef80, 0x3b9aca00, 0xc0004cc0c0)
      	/go/src/github.com/eclipse/che-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88 +0x4d
      created by github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start
      	/go/src/github.com/eclipse/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:157 +0x32a
      

      (full log: https://paste.fedoraproject.org/paste/2Vd3eZnlhPr19BJWs1Ib5Q )

      But an older one is fine:

      $➔ ./deploy.sh -d --server-image=quay.io/crw/server-rhel8 -v=1.2-35 --operator-image=quay.io/crw/operator-rhel8:1.2-13 --verbose -p=crw-che7d
      

              dfestal David Festal
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: