Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'CheCluster.org.eclipse.che "eclipse-che" is invalid: []: Invalid value" deployment error #17888

Closed
2 of 22 tasks
dmytro-ndp opened this issue Sep 16, 2020 · 1 comment
Closed
2 of 22 tasks
Assignees
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@dmytro-ndp
Copy link
Contributor

Describe the bug

Eclipse Che deployment has failed on minikube 1.1.1 https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/Multiuser-Che-PR-check-E2E-Happy-path-tests-against-k8s/3537/:

chectl server:start --k8spodreadytimeout=180000 --listr-renderer=verbose --platform=minikube --che-operator-cr-patch-yaml=custom-resource-patch.yaml --chenamespace=eclipse-che

› Current Kubernetes context: 'minikube'
› Installer type is set to: 'operator'
[10:54:58] Verify Kubernetes API [started]
[10:54:58] Verify Kubernetes API...OK [title changed]
[10:54:58] Verify Kubernetes API...OK [completed]
[10:54:58] 👀  Looking for an already existing Eclipse Che instance [started]
[10:54:58] Verify if Eclipse Che is deployed into namespace "eclipse-che" [started]
[10:54:58] Verify if Eclipse Che is deployed into namespace "eclipse-che"...it is not [title changed]
[10:54:58] Verify if Eclipse Che is deployed into namespace "eclipse-che"...it is not [completed]
[10:54:58] 👀  Looking for an already existing Eclipse Che instance [completed]
[10:54:58] ✈️  Minikube preflight checklist [started]
[10:54:58] Verify if kubectl is installed [started]
[10:54:58] Verify if kubectl is installed [completed]
[10:54:58] Verify if minikube is installed [started]
[10:54:58] Verify if minikube is installed [completed]
[10:54:58] Verify if minikube is running [started]
[10:54:58] Verify if minikube is running [completed]
[10:54:58] Start minikube [started]
[10:54:58] Start minikube [skipped]
[10:54:58] → Minikube is already running.
[10:54:58] Check Kubernetes version [started]
[10:54:59] Check Kubernetes version: Found v1.14.3. [title changed]
[10:54:59] Check Kubernetes version: Found v1.14.3. [completed]
[10:54:59] Verify if minikube ingress addon is enabled [started]
[10:54:59] Verify if minikube ingress addon is enabled [completed]
[10:54:59] Enable minikube ingress addon [started]
[10:54:59] Enable minikube ingress addon [skipped]
[10:54:59] → Ingress addon is already enabled.
[10:54:59] Retrieving minikube IP and domain for ingress URLs [started]
[10:54:59] Retrieving minikube IP and domain for ingress URLs...10.0.107.13.nip.io. [title changed]
[10:54:59] Retrieving minikube IP and domain for ingress URLs...10.0.107.13.nip.io. [completed]
[10:54:59] Checking minikube version [started]
[10:54:59] Checking minikube version... 1.1.1 [title changed]
[10:54:59] Checking minikube version... 1.1.1 [completed]
[10:54:59] Check if cluster accessible [started]
[10:54:59] Check if cluster accessible [skipped]
[10:54:59] ✈️  Minikube preflight checklist [completed]
[10:54:59] Start following logs [started]
[10:54:59] Start following Operator logs [started]
[10:54:59] Start following Operator logs...done [title changed]
[10:54:59] Start following Operator logs...done [completed]
[10:54:59] Start following Eclipse Che logs [started]
[10:54:59] Start following Eclipse Che logs...done [title changed]
[10:54:59] Start following Eclipse Che logs...done [completed]
[10:54:59] Start following Postgres logs [started]
[10:54:59] Start following Postgres logs...done [title changed]
[10:54:59] Start following Postgres logs...done [completed]
[10:54:59] Start following Keycloak logs [started]
[10:54:59] Start following Keycloak logs...done [title changed]
[10:54:59] Start following Keycloak logs...done [completed]
[10:54:59] Start following Plugin registry logs [started]
[10:54:59] Start following Plugin registry logs...done [title changed]
[10:54:59] Start following Plugin registry logs...done [completed]
[10:54:59] Start following Devfile registry logs [started]
[10:54:59] Start following Devfile registry logs...done [title changed]
[10:54:59] Start following Devfile registry logs...done [completed]
[10:54:59] Start following logs [completed]
[10:54:59] Start following events [started]
[10:54:59] Start following namespace events [started]
[10:54:59] Start following namespace events...done [title changed]
[10:54:59] Start following namespace events...done [completed]
[10:54:59] Start following events [completed]
[10:54:59] 🏃‍  Running the Eclipse Che operator [started]
[10:54:59] Copying operator resources [started]
[10:54:59] Copying operator resources...done. [title changed]
[10:54:59] Copying operator resources...done. [completed]
[10:54:59] Create Namespace (eclipse-che) [started]
[10:54:59] Create Namespace (eclipse-che)...done. [title changed]
[10:54:59] Create Namespace (eclipse-che)...done. [completed]
[10:54:59] Create ServiceAccount che-operator in namespace eclipse-che [started]
[10:54:59] Create ServiceAccount che-operator in namespace eclipse-che...done. [title changed]
[10:54:59] Create ServiceAccount che-operator in namespace eclipse-che...done. [completed]
[10:54:59] Create Role che-operator in namespace eclipse-che [started]
[10:54:59] Create Role che-operator in namespace eclipse-che...done. [title changed]
[10:54:59] Create Role che-operator in namespace eclipse-che...done. [completed]
[10:54:59] Create ClusterRole eclipse-che-che-operator [started]
[10:54:59] Create ClusterRole eclipse-che-che-operator...done. [title changed]
[10:54:59] Create ClusterRole eclipse-che-che-operator...done. [completed]
[10:54:59] Create RoleBinding che-operator in namespace eclipse-che [started]
[10:54:59] Create RoleBinding che-operator in namespace eclipse-che...done. [title changed]
[10:54:59] Create RoleBinding che-operator in namespace eclipse-che...done. [completed]
[10:54:59] Create ClusterRoleBinding eclipse-che-che-operator [started]
[10:54:59] Create ClusterRoleBinding eclipse-che-che-operator...done. [title changed]
[10:54:59] Create ClusterRoleBinding eclipse-che-che-operator...done. [completed]
[10:54:59] Create CRD checlusters.org.eclipse.che [started]
[10:54:59] Create CRD checlusters.org.eclipse.che...done. [title changed]
[10:54:59] Create CRD checlusters.org.eclipse.che...done. [completed]
[10:54:59] Waiting 5 seconds for the new Kubernetes resources to get flushed [started]
[10:55:04] Waiting 5 seconds for the new Kubernetes resources to get flushed...done. [title changed]
[10:55:04] Waiting 5 seconds for the new Kubernetes resources to get flushed...done. [completed]
[10:55:04] Create deployment che-operator in namespace eclipse-che [started]
[10:55:04] Create deployment che-operator in namespace eclipse-che...done. [title changed]
[10:55:04] Create deployment che-operator in namespace eclipse-che...done. [completed]
[10:55:04] Create the Custom Resource of type checlusters.org.eclipse.che in the namespace eclipse-che [started]
[10:55:04] Create the Custom Resource of type checlusters.org.eclipse.che in the namespace eclipse-che [failed]
[10:55:04] → CheCluster.org.eclipse.che "eclipse-che" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"org.eclipse.che/v1", "kind":"CheCluster", "metadata":map[string]interface {}{"creationTimestamp":"2020-09-16T14:55:04Z", "generation":1, "name":"eclipse-che", "namespace":"eclipse-che", "uid":"9aca84de-f82c-11ea-b25a-fa163e3737ab"}, "spec":map[string]interface {}{"auth":map[string]interface {}{"externalIdentityProvider":false, "identityProviderAdminUserName":"", "identityProviderClientId":"", "identityProviderImage":"", "identityProviderPassword":"", "identityProviderRealm":"", "identityProviderURL":"", "oAuthClientName":"", "oAuthSecret":"", "openShiftoAuth":true, "updateAdminPassword":false}, "database":map[string]interface {}{"chePostgresDb":"", "chePostgresHostName":"", "chePostgresPassword":"", "chePostgresPort":"", "chePostgresUser":"", "externalDb":false, "postgresImage":""}, "k8s":map[string]interface {}{"ingressClass":"", "ingressDomain":"10.0.107.13.nip.io", "ingressStrategy":"", "securityContextFsGroup":"", "securityContextRunAsUser":"", "singleHostExposureType":"", "tlsSecretName":"che-tls"}, "metrics":map[string]interface {}{"enable":true}, "server":map[string]interface {}{"allowUserDefinedWorkspaceNamespaces":false, "cheDebug":"false", "cheFlavor":"", "cheImage":"maxura/che-server", "cheImageTag":"17757", "cheWorkspaceClusterRole":"", "devfileRegistryImage":"", "gitSelfSignedCert":false, "nonProxyHosts":"", "pluginRegistryImage":"", "proxyPassword":"", "proxyPort":"", "proxyURL":"", "proxyUser":"", "serverExposureStrategy":"", "serverMemoryLimit":"", "serverMemoryRequest":"", "serverTrustStoreConfigMapName":"", "singleHostGatewayConfigMapLabels":"", "singleHostGatewayConfigSidecarImage":"", "singleHostGatewayImage":"", "tlsSupport":true, "workspaceNamespaceDefault":""}, "storage":map[string]interface {}{"postgresPVCStorageClassName":"", "preCreateSubPaths":true, "pvcClaimSize":"1Gi", "pvcJobsImage":"", "pvcStrategy":"common", "workspacePVCStorageClassName":""}}}: validation failure list:
spec.server.singleHostGatewayConfigMapLabels in body must be of type object: "string"
[10:55:04] 🏃‍  Running the Eclipse Che operator [failed]
[10:55:04] → CheCluster.org.eclipse.che "eclipse-che" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"org.eclipse.che/v1", "kind":"CheCluster", "metadata":map[string]interface {}{"creationTimestamp":"2020-09-16T14:55:04Z", "generation":1, "name":"eclipse-che", "namespace":"eclipse-che", "uid":"9aca84de-f82c-11ea-b25a-fa163e3737ab"}, "spec":map[string]interface {}{"auth":map[string]interface {}{"externalIdentityProvider":false, "identityProviderAdminUserName":"", "identityProviderClientId":"", "identityProviderImage":"", "identityProviderPassword":"", "identityProviderRealm":"", "identityProviderURL":"", "oAuthClientName":"", "oAuthSecret":"", "openShiftoAuth":true, "updateAdminPassword":false}, "database":map[string]interface {}{"chePostgresDb":"", "chePostgresHostName":"", "chePostgresPassword":"", "chePostgresPort":"", "chePostgresUser":"", "externalDb":false, "postgresImage":""}, "k8s":map[string]interface {}{"ingressClass":"", "ingressDomain":"10.0.107.13.nip.io", "ingressStrategy":"", "securityContextFsGroup":"", "securityContextRunAsUser":"", "singleHostExposureType":"", "tlsSecretName":"che-tls"}, "metrics":map[string]interface {}{"enable":true}, "server":map[string]interface {}{"allowUserDefinedWorkspaceNamespaces":false, "cheDebug":"false", "cheFlavor":"", "cheImage":"maxura/che-server", "cheImageTag":"17757", "cheWorkspaceClusterRole":"", "devfileRegistryImage":"", "gitSelfSignedCert":false, "nonProxyHosts":"", "pluginRegistryImage":"", "proxyPassword":"", "proxyPort":"", "proxyURL":"", "proxyUser":"", "serverExposureStrategy":"", "serverMemoryLimit":"", "serverMemoryRequest":"", "serverTrustStoreConfigMapName":"", "singleHostGatewayConfigMapLabels":"", "singleHostGatewayConfigSidecarImage":"", "singleHostGatewayImage":"", "tlsSupport":true, "workspaceNamespaceDefault":""}, "storage":map[string]interface {}{"postgresPVCStorageClassName":"", "preCreateSubPaths":true, "pvcClaimSize":"1Gi", "pvcJobsImage":"", "pvcStrategy":"common", "workspacePVCStorageClassName":""}}}: validation failure list:
spec.server.singleHostGatewayConfigMapLabels in body must be of type object: "string"
 ›   Error: Error: CheCluster.org.eclipse.che "eclipse-che" is invalid: []: 
 ›   Invalid value: map[string]interface {}{"apiVersion":"org.eclipse.che/v1", 
 ›   "kind":"CheCluster", "metadata":map[string]interface 
 ›   {}{"creationTimestamp":"2020-09-16T14:55:04Z", "generation":1, 
 ›   "name":"eclipse-che", "namespace":"eclipse-che", 
 ›   "uid":"9aca84de-f82c-11ea-b25a-fa163e3737ab"}, "spec":map[string]interface
 ›    {}{"auth":map[string]interface {}{"externalIdentityProvider":false, 
 ›   "identityProviderAdminUserName":"", "identityProviderClientId":"", 
 ›   "identityProviderImage":"", "identityProviderPassword":"", 
 ›   "identityProviderRealm":"", "identityProviderURL":"", 
 ›   "oAuthClientName":"", "oAuthSecret":"", "openShiftoAuth":true, 
 ›   "updateAdminPassword":false}, "database":map[string]interface 
 ›   {}{"chePostgresDb":"", "chePostgresHostName":"", "chePostgresPassword":"",
 ›    "chePostgresPort":"", "chePostgresUser":"", "externalDb":false, 
 ›   "postgresImage":""}, "k8s":map[string]interface {}{"ingressClass":"", 
 ›   "ingressDomain":"10.0.107.13.nip.io", "ingressStrategy":"", 
 ›   "securityContextFsGroup":"", "securityContextRunAsUser":"", 
 ›   "singleHostExposureType":"", "tlsSecretName":"che-tls"}, 
 ›   "metrics":map[string]interface {}{"enable":true}, 
 ›   "server":map[string]interface 
 ›   {}{"allowUserDefinedWorkspaceNamespaces":false, "cheDebug":"false", 
 ›   "cheFlavor":"", "cheImage":"maxura/che-server", "cheImageTag":"17757", 
 ›   "cheWorkspaceClusterRole":"", "devfileRegistryImage":"", 
 ›   "gitSelfSignedCert":false, "nonProxyHosts":"", "pluginRegistryImage":"", 
 ›   "proxyPassword":"", "proxyPort":"", "proxyURL":"", "proxyUser":"", 
 ›   "serverExposureStrategy":"", "serverMemoryLimit":"", 
 ›   "serverMemoryRequest":"", "serverTrustStoreConfigMapName":"", 
 ›   "singleHostGatewayConfigMapLabels":"", 
 ›   "singleHostGatewayConfigSidecarImage":"", "singleHostGatewayImage":"", 
 ›   "tlsSupport":true, "workspaceNamespaceDefault":""}, 
 ›   "storage":map[string]interface {}{"postgresPVCStorageClassName":"", 
 ›   "preCreateSubPaths":true, "pvcClaimSize":"1Gi", "pvcJobsImage":"", 
 ›   "pvcStrategy":"common", "workspacePVCStorageClassName":""}}}: validation 
 ›   failure list:
 ›   spec.server.singleHostGatewayConfigMapLabels in body must be of type 
 ›   object: "string"
 ›   Installation failed, check logs in '/tmp/chectl-logs/1600268098450'

where custom-resource-patch.yaml:

spec:
  server:
    cheImage: 'maxura/che-server'
    cheImageTag: '17757'
  auth:
    updateAdminPassword: false

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Download chectl/0.0.20200916-next.ad6ddd0 linux-x64 node-v10.22.1
  2. Start minikube 1.1.1
  3. Try to deploy Eclipse Che by the command:
chectl server:start --k8spodreadytimeout=180000 --listr-renderer=verbose --platform=minikube --che-operator-cr-patch-yaml=custom-resource-patch.yaml --chenamespace=eclipse-che

Expected behavior

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube 1.1.1
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

  • chectl/0.0.20200916-next.ad6ddd0 linux-x64 node-v10.22.1
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

Additional context

The bug could be related to recent changes eclipse-che/che-operator#378

@dmytro-ndp dmytro-ndp added kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. team/deploy labels Sep 16, 2020
@tolusha tolusha added area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator and removed team/deploy labels Sep 17, 2020
@tolusha
Copy link
Contributor

tolusha commented Sep 17, 2020

PR created eclipse-che/che-operator#447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

No branches or pull requests

2 participants