Can't start a workspace when MetalLB exposes the Cluster ingresses
Hello,
I'm trying to deploy eclipse che 7.3.1 version on cluster bootstrapped with Rancher RKE. The Cluster ingress is exposed with external loadbalancer IP ( with metallb) I created offline devfile and plugin registries. Che is deployed with helm charts and takes into account customization on
- offline plugin registry (setting CHE_SIDECAR_CONTAINERS_REGISTRY_URL)
- offline devfile registry (setting CHE_DEVFILE_REGISTRY_URL, CHE_DEVFILE_IMAGES_REGISTRY_URL)
- init and unified brokers ( adding CA CERTS)
- serverStrategy: multi-host
- multiuser: false
Che starts without error and accessible throught the ingress specified in values.yml
I created a workspace with Go stack (1.12.10) with devfile :
metadata:
name: wksp-cyjq
projects:
- name: example
source:
location: >-
https://devfile-registry-che.<fqdn>/resources/golang-example-master.zip
type: zip
components:
- mountSources: true
endpoints:
- name: 8080/tcp
port: 8080
memoryLimit: 512Mi
type: dockerimage
alias: go-cli
image: >-
repo.<fqdn>/docker/eclipse/che-golang-1.12:7.3.1
env:
- value: '/go:$(CHE_PROJECTS_ROOT)'
name: GOPATH
- value: /tmp/.cache
name: GOCACHE
- id: eclipse/che-theia/7.3.1
type: cheEditor
- id: ms-vscode/go/0.11.4
type: chePlugin
apiVersion: 1.0.0
commands:
- name: run outyet
actions:
- workdir: '${CHE_PROJECTS_ROOT}/src/github.com/golang/example/outyet'
type: exec
command: go get -d && go run main.go
component: go-cli
- name: stop outyet
actions:
- type: exec
command: kill $(pidof go)
component: go-cli
- name: test outyet
actions:
- workdir: '${CHE_PROJECTS_ROOT}/src/github.com/golang/example/outyet'
type: exec
command: go test
component: go-cli
- name: run current file
actions:
- workdir: '${fileDirname}'
type: exec
command: 'go get -d && go run ${file}'
component: go-cli
- name: Debug current file
actions:
- referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug current file",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
},
]
}
type: vscode-launch
I started the workspace and i got those logs :
Workspace start logs :
Starting Init Plugin Broker
Cleaning /plugins dir
Unified Che Plugin Broker
Starting VS Code and Theia plugins processing
Downloading VS Code extension for plugin 'ms-vscode/go/0.11.4'
Starting Che plugins and editor processing
List of plugins and editors to install
- ms-vscode/go/0.11.4 - This extension adds rich language support for the Go language
- eclipse/che-machine-exec-plugin/7.3.1 - Che Plug-in with che-machine-exec service to provide creation terminal or tasks for Eclipse CHE workspace containers.
- eclipse/che-theia/7.3.1 - Eclipse Theia
All plugins have been successfully processed
Successfully assigned che/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz to <VM>.<fqdn>
Pulling image "eclipse/che-theia-endpoint-runtime-binary:7.3.1"
Successfully pulled image "eclipse/che-theia-endpoint-runtime-binary:7.3.1"
Created container remote-runtime-injectortsr
Started container remote-runtime-injectortsr
Pulling image "<private registry>/docker/eclipse/che-golang-1.12:7.3.1"
Successfully pulled image "<private registry>/docker/eclipse/che-golang-1.12:7.3.1"
Created container go-cli
Started container go-cli
Pulling image "<private registry>/docker/eclipse/che-machine-exec:7.3.1"
Successfully pulled image "<private registry>/docker/eclipse/che-machine-exec:7.3.1"
Created container che-machine-execfi4
Started container che-machine-execfi4
Pulling image "<private registry>/docker/eclipse/che-theia:7.3.1"
Successfully pulled image "<private registry>/docker/eclipse/che-theia:7.3.1"
Created container theia-ideeul
Started container theia-ideeul
Pulling image "<private registry>/docker/eclipse/che-remote-plugin-go-1.12.9:7.3.1"
Successfully pulled image "<private registry>/docker/eclipse/che-remote-plugin-go-1.12.9:7.3.1"
Created container vscode-godny
Started container vscode-godny
Error: Failed to run the workspace: "Server 'theia' in container 'theia-ideeul' not available."
Theia logs :
kubectl -n che logs -f workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz -c theia-ideeul
chown: /projects: Operation not permitted
root INFO Theia app listening on http://0.0.0.0:3100.
root INFO unzipping the plug-in 'eclipse_che_ports_plugin.theia' to directory: /tmp/theia-unpacked/eclipse_che_ports_plugin.theia
root INFO unzipping the plug-in 'eclipse_che_theia_containers_plugin.theia' to directory: /tmp/theia-unpacked/eclipse_che_theia_containers_plugin.theia
root INFO unzipping the plug-in 'eclipse_che_theia_factory_plugin.theia' to directory: /tmp/theia-unpacked/eclipse_che_theia_factory_plugin.theia
root INFO unzipping the plug-in 'eclipse_che_theia_ssh_plugin.theia' to directory: /tmp/theia-unpacked/eclipse_che_theia_ssh_plugin.theia
root INFO unzipping the plug-in 'eclipse_che_welcome_plugin.theia' to directory: /tmp/theia-unpacked/eclipse_che_welcome_plugin.theia
root INFO unzipping the plug-in 'task_plugin.theia' to directory: /tmp/theia-unpacked/task_plugin.theia
root INFO unzipping the plug-in 'theia_yeoman_plugin.theia' to directory: /tmp/theia-unpacked/theia_yeoman_plugin.theia
root INFO unzipping the VS Code extension 'vscode-git-1.3.0.1.vsix' to directory: /tmp/vscode-unpacked/vscode-git-1.3.0.1.vsix
root ERROR Uncaught Exception: [object Object]
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/theia-unpacked/eclipse_che_ports_plugin.theia
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/theia-unpacked/eclipse_che_theia_containers_plugin.theia
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/theia-unpacked/eclipse_che_theia_factory_plugin.theia
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/theia-unpacked/eclipse_che_theia_ssh_plugin.theia
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/theia-unpacked/eclipse_che_welcome_plugin.theia
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/theia-unpacked/task_plugin.theia
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/theia-unpacked/theia_yeoman_plugin.theia
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/vscode-unpacked/vscode-git-1.3.0.1.vsix
root INFO Resolved "vscode-git-1.3.0.1.vsix" to a VS Code extension "[email protected]" with engines: { vscode: '^1.5.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /plugins/sidecars
root ERROR Failed to load plugin dependencies from '/plugins/sidecars' path Error: ENOENT: no such file or directory, open '/plugins/sidecars/package.json'
root INFO Deploying backend plugin "@eclipse-che/[email protected]" from "/tmp/theia-unpacked/eclipse_che_ports_plugin.theia/lib/ports-plugin.js"
root INFO Deploying backend plugin "@eclipse-che/[email protected]" from "/tmp/theia-unpacked/eclipse_che_theia_containers_plugin.theia/lib/containers-plugin.js"
root INFO Deploying backend plugin "@eclipse-che/[email protected]" from "/tmp/theia-unpacked/eclipse_che_theia_factory_plugin.theia/lib/factory-plugin.js"
root INFO Deploying backend plugin "@eclipse-che/[email protected]" from "/tmp/theia-unpacked/eclipse_che_theia_ssh_plugin.theia/lib/ssh-plugin-backend.js"
root INFO Deploying backend plugin "@eclipse-che/[email protected]" from "/tmp/theia-unpacked/eclipse_che_welcome_plugin.theia/lib/welcome-plugin.js"
root INFO Deploying backend plugin "[email protected]" from "/tmp/theia-unpacked/task_plugin.theia/lib/task-plugin-backend.js"
root INFO Deploying backend plugin "@theia/[email protected]" from "/tmp/theia-unpacked/theia_yeoman_plugin.theia/lib/theia-yeoman-plugin-backend-plugin.js"
root INFO Deploying backend plugin "[email protected]" from "/tmp/vscode-unpacked/vscode-git-1.3.0.1.vsix/extension/out/main"
kubectl -n che logs -f workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz -c vscode-godny
Starting the deployer with the list of resolvers [ LocalDirectoryPluginDeployerResolver {},
GithubPluginDeployerResolver { unpackedFolder: '/tmp/github-remote' },
HttpPluginDeployerResolver { unpackedFolder: '/tmp/http-remote' },
VsCodePluginDeployerResolver { vscodeExtensionsFolder: '/tmp/vscode-extension-marketplace' } ]
Theia Endpoint 1/pid listening on port 2503
Found the list of default plugins ID on env: undefined
Found the list of plugins ID on env: local-dir:///plugins/sidecars/ms_vscode_go_0_11_4
Found the list of default plugins ID from CLI: undefined
unzipping the VS Code extension 'ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix' to directory: /tmp/vscode-unpacked/ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix
PluginTheiaDirectoryHandler: accepting plugin with path /tmp/vscode-unpacked/ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix
Resolving "ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix" as a VS Code extension...
Resolved "ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix" to a VS Code extension "[email protected]" with engines: { vscode: '^1.25.0' }
the accepted plugins are []
the acceptedFrontendPlugins plugins are []
the acceptedBackendPlugins plugins are [ PluginDeployerEntryImpl {
originId: 'local-dir:///plugins/sidecars/ms_vscode_go_0_11_4',
pluginId: 'ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix',
map: Map { 'package.json' => [Object] },
changes:
[ 'PluginVsCodeFileHandler', 'PluginVsCodeDirectoryHandler' ],
acceptedTypes: [ 1 ],
currentPath:
'/tmp/vscode-unpacked/ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix/extension',
initPath:
'/plugins/sidecars/ms_vscode_go_0_11_4/ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix',
resolved: true,
resolvedByName: 'LocalDirectoryPluginDeployerResolver' } ]
local path to deploy on remote instance [ '/tmp/vscode-unpacked/ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix/extension' ]
Deploying backend plugin "[email protected]" from "/tmp/vscode-unpacked/ms-vscode.go.0.11.4.thkznyafqh.Go-0.11.4.vsix/extension/out/src/goMain"
kubectl -n che get events --sort-by='{.lastTimestamp}' --watch
1s Normal Scheduled pod/mkdir-workspaceffdikzjktx12dbo2 Successfully assigned che/mkdir-workspaceffdikzjktx12dbo2 to <VM-name>017.<fqdn>
1s Normal Pulling pod/mkdir-workspaceffdikzjktx12dbo2 Pulling image "centos:centos7"
1s Normal Pulled pod/mkdir-workspaceffdikzjktx12dbo2 Successfully pulled image "centos:centos7"
1s Normal Created pod/mkdir-workspaceffdikzjktx12dbo2 Created container mkdir-workspaceffdikzjktx12dbo2
1s Normal Started pod/mkdir-workspaceffdikzjktx12dbo2 Started container mkdir-workspaceffdikzjktx12dbo2
1s Normal Scheduled pod/workspaceffdikzjktx12dbo2.che-plugin-broker Successfully assigned che/workspaceffdikzjktx12dbo2.che-plugin-broker to <VM-name>025.<fqdn>
1s Normal Pulling pod/workspaceffdikzjktx12dbo2.che-plugin-broker Pulling image "nadir88/che-init-plugin-broker:nightly"
1s Normal Pulled pod/workspaceffdikzjktx12dbo2.che-plugin-broker Successfully pulled image "nadir88/che-init-plugin-broker:nightly"
1s Normal Created pod/workspaceffdikzjktx12dbo2.che-plugin-broker Created container che-init-plugin-broker-nightly
1s Normal Started pod/workspaceffdikzjktx12dbo2.che-plugin-broker Started container che-init-plugin-broker-nightly
1s Normal Pulling pod/workspaceffdikzjktx12dbo2.che-plugin-broker Pulling image "nadir88/che-unified-plugin-broker:nightly"
1s Normal Pulled pod/workspaceffdikzjktx12dbo2.che-plugin-broker Successfully pulled image "nadir88/che-unified-plugin-broker:nightly"
1s Normal Created pod/workspaceffdikzjktx12dbo2.che-plugin-broker Created container che-unified-plugin-broker-nightly
2s Normal Started pod/workspaceffdikzjktx12dbo2.che-plugin-broker Started container che-unified-plugin-broker-nightly
1s Normal Scheduled pod/mkdir-workspaceffdikzjktx12dbo2 Successfully assigned che/mkdir-workspaceffdikzjktx12dbo2 to <VM-name>017.<fqdn>
1s Normal Pulling pod/mkdir-workspaceffdikzjktx12dbo2 Pulling image "centos:centos7"
1s Normal Pulled pod/mkdir-workspaceffdikzjktx12dbo2 Successfully pulled image "centos:centos7"
1s Normal Created pod/mkdir-workspaceffdikzjktx12dbo2 Created container mkdir-workspaceffdikzjktx12dbo2
1s Normal Started pod/mkdir-workspaceffdikzjktx12dbo2 Started container mkdir-workspaceffdikzjktx12dbo2
2s Normal CREATE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
2s Normal CREATE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
18s Normal CREATE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
2s Normal CREATE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
0s Normal CREATE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
..
1s Normal UPDATE ingress/ingress57febwxx Ingress che/ingress57febwxx
2s Normal UPDATE ingress/ingress6qg1dd74 Ingress che/ingress6qg1dd74
1s Normal ScalingReplicaSet deployment/workspaceffdikzjktx12dbo2.go-cli Scaled up replica set workspaceffdikzjktx12dbo2.go-cli-96d848845 to 1
1s Normal SuccessfulCreate replicaset/workspaceffdikzjktx12dbo2.go-cli-96d848845 Created pod: workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz
1s Normal Scheduled pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Successfully assigned che/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz to <VM-name>025.<fqdn>
2s Normal UPDATE ingress/ingressr5tdm92r Ingress che/ingressr5tdm92r
2s Normal UPDATE ingress/ingressr5tdm92r Ingress che/ingressr5tdm92r
1s Normal Pulling pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Pulling image "eclipse/che-theia-endpoint-runtime-binary:7.3.1"
3s Normal UPDATE ingress/ingressrxa7sfiy Ingress che/ingressrxa7sfiy
3s Normal UPDATE ingress/ingressrxa7sfiy Ingress che/ingressrxa7sfiy
3s Normal UPDATE ingress/ingress57febwxx Ingress che/ingress57febwxx
3s Normal UPDATE ingress/ingress57febwxx Ingress che/ingress57febwxx
1s Normal Pulled pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Successfully pulled image "eclipse/che-theia-endpoint-runtime-binary:7.3.1"
1s Normal Created pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Created container remote-runtime-injectortsr
1s Normal Started pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Started container remote-runtime-injectortsr
1s Normal Pulling pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Pulling image "<private registry>/docker/eclipse/che-golang-1.12:7.3.1"
1s Normal Pulled pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Successfully pulled image "<private registry>/docker/eclipse/che-golang-1.12:7.3.1"
2s Normal Created pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Created container go-cli
1s Normal Started pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Started container go-cli
1s Normal Pulling pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Pulling image "<private registry>/docker/eclipse/che-machine-exec:7.3.1"
1s Normal Pulled pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Successfully pulled image "<private registry>/docker/eclipse/che-machine-exec:7.3.1"
1s Normal Created pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Created container che-machine-execfi4
1s Normal Started pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Started container che-machine-execfi4
1s Normal Pulling pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Pulling image "<private registry>/docker/eclipse/che-theia:7.3.1"
1s Normal Pulled pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Successfully pulled image "<private registry>/docker/eclipse/che-theia:7.3.1"
1s Normal Created pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Created container theia-ideeul
1s Normal Started pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Started container theia-ideeul
1s Normal Pulling pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Pulling image "<private registry>/docker/eclipse/che-remote-plugin-go-1.12.9:7.3.1"
1s Normal Pulled pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Successfully pulled image "<private registry>/docker/eclipse/che-remote-plugin-go-1.12.9:7.3.1"
1s Normal Created pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Created container vscode-godny
1s Normal Started pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Started container vscode-godny
1s Normal DELETE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
1s Normal DELETE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
1s Normal DELETE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
2s Normal DELETE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
18s Normal DELETE ingress/ingress2kks0ak1 Ingress che/ingress2kks0ak1
...
18s Normal DELETE ingress/ingressxre29ylz Ingress che/ingressxre29ylz
1s Normal ScalingReplicaSet deployment/workspaceffdikzjktx12dbo2.go-cli Scaled down replica set workspaceffdikzjktx12dbo2.go-cli-96d848845 to 0
1s Normal Killing pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Stopping container vscode-godny
1s Normal SuccessfulDelete replicaset/workspaceffdikzjktx12dbo2.go-cli-96d848845 Deleted pod: workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz
1s Normal Killing pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Stopping container theia-ideeul
1s Normal Killing pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Stopping container che-machine-execfi4
1s Normal Killing pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Stopping container go-cli
1s Normal Killing pod/workspaceffdikzjktx12dbo2.go-cli-96d848845-fcbqz Stopping container go-cli
Hello, this issue is quite important and blocking for us. We would greatly appreciate a quick feedback :)
@NM4 Could you provide more info on how did you deploy Che? Chectl, What are options? Che-operator, What is CheCluster CR?
I assume you have like 5 minute before you get Server 'theia' is not available error.
After all the containers are started, could you manually fetch theia ingress and open it directly in browser? Is this page available? What do you see there?
Exactly ! I have about 5 minutes and I see that all containers are started. I get two messages the first is 502 Bad Gateway and the second is Cannot GET /(.*)
I deployed che 7.3.1 with Helm only. I tried che 7.3.0 whith chectl and helm without success too.
@NM4 Seems the issues you face caused by metallb, by Default Che are configured to use Nginx Ingress Controller for exposing public services, like che-server, keyacloak, theia.
Could you provide Ingresses(full Yaml configuration) for Che Server and theia?
The Che Server ingress :
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
field.cattle.io/publicEndpoints: >'[
{"addresses":["","","","","",""],
"port":443,
"protocol":"HTTPS",
"serviceName":"che:che-host",
"ingressName":"che:che-ingress",
"hostname":"**che-che.dns-name**",
"path":"/",
"allNodes":false
}]'
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-connect-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
creationTimestamp: "2019-10-31T06:54:09Z"
generation: 1
labels:
io.cattle.field/appId: che
name: che-ingress
namespace: che
resourceVersion: "32827623"
selfLink: /apis/extensions/v1beta1/namespaces/che/ingresses/che-ingress
uid: aeac0c5e-5443-489e-9e5a-c08336f3d9dc
spec:
rules:
- host: che-che.<fqdn>
http:
paths:
- backend:
serviceName: che-host
servicePort: 8080
path: /
tls:
- hosts:
- che-che.<fqdn>
secretName: common-ssl-crt
status:
loadBalancer:
ingress:
- hostname: vm1.dns-name
- hostname: vm2.dns-name
- hostname: vm3.dns-name
- hostname: vm4.dns-name
- hostname: vm5.dns-name
- hostname: vm6.dns-name
Theia Ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
field.cattle.io/publicEndpoints: >'[
{"addresses":["","","","","",""],
"port":443,
"protocol":"HTTPS",
"serviceName":"che:serverp12xsau8-go-cli",
"ingressName":"che:ingressfvv4q5j0",
"hostname":"serverp12xsau8-go-cli-server-8080.fqdn",
"path":"/(.*)",
"allNodes":false}]'
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/ssl-redirect: "true"
org.eclipse.che.machine.name: go-cli
org.eclipse.che.server.8080/tcp.attributes: '{}'
org.eclipse.che.server.8080/tcp.port: 8080/tcp
org.eclipse.che.server.8080/tcp.protocol: https
creationTimestamp: "2019-10-31T14:46:22Z"
generation: 1
labels:
che.original_name: serverp12xsau8-go-cli-server-8080
che.workspace_id: workspaceffdikzjktx12dbo2
name: ingressfvv4q5j0
namespace: che
resourceVersion: "32989110"
selfLink: /apis/extensions/v1beta1/namespaces/che/ingresses/ingressfvv4q5j0
uid: 25b23eaf-128e-4844-870a-d0da52e726ab
spec:
rules:
- host: serverp12xsau8-go-cli-server-8080.fqdn
http:
paths:
- backend:
serviceName: serverp12xsau8-go-cli
servicePort: server-8080
path: /(.*)
tls:
- hosts:
- serverp12xsau8-go-cli-server-8080.fqdn
secretName: common-ssl-crt
status:
loadBalancer:
ingress:
- hostname: vm.fqdn
- hostname: vm.fqdn
- hostname: vm.fqdn
- hostname: vm.fqdn
- hostname: vm.fqdn
- hostname: vm.fqdn
fqdn are correct DNS entries
The che ingress works fine, I can access che server from other machine. The dns-nae is a wildcard dns correctly configured on our DNS server and has a routable IP adress that is allocated by metllb.
In the cluster, the ingress controller is Nginx 0.25.1
Are io.cattle.field related fields (labels and annotations) provisioned automatically or you put them there manually? I assume Theia Ingress does not have them.
I used Rancher Catalog, it's Rancher Helm that add these annotations ...
Possible duplicate of https://github.com/eclipse/che/issues/14781
Then maybe "path":"/", vs "path":"/(.*)" in field.cattle.io/publicEndpoints causes an issue.
And it may be caused by nginx.ingress.kubernetes.io/rewrite-target: /$1 that is in Theia ingress but is missing in Che Server Ingress.
@metlos Could you remind why we need rewrite-target for multi-host servers strategy?
@sleshchenko If you prefer, I can redeploy Che with chectl. I can doit quite easily.
Are the two errors in theia logs at startup "acceptable" ?
.
.. root ERROR Uncaught Exception: [object Object] ... root ERROR Failed to load plugin dependencies from '/plugins/sidecars' path Error: ENOENT: no such file or directory, open '/plugins/sidecars/package.json' ...
@NM4 Not sure, but I believe if it was caused but this - you would get another error but not
I get two messages the first is 502 Bad Gateway and the second is Cannot GET /(.*)
Maybe I may be wrong. @evidolob @mmorhun Do you have some idea?
I redeployed Che with chectl with the same templates that I used with Helm. This time I get che-remote-plugin-go-1.12.9:7.3.1 in CrashLoopBack.
@NM4 could you please try to start a workspace without remote plugins? For example (the simplest case):
metadata:
name: wksp-test
components:
- id: eclipse/che-theia/7.3.1
type: cheEditor
apiVersion: 1.0.0
@NM4 If Mykola example does not work as well, I would like to ask you to patch helm chart a bit. Remove rewrite target from workspace ingresses. This line https://github.com/eclipse/che/blob/7.3.1/deploy/kubernetes/helm/che/templates/configmap.yaml should be updated to
CHE_INFRA_KUBERNETES_INGRESS_ANNOTATIONS__JSON: '{"kubernetes.io/ingress.class": "nginx", "kubernetes.io/tls-acme": "true","{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/ssl-redirect": "true","{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-connect-timeout": "3600","{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout": "3600"}'
Maybe it would be easier for you edit config map on already deployed che ->
kubectl edit configmap che -n che
// remove nginx.ingress.kubernetes.io/rewrite-target": "/$1",
and then to apply changed configuration
kubectl rollout restart deployment/che
@mmorhun here after, che-server logs after workspace creation as described :
Che Server Logs
``` 2019-11-01 10:29:14,907[nio-8080-exec-5] [INFO ] [o.e.c.a.w.s.WorkspaceManager 347] - Workspace 'workspace6oarr4t6m9owwffs' removed by user 'che' 2019-11-01 10:29:36,450[nio-8080-exec-4] [INFO ] [o.e.c.a.w.s.WorkspaceManager 560] - Workspace 'che/wksp-q2y6' with id 'workspaceauqzupbr66ezsir8' created by user 'che' 2019-11-01 10:30:28,060[nio-8080-exec-3] [DEBUG] [e.EnvVarEnvironmentProvisioner 44] - Provisioning environment variables for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,061[nio-8080-exec-3] [DEBUG] [e.EnvVarEnvironmentProvisioner 54] - Environment variables provisioning done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,061[nio-8080-exec-3] [DEBUG] [w.s.s.p.MachineNameProvisioner 36] - Provisioning machine names for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,073[nio-8080-exec-3] [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 432] - Starting workspace 'che/wksp-test' with id 'workspaceauqzupbr66ezsir8' by user 'che' 2019-11-01 10:30:28,077[aceSharedPool-1] [DEBUG] [.k.w.SidecarToolingProvisioner 69] - Started sidecar tooling provisioning workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,082[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 122] - Start provisioning Kubernetes environment for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,083[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 125] - Provisioning logs volume for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,083[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 130] - Provisioning servers & env vars converters for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,083[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 149] - Provisioning PVC strategy for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,084[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 170] - PVC strategy provisioning done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,085[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 138] - Provisioning environment items for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,092[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 151] - Provisioning Kubernetes environment done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,092[aceSharedPool-1] [DEBUG] [.c.w.i.k.w.PluginBrokerManager 119] - Entering plugin brokers deployment chain workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,092[aceSharedPool-1] [DEBUG] [c.w.i.k.w.b.ListenBrokerEvents 60] - Subscribing broker events listener for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,092[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 183] - Preparing PVC started for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:28,099[aceSharedPool-1] [DEBUG] [e.c.w.i.k.n.p.PVCSubPathHelper 110] - Preparing PVC `claim-che-workspace` for workspace `workspaceauqzupbr66ezsir8`. Directories to create: [workspaceauqzupbr66ezsir8/che-logs-che-plugin-broker/, workspaceauqzupbr66ezsir8/plugins/] 2019-11-01 10:30:31,271[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 218] - Preparing PVC done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:31,272[aceSharedPool-1] [DEBUG] [o.e.c.w.i.k.w.b.DeployBroker 77] - Starting brokers pod for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:31,374[aceSharedPool-1] [DEBUG] [o.e.c.w.i.k.w.b.DeployBroker 105] - Brokers pod is created for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:31,374[aceSharedPool-1] [DEBUG] [e.c.w.i.k.w.b.WaitBrokerResult 63] - Trying to get brokers result for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,931[aceSharedPool-1] [DEBUG] [.k.w.SidecarToolingProvisioner 85] - Finished sidecar tooling provisioning workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,931[aceSharedPool-1] [DEBUG] [e.EnvVarEnvironmentProvisioner 44] - Provisioning environment variables for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,932[aceSharedPool-1] [DEBUG] [e.EnvVarEnvironmentProvisioner 54] - Environment variables provisioning done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,932[aceSharedPool-1] [DEBUG] [w.s.s.p.MachineNameProvisioner 36] - Provisioning machine names for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,932[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 122] - Start provisioning Kubernetes environment for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,932[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 125] - Provisioning logs volume for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,932[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 130] - Provisioning servers & env vars converters for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,939[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 149] - Provisioning PVC strategy for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,940[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 170] - PVC strategy provisioning done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,941[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 138] - Provisioning environment items for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,944[aceSharedPool-1] [DEBUG] [etesEnvironmentProvisionerImpl 151] - Provisioning Kubernetes environment done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,944[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 197] - Provisioning of workspace 'workspaceauqzupbr66ezsir8' completed. 2019-11-01 10:30:41,944[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 183] - Preparing PVC started for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:41,950[aceSharedPool-1] [DEBUG] [e.c.w.i.k.n.p.PVCSubPathHelper 110] - Preparing PVC `claim-che-workspace` for workspace `workspaceauqzupbr66ezsir8`. Directories to create: [workspaceauqzupbr66ezsir8/che-logs-che-workspace-pod/, workspaceauqzupbr66ezsir8/plugins/, workspaceauqzupbr66ezsir8/projects/] 2019-11-01 10:30:45,762[aceSharedPool-1] [DEBUG] [.c.w.i.k.n.p.CommonPVCStrategy 218] - Preparing PVC done for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:30:45,925[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 767] - Ingresses created for workspace 'workspaceauqzupbr66ezsir8'. Wait them to be ready. 2019-11-01 10:31:06,775[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 785] - Ingresses creation for workspace 'workspaceauqzupbr66ezsir8' done. 2019-11-01 10:31:06,832[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 667] - Begin pods creation for workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:31:06,951[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 671] - Creating pod 'workspaceauqzupbr66ezsir8.che-workspace-pod' in workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:31:06,951[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 698] - Creating machine 'che-machine-execs2f' in workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:31:06,956[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 698] - Creating machine 'theia-idehki' in workspace 'workspaceauqzupbr66ezsir8'2019-11-01 10:31:06,964[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 684] - Pods creation finished in workspace 'workspaceauqzupbr66ezsir8'2019-11-01 10:31:07,098[aceSharedPool-1] [DEBUG] [.i.k.KubernetesInternalRuntime 329] - Waiting to start machines of workspace 'workspaceauqzupbr66ezsir8'2019-11-01 10:31:18,259[ineSharedPool-4] [DEBUG] [.i.k.KubernetesInternalRuntime 395] - Performing servers check for machine 'che-machine-execs2f' in workspace 'workspaceauqzupbr66ezsir8'2019-11-01 10:31:18,259[ineSharedPool-5] [DEBUG] [.i.k.KubernetesInternalRuntime 395] - Performing servers check for machine 'theia-idehki' in workspace 'workspaceauqzupbr66ezsir8'2019-11-01 10:31:18,260[ineSharedPool-4] [DEBUG] [.i.k.KubernetesInternalRuntime 404] - Servers checks done for machine 'che-machine-execs2f' in workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:34:18,793[aceSharedPool-1] [WARN ] [.i.k.KubernetesInternalRuntime 241] - Failed to start Kubernetes runtime of workspace workspaceauqzupbr66ezsir8. Cause: Server 'theia' in container 'theia-idehki' not available. 2019-11-01 10:34:18,795[ServersChecker] [DEBUG] [.i.k.KubernetesInternalRuntime 404] - Servers checks done for machine 'theia-idehki' in workspace 'workspaceauqzupbr66ezsir8' 2019-11-01 10:34:19,348[aceSharedPool-1] [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 854] - Workspace 'che:wksp-test' with id 'workspaceauqzupbr66ezsir8' start failed ```
@NM4 thanks for testing. From the logs, seems the remote plugins mechanism is not the root cause of the issue and the problem is, probably, in endpoints accessibility. Once I had some strange behaviour with routes and the cause was wrong userland proxy option. @sleshchenko is it possibly a case in this situation?