siamaksade / openshift-jenkins-demo

CI/CD Demo on OpenShift
http://www.openshift.com
530 stars 928 forks source link

Eclipse Che Java Workspace is not available #127

Open mikeintoch opened 5 years ago

mikeintoch commented 5 years ago

Java Workspace on Eclipse Che is not available

ChrystianDuarte commented 4 years ago

hi @mikeintoch , I have the same issue. :( Can you resolve? in my case the java workspace never start.

mikeintoch commented 4 years ago

@ChrystianDuarte The only solution is install Red Hat Codeready Workspaces on your own

https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/1.2/html-single/administration_guide/index#installing_codeready-workspaces

andresmmujica commented 4 years ago

I've found this piece in the logs

`+ oc process -f https://raw.githubusercontent.com/minishift/minishift/master/addons/che/templates/che-workspace-service-account.yaml --param SERVICE_ACCOUNT_NAMESPACE=cicd-aro --param=SERVICE_ACCOUNT_NAME=che-workspace

  | + oc create -f -   | serviceaccount "che-workspace" created   | role.authorization.openshift.io "exec" created   | role.authorization.openshift.io "workspace-view" created   | rolebinding.authorization.openshift.io "che-workspace-exec" created   | rolebinding.authorization.openshift.io "che-workspace-view" created   | + oc process -f https://raw.githubusercontent.com/minishift/minishift/master/addons/che/templates/che-server-template.yaml --param ROUTING_SUFFIX=apps.ff9d9c18031e4eafa5b1.eastus2.azmosa.io --param CHE_MULTIUSER=false --param CHE_VERSION=6.19.0 --param CHE_INFRA_OPENSHIFT_PROJECT=cicd-aro --param CHE_INFRA_KUBERNETES_SERVICEACCOUNTNAME=che-workspace   | + oc create -f -   | error: unknown parameter name "CHE_INFRA_OPENSHIFT_PROJECT"   | error: no objects passed to create   | + oc set resources dc/che --limits=cpu=1,memory=2Gi --requests=cpu=200m,memory=512Mi   | Error from server (NotFound): deploymentconfigs.apps.openshift.io "che" not found`

the --param CHE_INFRA_OPENSHIFT_PROJECT=cicd-aro is failing, but I'm not sure how to proceed to solve it.

andresmmujica commented 4 years ago

I was able to solve it changing --param CHE_INFRA_OPENSHIFT_PROJECT=$CICD_NAMESPACE \

with this.

            --param CHE_INFRA_KUBERNETES_NAMESPACE_DEFAULT=$CICD_NAMESPACE \

https://github.com/nichochen/openshift-cd-demo/pull/2/files