[JBoss JIRA] (JBIDE-26697) Possible memory leak during Loading projects job when using CRC
by Jeff MAURY (Jira)
[ https://issues.jboss.org/browse/JBIDE-26697?page=com.atlassian.jira.plugi... ]
Jeff MAURY commented on JBIDE-26697:
------------------------------------
No this one is probably on the IDE site and not limited to CRC.
It has been discovered with CRC because CRC wrongly exposes kubeadmin as the user to use so as you're admin on the cluster, there are a lot of projects that are accessible (OCP4 added probably lots of projects).
And for each project, we install several listeners (one per resource type) and each listener is creating a thread through okhttp
Maybe we should switch to Kubernetes events but I'm feeling it is less verbose (needs to be checked)
I think it an be reproduced on OCP3 with a cluster with lots of projects
> Possible memory leak during Loading projects job when using CRC
> ---------------------------------------------------------------
>
> Key: JBIDE-26697
> URL: https://issues.jboss.org/browse/JBIDE-26697
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.12.0.Final
> Environment: Mac 10.14.5 (18F203), Fedora 29, crstudio GA-v20190626-0604-B4591
> Reporter: Josef Kopriva
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> Exception in error log:
> {code:java}
> eclipse.buildId=12.12.0.GA-v20190626-0604-B4591
> java.version=11.0.2
> java.vendor=Oracle Corporation
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
> Framework arguments: -product com.jboss.devstudio.core.product -product com.jboss.devstudio.core.product -keyring /Users/jkopriva/.eclipse_keyring
> Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product com.jboss.devstudio.core.product -data file:/Users/jkopriva/workspace_B4591_3/ -product com.jboss.devstudio.core.product -keyring /Users/jkopriva/.eclipse_keyring
> org.eclipse.core.jobs
> Error
> Wed Jun 26 14:36:11 CEST 2019
> An internal error occurred during: "Loading projects...".
> java.lang.OutOfMemoryError: Java heap space
> at org.jboss.dmr.JSONParser.yyParse(JSONParser.java:877)
> at org.jboss.dmr.ModelNode.fromJSONString(ModelNode.java:1472)
> at com.openshift.internal.restclient.ResourceFactory.create(ResourceFactory.java:100)
> at com.openshift.internal.restclient.ResourceFactory.createInstanceFrom(ResourceFactory.java:149)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:304)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:264)
> at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:171)
> at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:160)
> at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:151)
> at com.openshift.internal.restclient.capability.resources.ProjectTemplateListCapability.getCommonTemplates(ProjectTemplateListCapability.java:53)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems$1.visit(ApplicationSourceTreeItems.java:121)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems$1.visit(ApplicationSourceTreeItems.java:1)
> at com.openshift.internal.restclient.model.KubernetesResource.accept(KubernetesResource.java:94)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems.loadTemplates(ApplicationSourceTreeItems.java:113)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceTreeItems.createChildren(ApplicationSourceTreeItems.java:61)
> at org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem.loadChildren(ObservableTreeItem.java:69)
> at org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem.load(ObservableTreeItem.java:56)
> at org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem.load(ObservableTreeItem.java:59)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.loadResources(NewApplicationWizardModel.java:247)
> at org.jboss.tools.openshift.internal.ui.wizard.common.AbstractProjectPage$3.doRun(AbstractProjectPage.java:255)
> at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26875) Baseline comparison check fails for jbosstools-server
by stephane bouchet (Jira)
[ https://issues.jboss.org/browse/JBIDE-26875?page=com.atlassian.jira.plugi... ]
stephane bouchet commented on JBIDE-26875:
------------------------------------------
Are you trying to build locally ?
on the server, there is baseline check enabled for the main build [1], but disabled only for the tests [2], see for example build https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstud...
And for the main build, baseline is correctly executed based on 4.12.Final :
10:02:36
10:02:36 [INFO]
10:02:36 [INFO] --- tycho-p2-extras-plugin:1.4.0:compare-version-with-baselines (default) @ org.jboss.tools.archives.scanner ---
10:02:36 [INFO] Fetching org.jboss.tools.archives.scanner_3.6.202.v20181011-1445.jar.pack.gz from http://download.jboss.org/jbosstools/static/photon/stable/updates/core/4.... (9.57kB)
10:02:36 [INFO] Fetching org.jboss.tools.archives.scanner_3.6.202.v20181011-1445.jar.pack.gz from http://download.jboss.org/jbosstools/static/photon/stable/updates/core/4.... (9.57kB)
[1]
09:53:01 + /qa/tools/opt/apache-maven-3.5.2//bin/mvn clean install -DskipTests -DdeployScriptDir=/mnt/hudson_workspace/workspace/jbosstools-server_master/sources -DdeploySourceFolder=/mnt/hudson_workspace/workspace/jbosstools-server_master/sources/site/target/repository -Dmaven.repo.local=/mnt/hudson_workspace/workspace/jbosstools-server_master/.repository -Dstream_jbt= -B -U -fae -e -Dstream_jbt=master -P hudson,pack200,unified.target -Dsurefire.itests.timeout=10000 -Dsurefire.timeout=10000 -DskipITests=true -DskipPrivateRequirements=false -Dmaven.test.skip=true -DskipBaselineComparison=false -DskipITests=true -Ddownload.cache.directory=/home/hudson/static_build_env/devstudio/download-cache -DJOB_NAME=jbosstools-server_master -DBUILD_NUMBER=3786 -DBUILD_TIMESTAMP=2019-09-27_07-53-00 -Djbosstools.test.jre.5=/qa/tools/opt/x86_64/jdk1.5.0_last -Djbosstools.test.jre.6=/qa/tools/opt/x86_64/jdk1.6.0_last -Djbosstools.test.jre.7=/qa/tools/opt/x86_64/jdk1.7.0_last -Djbosstools.test.jre.8=/qa/tools/opt/x86_64/jdk1.8.0_last -Djbosstools.test.jre.9=/qa/tools/opt/x86_64/jdk1.9.0_last
[2] 10:05:35 [jbosstools-server_master] $ /mnt/hudson_workspace/tools/hudson.tasks.Maven_MavenInstallation/maven-3.5.2/bin/mvn -f /mnt/hudson_workspace/workspace/jbosstools-server_master/sources/all-tests/pom.xml -DskipRevisionCheckWhenPublishing=false "-DMAVEN_FLAGS=-B -U -fae -e -Dstream_jbt=master -P hudson,pack200,unified.target -Dsurefire.itests.timeout=10000 -Dsurefire.timeout=10000 -DskipITests=true" -Ddownload.cache.directory=/home/hudson/static_build_env/devstudio/download-cache -DJOB_NAME=jbosstools-server_master -DBUILD_NUMBER=3786 -Djbosstools.test.jre.9=/qa/tools/opt/x86_64/jdk1.9.0_last -DskipPrivateRequirements=false -Djbosstools.test.jre.8=/qa/tools/opt/x86_64/jdk1.8.0_last -Djbosstools.test.jre.7=/qa/tools/opt/x86_64/jdk1.7.0_last -Djbosstools.test.jre.6=/qa/tools/opt/x86_64/jdk1.6.0_last -Djbosstools.test.jre.5=/qa/tools/opt/x86_64/jdk1.5.0_last -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -DskipBaselineComparison=true -Dmaven.repo.local=/mnt/hudson_workspace/workspace/jbosstools-server_master/.repository help:effective-pom verify -B -U -fae -e -Dstream_jbt=master -P hudson,pack200,unified.target -Dsurefire.itests.timeout=10000 -Dsurefire.timeout=10000 -DskipITests=true -Pmaximum
> Baseline comparison check fails for jbosstools-server
> -----------------------------------------------------
>
> Key: JBIDE-26875
> URL: https://issues.jboss.org/browse/JBIDE-26875
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.13.0.Final
> Reporter: Josef Kopriva
> Priority: Blocker
>
> Build in jbosstools-server fails on baseline comparison:
> mvn clean install
> {code:java}
> [INFO] --- tycho-p2-extras-plugin:1.4.0:compare-version-with-baselines (default) @ org.jboss.tools.archives.scanner ---
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] jbosstools-server 4.5.0-SNAPSHOT ................... SUCCESS [ 0.553 s]
> [INFO] archives.all 3.6.202-SNAPSHOT ...................... SUCCESS [ 0.030 s]
> [INFO] archives.plugins 3.6.202-SNAPSHOT .................. SUCCESS [ 0.022 s]
> [INFO] org.jboss.tools.archives.scanner 3.6.202-SNAPSHOT .. FAILURE [ 14.904 s]
> [INFO] org.jboss.ide.eclipse.archives.core 3.6.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.archives.ui 3.6.202-SNAPSHOT . SKIPPED
> [INFO] org.jboss.ide.eclipse.archives.jdt.integration 3.6.202-SNAPSHOT SKIPPED
> [INFO] archives.test-framework 3.6.202-SNAPSHOT ........... SKIPPED
> [INFO] org.jboss.tools.archives.reddeer 3.6.202-SNAPSHOT .. SKIPPED
> [INFO] archives.tests 3.6.202-SNAPSHOT .................... SKIPPED
> [INFO] org.jboss.ide.eclipse.archives.test 3.6.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.archives.ui.test 3.6.202-SNAPSHOT SKIPPED
> [INFO] archives.features 3.6.202-SNAPSHOT ................. SKIPPED
> [INFO] org.jboss.tools.archives.scanner.feature 3.6.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.archives.feature 3.6.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.archives.test.feature 3.6.202-SNAPSHOT SKIPPED
> [INFO] as.all 3.8.0-SNAPSHOT .............................. SKIPPED
> [INFO] as.plugins 3.8.0-SNAPSHOT .......................... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.dmr 3.8.0-SNAPSHOT ........ SKIPPED
> [INFO] org.jboss.ide.eclipse.as.wtp.core 3.8.0-SNAPSHOT ... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.management.core 3.8.0-SNAPSHOT SKIPPED
> [INFO] jmx.all 1.10.6-SNAPSHOT ............................ SKIPPED
> [INFO] jmx.plugins 1.10.6-SNAPSHOT ........................ SKIPPED
> [INFO] org.jboss.tools.jmx.core 1.10.6-SNAPSHOT ........... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.core 3.8.0-SNAPSHOT ....... SKIPPED
> [INFO] org.jboss.tools.jmx.ui 1.10.6-SNAPSHOT ............. SKIPPED
> [INFO] org.jboss.ide.eclipse.as.wtp.ui 3.8.0-SNAPSHOT ..... SKIPPED
> [INFO] org.jboss.tools.as.runtimes.integration 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.ui 3.8.0-SNAPSHOT ......... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.classpath.core 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.archives.webtools 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.classpath.ui 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.doc.user 3.8.0-SNAPSHOT ... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.ui.mbeans 3.8.0-SNAPSHOT .. SKIPPED
> [INFO] org.jboss.ide.eclipse.as.rse.core 3.8.0-SNAPSHOT ... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.rse.ui 3.8.0-SNAPSHOT ..... SKIPPED
> [INFO] org.jboss.tools.jmx.jvmmonitor.core 1.10.6-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.jmx.jvmmonitor.tools 1.10.6-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.jmx.jvmmonitor.ui 1.10.6-SNAPSHOT .. SKIPPED
> [INFO] org.jboss.ide.eclipse.as.jmx.integration 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.management.as7 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.management.eap61plus 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.management.wildfly9 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.management.wf11 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.as.catalog 3.8.0-SNAPSHOT .......... SKIPPED
> [INFO] as.test-framework 3.8.0-SNAPSHOT ................... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.reddeer 3.8.0-SNAPSHOT .... SKIPPED
> [INFO] as.tests 3.8.0-SNAPSHOT ............................ SKIPPED
> [INFO] jmx.tests 1.10.6-SNAPSHOT .......................... SKIPPED
> [INFO] org.jboss.tools.jmx.core.test 1.10.6-SNAPSHOT ...... SKIPPED
> [INFO] org.jboss.tools.as.test.core 3.8.0-SNAPSHOT ........ SKIPPED
> [INFO] as.itests 3.8.0-SNAPSHOT ........................... SKIPPED
> [INFO] org.jboss.tools.as.itests 3.8.0-SNAPSHOT ........... SKIPPED
> [INFO] org.jboss.tools.as.management.itests 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.as.ui.bot.itests 3.8.0-SNAPSHOT .... SKIPPED
> [INFO] jmx.test-framework 1.10.6-SNAPSHOT ................. SKIPPED
> [INFO] org.jboss.tools.jmx.reddeer 1.10.6-SNAPSHOT ........ SKIPPED
> [INFO] org.jboss.tools.as.jmx.ui.bot.itests 3.8.0-SNAPSHOT SKIPPED
> [INFO] as.features 3.8.0-SNAPSHOT ......................... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.serverAdapter.wtp.feature 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.archives.integration.feature 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.jmx.local 1.10.6-SNAPSHOT .......... SKIPPED
> [INFO] org.jboss.tools.jmx.jolokia 1.10.6-SNAPSHOT ........ SKIPPED
> [INFO] jmx.features 1.10.6-SNAPSHOT ....................... SKIPPED
> [INFO] org.jboss.tools.jmx.feature 1.10.6-SNAPSHOT ........ SKIPPED
> [INFO] org.jboss.ide.eclipse.as.jmx.integration.feature 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.server.rse.integration.feature 3.8.0-SNAPSHOT SKIPPED
> [INFO] org.jboss.ide.eclipse.as.feature 3.8.0-SNAPSHOT .... SKIPPED
> [INFO] org.jboss.ide.eclipse.as.test.feature 3.8.0-SNAPSHOT SKIPPED
> [INFO] wtp.all 1.3.202-SNAPSHOT ........................... SKIPPED
> [INFO] wtp.plugins 1.3.202-SNAPSHOT ....................... SKIPPED
> [INFO] org.jboss.tools.wtp.runtimes.tomcat 1.3.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.wtp.server.launchbar 1.3.202-SNAPSHOT SKIPPED
> [INFO] wtp.itests 1.3.202-SNAPSHOT ........................ SKIPPED
> [INFO] org.jboss.tools.wtp.runtimes.tomcat.itests 1.3.202-SNAPSHOT SKIPPED
> [INFO] wtp.features 1.3.202-SNAPSHOT ...................... SKIPPED
> [INFO] org.jboss.tools.wtp.runtimes.tomcat.feature 1.3.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.wtp.runtimes.tomcat.tests.feature 1.3.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.wtp.server.launchbar.feature 1.3.202-SNAPSHOT SKIPPED
> [INFO] org.jboss.tools.jmx.jolokia.test 1.10.6-SNAPSHOT ... SKIPPED
> [INFO] org.jboss.tools.jmx.ui.test 1.10.6-SNAPSHOT ........ SKIPPED
> [INFO] org.jboss.tools.jmx.test.feature 1.10.6-SNAPSHOT ... SKIPPED
> [INFO] server.site 4.5.0-SNAPSHOT ......................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 51.145 s
> [INFO] Finished at: 2019-09-27T10:35:24+02:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-p2-extras-plugin:1.4.0:compare-version-with-baselines (default) on project org.jboss.tools.archives.scanner: Only qualifier changed for (org.jboss.tools.archives.scanner/3.6.202.v20190927-0834). Expected to have bigger x.y.z than what is available in baseline (3.6.202.v20181011-1445) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR] mvn <goals> -rf :org.jboss.tools.archives.scanner
> {code}
> NOTE: baseline comparison check is disabled in jbosstools-server master build job!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26873) CRC server adapter: "CRC Pull Secret File:" label is not vertically centered
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26873?page=com.atlassian.jira.plugi... ]
André Dietisheim updated JBIDE-26873:
-------------------------------------
Summary: CRC server adapter: "CRC Pull Secret File:" label is not vertically centered (was: CRC server adapter: push secret label is not vertically centered )
> CRC server adapter: "CRC Pull Secret File:" label is not vertically centered
> -----------------------------------------------------------------------------
>
> Key: JBIDE-26873
> URL: https://issues.jboss.org/browse/JBIDE-26873
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
> Attachments: screenshot-1.png
>
>
> Steps:
> # EXEC: launch server adapter wizard for CRC
> Result:
> The wizard pops up a form where you have to indicate the CRC binary and push secret. The push secret input field and it's label are not vertically centered.
> !screenshot-1.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26873) CRC server adapter: "CRC Pull Secret File:" label is incorrectly vertically centered
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26873?page=com.atlassian.jira.plugi... ]
André Dietisheim updated JBIDE-26873:
-------------------------------------
Summary: CRC server adapter: "CRC Pull Secret File:" label is incorrectly vertically centered (was: CRC server adapter: "CRC Pull Secret File:" label is not vertically centered )
> CRC server adapter: "CRC Pull Secret File:" label is incorrectly vertically centered
> -------------------------------------------------------------------------------------
>
> Key: JBIDE-26873
> URL: https://issues.jboss.org/browse/JBIDE-26873
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
> Attachments: screenshot-1.png
>
>
> Steps:
> # EXEC: launch server adapter wizard for CRC
> Result:
> The wizard pops up a form where you have to indicate the CRC binary and push secret. The push secret input field and it's label are not vertically centered.
> !screenshot-1.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26876) Explorer: Show In > Web Console for CRC fails with "unauthorized"
by André Dietisheim (Jira)
André Dietisheim created JBIDE-26876:
----------------------------------------
Summary: Explorer: Show In > Web Console for CRC fails with "unauthorized"
Key: JBIDE-26876
URL: https://issues.jboss.org/browse/JBIDE-26876
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.13.0.AM1
Reporter: André Dietisheim
Steps:
# ASSERT: have a connection to a running crc instance
# EXEC: in Explorer: select the connection and pick *Show In > Web Console*
Result:
Browser is opened to https://api.crc.testing:6443/console. Browser then displays:
{code}
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "forbidden: User \"system:anonymous\" cannot get path \"/console\"",
"reason": "Forbidden",
"details": {
},
"code": 403
}
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26876) Explorer: Show In > Web Console for CRC fails with "unauthorized"
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26876?page=com.atlassian.jira.plugi... ]
André Dietisheim updated JBIDE-26876:
-------------------------------------
Fix Version/s: 4.13.0.Final
> Explorer: Show In > Web Console for CRC fails with "unauthorized"
> -----------------------------------------------------------------
>
> Key: JBIDE-26876
> URL: https://issues.jboss.org/browse/JBIDE-26876
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> Steps:
> # ASSERT: have a connection to a running crc instance
> # EXEC: in Explorer: select the connection and pick *Show In > Web Console*
> Result:
> Browser is opened to https://api.crc.testing:6443/console. Browser then displays:
> {code}
> {
> "kind": "Status",
> "apiVersion": "v1",
> "metadata": {
>
> },
> "status": "Failure",
> "message": "forbidden: User \"system:anonymous\" cannot get path \"/console\"",
> "reason": "Forbidden",
> "details": {
>
> },
> "code": 403
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26876) Explorer: Show In > Web Console for CRC fails with "unauthorized"
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26876?page=com.atlassian.jira.plugi... ]
André Dietisheim reassigned JBIDE-26876:
----------------------------------------
Assignee: André Dietisheim
> Explorer: Show In > Web Console for CRC fails with "unauthorized"
> -----------------------------------------------------------------
>
> Key: JBIDE-26876
> URL: https://issues.jboss.org/browse/JBIDE-26876
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> Steps:
> # ASSERT: have a connection to a running crc instance
> # EXEC: in Explorer: select the connection and pick *Show In > Web Console*
> Result:
> Browser is opened to https://api.crc.testing:6443/console. Browser then displays:
> {code}
> {
> "kind": "Status",
> "apiVersion": "v1",
> "metadata": {
>
> },
> "status": "Failure",
> "message": "forbidden: User \"system:anonymous\" cannot get path \"/console\"",
> "reason": "Forbidden",
> "details": {
>
> },
> "code": 403
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26869) CRC server adapter: OpenShift connection that is created is unusable at times
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26869?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26869 at 9/27/19 4:55 AM:
-------------------------------------------------------------------
interestingly, Eclipse is using a hostname that differs from what the crc binary would output when doing crc console:
It opens up a web browser pointing to *https://console-openshift-console.apps-crc.testing* while Eclipse is using https://api.crc.testing
was (Author: adietish):
interestingly, Eclipse is using a hostname that differs from what the crc binary would output when doing *crc console*:
It opens up a web browser pointing to *https://console-openshift-console.apps-crc.testing* while Eclipse is using *https://api.crc.testing*
> CRC server adapter: OpenShift connection that is created is unusable at times
> -----------------------------------------------------------------------------
>
> Key: JBIDE-26869
> URL: https://issues.jboss.org/browse/JBIDE-26869
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: Rob Stryker
> Priority: Critical
> Fix For: 4.13.0.Final
>
> Attachments: crc-connection-error.mp4
>
>
> *Steps* - not reproducibe at 100%, happens from time to time:
> # ASSERT: have ~/.crc folder killed
> # EXEC: create new CRC server adapter & Start it
> # ASSERT: OpenShift connection is created
> *Result:*
> Connection fails to authorize, reports that it cannot access resources using system:anonymous. Refreshing the connection doesn't help, so it's apparently not a timing issue (ex. creating the connection before the cluster is fully up and running)
> {code}
> com.openshift.restclient.authorization.ResourceForbiddenException: forbidden: User "system:anonymous" cannot get path "/oauth/authorize" forbidden: User "system:anonymous" cannot get path "/oauth/authorize"
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:111)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:66)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.tryAuth(OpenShiftAuthenticator.java:109)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.authenticate(OpenShiftAuthenticator.java:62)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.kt:213)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:102)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:55)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.DefaultClient.request(DefaultClient.java:315)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:307)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
> at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:423)
> at com.openshift.internal.restclient.authorization.AuthorizationContext.isAuthorized(AuthorizationContext.java:63)
> at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:237)
> at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:226)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureOpenshift(ConfigureCRCFrameworksListener.java:102)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureFrameworks(ConfigureCRCFrameworksListener.java:73)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener$1.run(ConfigureCRCFrameworksListener.java:66)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26869) CRC server adapter: OpenShift connection that is created is unusable at times
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26869?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26869:
------------------------------------------
interestingly, Eclipse is using a hostname that differs from what the crc binary would output when doing *crc console*:
It opens up a web browser pointing to *https://console-openshift-console.apps-crc.testing* while Eclipse is using *https://api.crc.testing*
> CRC server adapter: OpenShift connection that is created is unusable at times
> -----------------------------------------------------------------------------
>
> Key: JBIDE-26869
> URL: https://issues.jboss.org/browse/JBIDE-26869
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: Rob Stryker
> Priority: Critical
> Fix For: 4.13.0.Final
>
> Attachments: crc-connection-error.mp4
>
>
> *Steps* - not reproducibe at 100%, happens from time to time:
> # ASSERT: have ~/.crc folder killed
> # EXEC: create new CRC server adapter & Start it
> # ASSERT: OpenShift connection is created
> *Result:*
> Connection fails to authorize, reports that it cannot access resources using system:anonymous. Refreshing the connection doesn't help, so it's apparently not a timing issue (ex. creating the connection before the cluster is fully up and running)
> {code}
> com.openshift.restclient.authorization.ResourceForbiddenException: forbidden: User "system:anonymous" cannot get path "/oauth/authorize" forbidden: User "system:anonymous" cannot get path "/oauth/authorize"
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:111)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:66)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.tryAuth(OpenShiftAuthenticator.java:109)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.authenticate(OpenShiftAuthenticator.java:62)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.kt:213)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:102)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:55)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.DefaultClient.request(DefaultClient.java:315)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:307)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
> at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:423)
> at com.openshift.internal.restclient.authorization.AuthorizationContext.isAuthorized(AuthorizationContext.java:63)
> at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:237)
> at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:226)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureOpenshift(ConfigureCRCFrameworksListener.java:102)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureFrameworks(ConfigureCRCFrameworksListener.java:73)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener$1.run(ConfigureCRCFrameworksListener.java:66)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26869) CRC server adapter: OpenShift connection that is created is unusable at times
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26869?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26869 at 9/27/19 4:48 AM:
-------------------------------------------------------------------
weird enough, when this happens, a connection using the ip *https://<IP>:6444* works while connecting using the hostname *https://crc.api.testing:6443* fails. After some time though, connecting to the hostname starts working.
was (Author: adietish):
weird enough, when this happens, in Eclipse a connection to *https://<IP>:6444* works while one that's using the hostname *https://crc.api.testing:6443* fails.
This isn't true for oc where both work:
{code}
$ oc login https://192.168.64.104:6443
Authentication required for https://192.168.64.104:6443 (openshift)
Username: developer
Password:
Login successful.
You don't have any projects. You can try to create a new project, by running
oc new-project <projectname>
$ oc login https://api.crc.testing:6443
Authentication required for https://api.crc.testing:6443 (openshift)
Username: developer
Password:
Login successful.
You don't have any projects. You can try to create a new project, by running
oc new-project <projectname>
{code}
> CRC server adapter: OpenShift connection that is created is unusable at times
> -----------------------------------------------------------------------------
>
> Key: JBIDE-26869
> URL: https://issues.jboss.org/browse/JBIDE-26869
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: Rob Stryker
> Priority: Critical
> Fix For: 4.13.0.Final
>
> Attachments: crc-connection-error.mp4
>
>
> *Steps* - not reproducibe at 100%, happens from time to time:
> # ASSERT: have ~/.crc folder killed
> # EXEC: create new CRC server adapter & Start it
> # ASSERT: OpenShift connection is created
> *Result:*
> Connection fails to authorize, reports that it cannot access resources using system:anonymous. Refreshing the connection doesn't help, so it's apparently not a timing issue (ex. creating the connection before the cluster is fully up and running)
> {code}
> com.openshift.restclient.authorization.ResourceForbiddenException: forbidden: User "system:anonymous" cannot get path "/oauth/authorize" forbidden: User "system:anonymous" cannot get path "/oauth/authorize"
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:111)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:66)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.tryAuth(OpenShiftAuthenticator.java:109)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.authenticate(OpenShiftAuthenticator.java:62)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.kt:213)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:102)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:55)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.DefaultClient.request(DefaultClient.java:315)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:307)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
> at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:423)
> at com.openshift.internal.restclient.authorization.AuthorizationContext.isAuthorized(AuthorizationContext.java:63)
> at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:237)
> at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:226)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureOpenshift(ConfigureCRCFrameworksListener.java:102)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureFrameworks(ConfigureCRCFrameworksListener.java:73)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener$1.run(ConfigureCRCFrameworksListener.java:66)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months