Commit Graph

540 Commits (9abfec7c5fbf964ccae93eb4e4487efb54db59ff)

Author SHA1 Message Date
Vladyslav Zhukovskyi 87131e59c8 Fix typo 2018-01-24 18:00:16 +02:00
Max Shaposhnik 2902fc75a4
Refactor remaining everrest websocket endpoints to use Json RPC (#8388) 2018-01-24 16:17:00 +02:00
Roman Iuvshyn e5c3d094ed
Fix kc deploy on openshift (#8366)
* Improve deploy CHE multi-user to openshift
2018-01-23 18:09:08 +02:00
Mykhailo Kuznietsov 03e1969339
Fix CHE_DATABASE env. var to point at proper database path (#8367) 2018-01-22 09:19:40 +02:00
James Drummond PE 047d4e9fb2
Fix remove project. (#8358)
Signed-off-by: James Drummond <james@devcomb.com>
2018-01-19 07:47:25 -06:00
Oleksandr Garagatyi 7d5dc07b19 CHE-8350: fix placement of workspace files storage on container host
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-19 13:52:31 +02:00
Roman Iuvshyn 3f6ec24c9a
fix ocp.sh deploy with custom CLI image (#8363) 2018-01-19 12:49:03 +02:00
James Drummond PE ffcb75ef12
Cleanup and Roll Update not working. (#8357)
Cleanup and Roll Update not working due to PR #8158 exiting if existing project is not found. Moved command checking above project creation/check so that these commands can execute before scripts exits when it finds that project with the same name exists. (#8357)

Signed-off-by: James Drummond <james@devcomb.com>
2018-01-18 11:00:25 -06:00
James Drummond PE d540555c5e
Allow removal of existing Openshift projects using ocp.sh script. (#8158)
Allow removal of existing Openshift projects using ocp.sh script.

Signed-off-by: James Drummond <james@devcomb.com>
2018-01-18 09:30:38 -06:00
Roman Iuvshyn 9ac0896032
add test for DNS providers in ocp.sh and use backup if default doesn't work (#8332)
* add test for DNS providers in ocp.sh and use backup if default does not work
2018-01-18 14:11:14 +02:00
Sergii Kabashniuk 2cac9c5374
Sync JAVA_OPTS of workspace master between docker and openshift config (#8321) 2018-01-18 09:30:31 +02:00
James Drummond PE 6636d7e4c2
Allow user to use local scripts and configuration files in lieu of generated when using openshift ocp.sh script. (#8156)
* Allow user to local scripts and configuration files in lieu of generated.

Signed-off-by: James Drummond <james@devcomb.com>
2018-01-17 10:13:42 -06:00
James Drummond PE 3d1e4c8fdb
Allow Openshift deploy_che.sh script to detect if project deletion is completed and new project successfully created. (#8159)
Allow Openshift deploy_che.sh script to detect if project deletion is completed and new project successfully created.

Signed-off-by: James Drummond <james@devcomb.com>
2018-01-17 10:12:23 -06:00
Mykhailo Kuznietsov b9d811968c
Fix moving database to new path (#8307) 2018-01-17 10:29:11 +02:00
Oleksandr Garagatyi 5466e48cbd
Cleanup unused properties (#8309) 2018-01-16 18:18:19 +02:00
James Drummond PE 4b0e2da8f8
Openshift ocp fails due to livenessProbe. (#8263)
The livenessProbe's failureThreshold is set to low. This causes the livenessProbe having to short a period of probing before it fails and removes the container. The failureThreshold is set to 4, the initialDelaySeconds is set to 5 and the periodSeconds is 5. This means 5s+4x5s=25s before the container fails. This patch set failureThreshold higher to 11 allowing for a more reasonable overall probe time of 60s (5s+11x5s=60s) before fails and removes the container.

Signed-off-by: James Drummond <james@devcomb.com>
2018-01-15 10:23:57 -06:00
James Drummond PE a0d0adefcf
Set default value of export CHE_INFRA_OPENSHIFT_MASTER__URL to OPENSHIFT_ENDPOINT if CHE_INFRA_OPENSHIFT_MASTER__URL is not set.(#8236)
Signed-off-by: James Drummond <james@devcomb.com>
2018-01-15 10:23:23 -06:00
James Drummond PE 0b17774e45
User can specify project name using openshift ocp.sh. (#8154)
Signed-off-by: James Drummond <james@devcomb.com>
2018-01-15 09:37:16 -06:00
Mykhailo Kuznietsov 3d7f1a1abf
Fix Che using different database path in different versions (#8073) 2018-01-15 10:02:12 +02:00
Roman Iuvshyn f68c92be65
Allow to override cli-image in ocp.sh (#8255)
* Allow to override cli-image in ocp.sh
2018-01-11 16:30:07 +02:00
Oleksandr Garagatyi 432e4e1365 CHE-7532: update networking comments in che.env
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-11 12:54:20 +02:00
Sergii Leshchenko 7c15c95e98
Change back `recreate` update strategy in che deployment config (#8239) 2018-01-11 11:01:40 +02:00
Eugene Ivantsov 7aaff22fcd
Make user home dir writable for OpenShift arbitrary user (#8205) 2018-01-09 10:41:29 +02:00
Roman Iuvshyn 747169b0bb
remove calling oc client in HELP in ocp.sh (#8188)
* fix ocp.sh
2018-01-05 10:37:17 +02:00
James Drummond PE 86b19864a0
Added additional common environment variables that may need to be set to CLI help menu. (#8155)
Signed-off-by: James Drummond <james@devcomb.com>
2018-01-04 15:58:11 -06:00
Sergii Leshchenko 92522f34b7
Add an ability to set CHE_INFRA_OPENSHIFT_[USERNAME|PASSWORD|TOKEN] to empty (#8129) 2018-01-04 11:56:59 +02:00
Roman Iuvshyn 71704ab3a7
RELEASE: Set next development version (#8135) 2018-01-03 14:13:25 +02:00
Roman Iuvshyn c9e06878ef
change way how to wipe config dir to not break running che on docker (#8121) 2018-01-03 10:28:04 +02:00
Max Shaposhnik 5c357bc8b2
Move image name from location to content field in dockerimage recipes (#8076) 2018-01-02 10:57:57 +02:00
Sergii Kabashniuk 5686615922
Allow overriding wsagent and maven server ram (#8023)
Removed limitation for environment variables values to be less than 255 characters.
User can set JAVA_OPTS in env variables of workspace
User can set MAVEN_OPTS in env variables of workspace
User can set CHE_WORKSPACE_WSAGENT_JAVA_OPTIONS java opts to adjust java opts of ws-agent
User can set CHE_WORKSPACE_MAVEN__SERVER__JAVA__OPTIONS java opts to adjust java opts of the maven server
Admin can set CHE_WORKSPACE_JAVA__OPTIONS to adjust default value of JAVA_OPTS of all workspaces
Admin can set CHE_WORKSPACE_MAVEN__OPTIONS to adjust default value of MAVEN_OPTS of all workspaces
Admin can set CHE_WORKSPACE_WSAGENT__JAVA__OPTIONS to adjust default value of JAVA_OPTS of all ws-agents
Admin can set CHE_WORKSPACE_MAVEN__SERVER__JAVA__OPTIONS to adjust default value of JAVA_OPTS of all maven servers
If admin will configure CHE_WORKSPACE_HTTP__PROXY this values will be used in JAVA_OPTS , MAVEN_OPTS , and jvm options for ws-agent and maven-server
che.workspace.java_options=-XX:MaxRAM=150m -XX:MaxRAMFraction=2 ...
che.workspace.maven_options=-XX:MaxRAM=150m -XX:MaxRAMFraction=2 ...
che.workspace.wsagent_java_options=-XX:MaxRAM=600m -XX:MaxRAMFraction=1 ...
che.workspace.maven_server_java_options=-XX:MaxRAM=128m -XX:MaxRAMFraction=1 ..

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2017-12-27 17:13:33 +02:00
Roman Iuvshyn 29072f2caf
Do not print CHE CLI config message if config is skipped (#8066) 2017-12-27 14:53:40 +02:00
Mykhailo Kuznietsov 93b974d1e0
Change worskpace project files storage path (#7844)
- Workspace projects are now stored in folders, named after their workspace id, rather than name,
to prevent issues with workspace renaming. Applies to Docker infrastructure only.
- Add migration, that would move workspace projects to their new location. Occurs on Che startup.
- Added configuration property to enable/disable this migration.
- Improved Workspace DAO/Manager to use pagination for methods, that return lists of workspaces
2017-12-22 15:55:28 +02:00
Eugene Ivantsov 37e77730c8
Fix indentation in docker-compose template (#8016) 2017-12-22 15:27:45 +02:00
Eugene Ivantsov c46b3e7748
OCP deployment: more ram for keycloak and housepeeking (#8014)
* Use the right protocol. Use more RAM for Keycloak. Remove unused env

* Use the right ram value
2017-12-22 10:02:46 +02:00
Eugene Ivantsov 48264ca6b6
Make it possible to update Che on OCP, including rolling update (#8002)
* Make it possible to update Che on OCP, including rolling update

* Make it possible to update Che on OCP, including rolling update
2017-12-22 08:42:50 +02:00
Max Shaposhnik 8ff1be36f5
Added support of Idenvity brokering mechanism of Keycloak for Multi-user Che 2017-12-21 17:50:03 +02:00
Florent BENOIT 7844079d4f Use messagebus instead of json rpc bus for system calls. It seems it's not yet handling RPC on that part.
Change-Id: I3e66b10708d9e72757fd424f587ff7e36c972d09
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-12-21 10:24:58 +01:00
Roman Iuvshyn 758d400e5f
Clean up after merge che6 to master (#7979) 2017-12-20 17:28:34 +02:00
Eugene Ivantsov 3da22f6247
Make sure traefik runs in an openshift workspace (#7955)
* Make sure traefik run in an openshift workspace

* Make sure traefik run in an openshift workspace
2017-12-20 09:41:07 +02:00
Roman Iuvshyn ec91a22643
Wait keycloak is booted after deploy to ocp (#7954)
* Wait keycloak is booted after deploy to ocp
2017-12-19 15:13:30 +02:00
Eugene Ivantsov ec0edba84d
make sure tomcat dir is writable when running on OpenShift (#7906) 2017-12-18 08:54:01 +02:00
Roman Iuvshyn 38b7529a47
update ocp to 3.7.0 (#7841)
* update ocp to 3.7.0
2017-12-14 17:47:27 +02:00
Roman Iuvshyn 5a6d3910b2
RELEASE: set next dev version (#7882) 2017-12-14 15:51:34 +02:00
James Drummond PE 1d12ef13f2
Added help menu to ocp.sh script. (#7851)
* Added help menu to ocp.sh script.
* Remove extra spaces in help menu.

Signed-off-by: James Drummond <james@devcomb.com>
2017-12-13 12:15:28 -06:00
Florent BENOIT 419824c9d3 Fix compilation of typescript library with breaking changes not reported to the client
like removing websocket and using RPC, moving api calls, splitting URL for exec agent and ws agent, etc.

Change-Id: Ib9ece74537afb648077fafde00921d078d8b995a
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-12-13 13:40:59 +01:00
Sergii Kabashniuk 026598d841
Optimize che-server ram usage on Docker (#7787)
Optimize che-server ram usage on Docker 
Proposal is to set container limit to 750M for both Docker and OpenShift and tune a bit GC

-XX:MaxRAMFraction=2 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true -Xms20m
Important parts

-XX:MaxRAMFraction=2 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - tels jvm to use ~ CHE_MASTER_CONTAINER_RAM/MaxRAMFraction for heap
We need some space for off-heap activity. During test I saw VmRSS of jvm ~330_000k - 350_000k.
-XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 ask GC to keep heap compact in cost of some CPU.
You can see changes in heap usage pattern in images below.
2017-12-08 18:53:27 +02:00
Anton Korneta 013d4bb058 Adds the ability to configure, pre-create subpaths for common strategy 2017-12-08 17:16:42 +02:00
Roman Iuvshyn c8778e5e03
[WIP] set correct limits for CHE pod (#7733)
* set correct limits for CHE pod
2017-12-05 18:20:38 +02:00
Roman Iuvshyn ea1b3ca341
Allow to update che server deploymentConfig (#7718)
* Allow updating che server deploymentConfig
2017-12-05 12:42:04 +02:00
Roman Iuvshyn f7907fca22
merge with master (#7712) 2017-12-04 16:36:17 +02:00