Commit Graph

260 Commits (a92c8bfe72cf50662f685c8fec12ca48c65d7cee)

Author SHA1 Message Date
Vitalii Parfonov 55ac5964dd
Set next development version (#16309)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2020-03-13 21:34:45 +02:00
Michal Vala bffe11e227
Watch and provide startup logs (workspace + broker pods) (#16126)
* collect logs first

* very very rough log watching implementation, does not even work

Signed-off-by: Michal Vala <mvala@redhat.com>

* ok this should work

Signed-off-by: Michal Vala <mvala@redhat.com>

* cleanup

Signed-off-by: Michal Vala <mvala@redhat.com>

* format

Signed-off-by: Michal Vala <mvala@redhat.com>

* simplify, get rid of custom input stream

Signed-off-by: Michal Vala <mvala@redhat.com>

* format

Signed-off-by: Michal Vala <mvala@redhat.com>

* start watching for logs later, when we know the machines we're interested in

Signed-off-by: Michal Vala <mvala@redhat.com>

* make waiting for containers to get the logs rather time based

Signed-off-by: Michal Vala <mvala@redhat.com>

* block closing only when workspace failure, reusing kubernetes threadpool... can this thing get any better?

Signed-off-by: Michal Vala <mvala@redhat.com>

* just some refactoring and cleanup

Signed-off-by: Michal Vala <mvala@redhat.com>

* and format

Signed-off-by: Michal Vala <mvala@redhat.com>

* reading log input stream moved to LogWatcher and PodLongHandler is now responsible for handling just single log messages

Signed-off-by: Michal Vala <mvala@redhat.com>

* more precise checking for log error

Signed-off-by: Michal Vala <mvala@redhat.com>

* format

Signed-off-by: Michal Vala <mvala@redhat.com>

* make it possible to start the workspace in debug mode

Signed-off-by: Michal Vala <mvala@redhat.com>

* debug mode in devfile attributes

Signed-off-by: Michal Vala <mvala@redhat.com>

* get rid of inconsistent executor in KubernetesDeployments#watchLogs method

Signed-off-by: Michal Vala <mvala@redhat.com>

* log and javadoc fixes

Signed-off-by: Michal Vala <mvala@redhat.com>

* nullcheckcs for the devfile and fix tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* better logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* add few tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* LogWatcher tests first batch

Signed-off-by: Michal Vala <mvala@redhat.com>

* remove unused imports

Signed-off-by: Michal Vala <mvala@redhat.com>

* bit reworked container logwatch

Signed-off-by: Michal Vala <mvala@redhat.com>

* fix missing license headers

Signed-off-by: Michal Vala <mvala@redhat.com>

* equals, hashCode and toString

Signed-off-by: Michal Vala <mvala@redhat.com>

* that's not probably needed

Signed-off-by: Michal Vala <mvala@redhat.com>

* review fixes, simplify code, better variable names

Signed-off-by: Michal Vala <mvala@redhat.com>

* we don't need distinct on Set

Signed-off-by: Michal Vala <mvala@redhat.com>

* add rest param to watch the workspace pod logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* fix and add tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* return when finish with watching logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* test successful ended container log watch

Signed-off-by: Michal Vala <mvala@redhat.com>

* simplify

Signed-off-by: Michal Vala <mvala@redhat.com>

* comment up

Signed-off-by: Michal Vala <mvala@redhat.com>

* tests

Signed-off-by: Michal Vala <mvala@redhat.com>

* PodLogHandlerToEventPublisherTest

Signed-off-by: Michal Vala <mvala@redhat.com>

* make debug workspace start query param lowercase

Signed-off-by: Michal Vala <mvala@redhat.com>

* hold sharedpool object in namespace/project factories

Signed-off-by: Michal Vala <mvala@redhat.com>

* watch plugin broker logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* synchroinze closing and adding container log watchers, wait before close on error

Signed-off-by: Michal Vala <mvala@redhat.com>

* synchronize new logwatch with closing

Signed-off-by: Michal Vala <mvala@redhat.com>

* add missing license header

Signed-off-by: Michal Vala <mvala@redhat.com>

* fix logwatch close test

Signed-off-by: Michal Vala <mvala@redhat.com>

* get startOptions down to broker deploy to tell wether we want to watch the logs

Signed-off-by: Michal Vala <mvala@redhat.com>

* Update infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesDeployments.java

Co-Authored-By: Angel Misevski <amisevsk@redhat.com>

* Update infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/log/LogWatcher.java

Co-Authored-By: Angel Misevski <amisevsk@redhat.com>

* review fixes

Signed-off-by: Michal Vala <mvala@redhat.com>

* aaand format

Signed-off-by: Michal Vala <mvala@redhat.com>

* timeoutes to constants

Signed-off-by: Michal Vala <mvala@redhat.com>

* remove unnecessary AtomiBoolean, synchronize creating LogWatch, and few more review fixes

Signed-off-by: Michal Vala <mvala@redhat.com>

* limit log inputstream size to be safe

Signed-off-by: Michal Vala <mvala@redhat.com>

* remove logwatch TODO, which is fixed now

Signed-off-by: Michal Vala <mvala@redhat.com>

* don't need AtomicBoolean, extra options isEmpty check, some javadoc

Signed-off-by: Michal Vala <mvala@redhat.com>

Co-authored-by: Angel Misevski <amisevsk@redhat.com>
2020-02-27 15:16:37 +01:00
Sergii Kabashniuk c88df786e1
Make embedded OAuth authentication model default for both singe and multiuser che && allow to get OAuth token with machine token (#15705)
* Make embedded OAuth authentication model default for both singe and multiuser che
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>

* Allow to get oauth tokens with machine tokens

Co-authored-by: Oleksii Kurinnyi <okurinny@redhat.com>
2020-02-25 08:13:03 +01:00
Michal Vala 0c474ad679
genclass package typo (#16099)
Signed-off-by: Michal Vala <mvala@redhat.com>
2020-02-24 12:48:22 +01:00
Mykhailo Kuznietsov c3f09baac0
[release] Bump to 7.10.0-SNAPSHOT in master branch (#16081)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2020-02-20 12:28:58 +02:00
Max Shaposhnik f2e95158ce
Update testNG to more actual version (7.0.0) 2020-02-07 12:00:28 +02:00
Vitalii Parfonov 987e484c06
Set new development version in master branch (#15880) 2020-01-30 15:38:59 +02:00
Max Shaposhnik 4705694009 fixup! fixup! Prevent session already invalidated error when logging in with different users simultaneously 2020-01-27 11:23:47 +02:00
Max Shaposhnik 925e94ed7e fixup! Prevent session already invalidated error when logging in with different users simultaneously 2020-01-27 11:20:17 +02:00
Max Shaposhnik 8718f61b3d Prevent session already invalidated error when logging in with different users simultaneously 2020-01-27 11:06:50 +02:00
Vitalii Parfonov dcf2e1ee5f
RELEASE: Set next development version (#15632) 2020-01-09 13:51:20 +02:00
Vitalii Parfonov fce1fe9e2c
RELEASE: Set next development version (#15528) 2019-12-19 11:07:35 +02:00
Max Shaposhnik ce64b1966e
Restructurize auth modules and remove reduntant one 2019-12-11 11:19:54 +02:00
Vitalii Parfonov 6cabdeff4d
RELEASE: Set next development version (#15360) 2019-11-29 10:27:33 +02:00
Lukas Krejci b2b6f5f488
User selection of the workspace namespace/project (#15040)
Enrich `RuntimeIdentity` with `infrastructureNamespace` property so that it can be used by the namespace/project factories to create/obtain appropriate namespaces for the workspaces and make use of it throughout the workspace provisioning.

Add an explicit query parameter to assign a workspace to a specific namespace, if possible, at workspace creation time.
2019-11-28 14:36:25 +01:00
Sergii Kabashniuk 6b4d751a2d
JvmService. Service that allows getting jvm heap and thread dump (#15201)
* JvmService. Service that allows getting jvm heap and thread dum
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-11-23 13:18:28 +01:00
Max Shaposhnik 11bbcf0c10
Use cached sessions behind any of the login filters 2019-11-09 09:50:54 +02:00
Vitalii Parfonov e5d31ff913
RELEASE: Set next development version (#15141) 2019-11-07 17:14:27 +02:00
Sergii Kabashniuk 3de4e7ffac
Monitoring & Tracing capability for multiple Thread pools of Che Server (#14727)
* Monitoring & Tracing capability for multiple Thread pools of Che Server
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-10-30 14:11:02 +01:00
Max Shaposhnik 9ffc1d20b5
Remove outaded agent auth filter and unused models; 2019-10-21 19:54:47 +03:00
Max Shaposhnik 02a9fe9ca4
Use newer version of Jgroups and EclipseLink to prevent PKIX errors on OCP 4.x 2019-10-21 11:49:42 +03:00
Vitalii Parfonov 41d48bf2de
RELEASE: Set next development version (#14904) 2019-10-17 15:45:06 +03:00
Max Shaposhnik a969f69946
Validation of devfiles on workspace update 2019-10-09 20:01:32 +03:00
Max Shaposhnik 720aab0051 Revert "Devfile validation via message entity provider" (#14812)
This reverts commit fc531ea015.
2019-10-08 22:29:20 +03:00
Max Shaposhnik fc531ea015
Devfile validation via message entity provider 2019-10-08 14:10:15 +03:00
Vitalii Parfonov 4e1492b08f
RELEASE: Set next development version (#14690) 2019-09-27 22:52:26 +03:00
Mykhailo Kuznietsov 1907b041c1
Remove installer registry service (#14193) 2019-09-23 12:11:33 +03:00
Igor Vinokur ce12ffbf92
Add Ssh Api methods to list of allowed requests signed with machine token (#14557)
Che-theia SSH plugin uses createPair, getPairs, removePair API methods. Since the methods are not included to the list of allowed request that can be signed with machine token, the ssh plugin doesn't work properly.
2019-09-16 11:20:02 +03:00
Sergii Kabashniuk 00eaa1a10a
Optimize PermissionChecker performance && adjust jsonrpc configuration (#13034)
* Optimize PermissionChecker performance && adjust jsonrpc configuration 
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-09-11 14:18:49 +02:00
Roman Iuvshyn 87056fe29e RELEASE: Set next development version 2019-09-05 14:54:52 +02:00
Mykhailo Kuznietsov 40ee503a05 Remove Stack service (#14078)
* Remove Che6 Stack concept

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-09-03 08:00:12 +02:00
Max Shaposhnik ba1c521e32
Allow chePlugin preferences to be string, int or boolean type 2019-08-16 15:36:17 +03:00
Vitalii Parfonov ae8fedc411
RELEASE: Set next development version (#14238) 2019-08-14 19:32:18 +03:00
Sergii Kabashniuk 1281a58652
Remove methods from /api/devfile that allow creating a workspace (#13992)
* Remove methods from /api/devfile that allow creating a workspace (#13992)

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-07-30 09:45:40 +02:00
Vitalii Parfonov 03da1e24e4
RELEASE: Set next development version (#14026) 2019-07-25 15:43:30 +03:00
Sergii Kabashniuk 79c6ec0703
Initial cleanup of che6 legacy code (#13788)
cleanup of che6 legacy code

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>

* Remove/disable GWT-related code in Java selenium E2E tests (#13829)

Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
2019-07-23 15:12:27 +02:00
Fabrice Flore-Thébault 939dfbe016 fix #13660 - Replace mentions of 'oAuth', by more accurate 'OAuth'. (See https://oauth.net/) (#13664)
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
2019-07-10 11:31:09 +02:00
Vitalii Parfonov ccc8e38823
RELEASE: Set next development version (#13711) 2019-07-05 13:08:59 +03:00
Vitalii Parfonov 385c21284d
Set version 7.0.0-rc-3.0-SNAPSHOT (rc in lowercase) (#13655)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 17:40:14 +03:00
Vitalii Parfonov 65bb7943a0
Set new version 7.0.0-RC-3.0-SNAPSHOT (#13651)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 14:02:19 +03:00
Vitalii Parfonov 70c3e5b091
RELEASE: Set next development version (#13564) 2019-06-19 12:55:16 +03:00
Lukas Krejci 7312af9fdb
Add devfile validation to /workspace/devfile endpoint (#13472)
/workspace/devfile now validates the devfile against schema and
workspace manager validates the integrity of the devfile before creating
the workspace.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-06-05 13:58:31 +02:00
Vitalii Parfonov 64129a8d44
RELEASE: Set next development version (#13460) 2019-06-03 16:28:42 +03:00
Lukas Krejci ee4461b2fd
Merge api-devfile and api-workspace together (#13417)
Merge api-devfile and api-workspace together and put the infrastructure-dependent code behind injectable interfaces.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-05-31 12:43:45 +02:00
Roman I dd1d9b5a58
switch to RC version scheme (#13424) 2019-05-28 13:52:49 +03:00
Max Shaposhnik c90a52941a
Restore account linking on newest keycloak versions
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-05-23 10:32:57 +03:00
Roman I ffb8a3e013
RELEASE: Set next development version (#13377) 2019-05-22 09:52:28 +03:00
Roman Iuvshyn 53cb2c53fa
RELEASE: Set next development version (#13264) 2019-05-05 12:24:42 -04:00
Masaki Muranaka ac56987bf3 Add `project-template` and `/installer` as machine authenticated resources.
They are used by GWT-IDE. They have no sensitive data.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-04-26 17:44:55 +09:00
Sergii Leshchenko e4e12df1be Add REST method to create a workspace from Devfile
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-24 15:33:46 +03:00