[JBoss JIRA] (JBIDE-25501) Installer tests doesn't work on Ubuntu with OpenJDK
by Lukáš Valach (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25501?page=com.atlassian.jira.plugi... ]
Lukáš Valach resolved JBIDE-25501.
----------------------------------
Resolution: Done
> Installer tests doesn't work on Ubuntu with OpenJDK
> ---------------------------------------------------
>
> Key: JBIDE-25501
> URL: https://issues.jboss.org/browse/JBIDE-25501
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: qa
> Affects Versions: 4.5.2.AM3
> Reporter: Lukáš Valach
> Assignee: Lukáš Valach
> Fix For: 4.5.2.AM3
>
>
> Installer tests doesn't work on Ubuntu with OpenJDK.
> Log snippet:
> {code}
> ...
> [ubuntu1710] $ /qa/tools/opt/groovy-2.4.3/bin/groovy -DuseWhiteSpace /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-installer.test/src/main/groovy/prepareJBDSInstall.groovy https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master... /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710
> Installer not found on local machine
> Attempting to download
> [get] Getting: https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master...
> [get] To: /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-11.2.0.AM2-v20171212-1017-B1750-installer-standalone.jar
> [get] Exception in thread "Thread-1" java.lang.InternalError
> [get] at sun.security.ec.SunEC.initialize(Native Method)
> [get] at sun.security.ec.SunEC.access$000(SunEC.java:49)
> [get] at sun.security.ec.SunEC$1.run(SunEC.java:61)
> [get] at sun.security.ec.SunEC$1.run(SunEC.java:58)
> [get] at java.security.AccessController.doPrivileged(Native Method)
> [get] at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
> [get] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> [get] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> [get] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> [get] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> [get] at java.lang.Class.newInstance(Class.java:442)
> [get] at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
> [get] at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
> [get] at java.security.AccessController.doPrivileged(Native Method)
> [get] at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
> [get] at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
> [get] at sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
> [get] at sun.security.jca.ProviderList.getService(ProviderList.java:331)
> [get] at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
> [get] at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
> [get] at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)
> [get] at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)
> [get] at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:332)
> [get] at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:289)
> [get] at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:85)
> [get] at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
> [get] at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
> [get] at java.net.URL.openConnection(URL.java:979)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:680)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:626)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:616)
> {code}
> ...then the installer archive isn't downloaded.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (JBIDE-25501) Installer tests doesn't work on Ubuntu with OpenJDK
by Lukáš Valach (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25501?page=com.atlassian.jira.plugi... ]
Lukáš Valach closed JBIDE-25501.
--------------------------------
> Installer tests doesn't work on Ubuntu with OpenJDK
> ---------------------------------------------------
>
> Key: JBIDE-25501
> URL: https://issues.jboss.org/browse/JBIDE-25501
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: qa
> Affects Versions: 4.5.2.AM3
> Reporter: Lukáš Valach
> Assignee: Lukáš Valach
> Fix For: 4.5.2.AM3
>
>
> Installer tests doesn't work on Ubuntu with OpenJDK.
> Log snippet:
> {code}
> ...
> [ubuntu1710] $ /qa/tools/opt/groovy-2.4.3/bin/groovy -DuseWhiteSpace /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-installer.test/src/main/groovy/prepareJBDSInstall.groovy https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master... /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710
> Installer not found on local machine
> Attempting to download
> [get] Getting: https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master...
> [get] To: /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-11.2.0.AM2-v20171212-1017-B1750-installer-standalone.jar
> [get] Exception in thread "Thread-1" java.lang.InternalError
> [get] at sun.security.ec.SunEC.initialize(Native Method)
> [get] at sun.security.ec.SunEC.access$000(SunEC.java:49)
> [get] at sun.security.ec.SunEC$1.run(SunEC.java:61)
> [get] at sun.security.ec.SunEC$1.run(SunEC.java:58)
> [get] at java.security.AccessController.doPrivileged(Native Method)
> [get] at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
> [get] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> [get] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> [get] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> [get] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> [get] at java.lang.Class.newInstance(Class.java:442)
> [get] at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
> [get] at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
> [get] at java.security.AccessController.doPrivileged(Native Method)
> [get] at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
> [get] at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
> [get] at sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
> [get] at sun.security.jca.ProviderList.getService(ProviderList.java:331)
> [get] at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
> [get] at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
> [get] at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)
> [get] at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)
> [get] at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:332)
> [get] at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:289)
> [get] at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:85)
> [get] at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
> [get] at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
> [get] at java.net.URL.openConnection(URL.java:979)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:680)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:626)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:616)
> {code}
> ...then the installer archive isn't downloaded.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (JBIDE-25501) Installer tests doesn't work on Ubuntu with OpenJDK
by Lukáš Valach (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25501?page=com.atlassian.jira.plugi... ]
Lukáš Valach commented on JBIDE-25501:
--------------------------------------
OpenJDK needs to run on system with exact version of NSS against which it has been build. As we support multiple version of Ubuntu (16.10, 17.10) we need to use multiple versions of OpenJDKs and morever, any time we update Ubuntu we also have to update OpenJDK.
So in this case we can't use single version of JDK stored on shared drive, so I separated Ubuntu-OpenJDK tests to new job \[1\].
\[1\] https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/Devstudi...
This job runs test against preinstalled OpenJDK. JDK has been installed via apt-get which ensures that OpenJDK has all dependencies they need (including NSS in appropriate version).
> Installer tests doesn't work on Ubuntu with OpenJDK
> ---------------------------------------------------
>
> Key: JBIDE-25501
> URL: https://issues.jboss.org/browse/JBIDE-25501
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: qa
> Affects Versions: 4.5.2.AM3
> Reporter: Lukáš Valach
> Assignee: Lukáš Valach
> Fix For: 4.5.2.AM3
>
>
> Installer tests doesn't work on Ubuntu with OpenJDK.
> Log snippet:
> {code}
> ...
> [ubuntu1710] $ /qa/tools/opt/groovy-2.4.3/bin/groovy -DuseWhiteSpace /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-installer.test/src/main/groovy/prepareJBDSInstall.groovy https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master... /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710
> Installer not found on local machine
> Attempting to download
> [get] Getting: https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master...
> [get] To: /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-11.2.0.AM2-v20171212-1017-B1750-installer-standalone.jar
> [get] Exception in thread "Thread-1" java.lang.InternalError
> [get] at sun.security.ec.SunEC.initialize(Native Method)
> [get] at sun.security.ec.SunEC.access$000(SunEC.java:49)
> [get] at sun.security.ec.SunEC$1.run(SunEC.java:61)
> [get] at sun.security.ec.SunEC$1.run(SunEC.java:58)
> [get] at java.security.AccessController.doPrivileged(Native Method)
> [get] at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
> [get] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> [get] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> [get] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> [get] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> [get] at java.lang.Class.newInstance(Class.java:442)
> [get] at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
> [get] at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
> [get] at java.security.AccessController.doPrivileged(Native Method)
> [get] at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
> [get] at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
> [get] at sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
> [get] at sun.security.jca.ProviderList.getService(ProviderList.java:331)
> [get] at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
> [get] at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
> [get] at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)
> [get] at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)
> [get] at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:332)
> [get] at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:289)
> [get] at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:85)
> [get] at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
> [get] at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
> [get] at java.net.URL.openConnection(URL.java:979)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:680)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:626)
> [get] at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:616)
> {code}
> ...then the installer archive isn't downloaded.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (JBIDE-25510) Server adapter: restarting into "Debug" fails on OpenShift Online
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25510?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-25510:
------------------------------------------
this depends on openshift-restclient-java [#issue 307|https://github.com/openshift/openshift-restclient-java/issues/307]
> Server adapter: restarting into "Debug" fails on OpenShift Online
> -----------------------------------------------------------------
>
> Key: JBIDE-25510
> URL: https://issues.jboss.org/browse/JBIDE-25510
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.5.2.AM2
> Reporter: Andre Dietisheim
> Priority: Critical
> Labels: openshift_v3, server_adapter
> Fix For: 4.5.2.Final
>
> Attachments: image-2017-12-14-11-29-56-975.png
>
>
> steps:
> # ASSERT: have an application running that you create from "wildfly:latest" builder image
> # ASSERT: source imported to your workspace and a server adapter for it
> # EXEC: (re-)start the adapter into "Debug"
> Result:
> !image-2017-12-14-11-29-56-975.png!
> In Eclipse log you find the following:
> {code}
> org.eclipse.core.runtime.CoreException: Could update resource wildfly.
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:385)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.updateDc(OpenShiftDebugMode.java:214)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.execute(OpenShiftDebugMode.java:169)
> at org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController.launch(OpenShiftLaunchController.java:98)
> at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
> at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3566)
> at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3502)
> at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:377)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: com.openshift.restclient.OpenShiftException: Exception trying to PUT https://console.starter-us-east-2.openshift.com/oapi/v1/namespaces/adieti... response code: 422 DeploymentConfig "wildfly" is invalid: spec.template.spec.containers[0].livenessProbe: Required value: must specify a handler type
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
> at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
> at okhttp3.RealCall.execute(RealCall.java:57)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:257)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
> at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:315)
> at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:383)
> ... 11 more
> !SUBENTRY 1 org.jboss.tools.openshift.core 4 0 2017-12-14 11:07:12.397
> !MESSAGE Could update resource wildfly.
> !STACK 0
> com.openshift.restclient.OpenShiftException: Exception trying to PUT https://console.starter-us-east-2.openshift.com/oapi/v1/namespaces/adieti... response code: 422 DeploymentConfig "wildfly" is invalid: spec.template.spec.containers[0].livenessProbe: Required value: must specify a handler type
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
> at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
> at okhttp3.RealCall.execute(RealCall.java:57)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:257)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
> at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:315)
> at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:383)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.updateDc(OpenShiftDebugMode.java:214)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.execute(OpenShiftDebugMode.java:169)
> at org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController.launch(OpenShiftLaunchController.java:98)
> at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
> at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3566)
> at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3502)
> at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:377)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (JBIDE-25510) Server adapter: restarting into "Debug" fails on OpenShift Online
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25510?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-25510 at 12/14/17 6:33 AM:
--------------------------------------------------------------------
The cause is that there's no probe in the json but the client library doesnt care and creates an empty probe object, fooling the tooling in thinking that there's a liveness probe.
was (Author: adietish):
The tooling erroneously detects an existing probe, because the json looks as follows:
{code}
{
"name" => "wildfly",
...
"livenessProbe" => undefined
}
{code}
In the json that's handled by the client library, the livenessProbe key exists but there's no value for it. Retrieving the json via oc does not show any "livenessProbe" key.
> Server adapter: restarting into "Debug" fails on OpenShift Online
> -----------------------------------------------------------------
>
> Key: JBIDE-25510
> URL: https://issues.jboss.org/browse/JBIDE-25510
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.5.2.AM2
> Reporter: Andre Dietisheim
> Priority: Critical
> Labels: openshift_v3, server_adapter
> Fix For: 4.5.2.Final
>
> Attachments: image-2017-12-14-11-29-56-975.png
>
>
> steps:
> # ASSERT: have an application running that you create from "wildfly:latest" builder image
> # ASSERT: source imported to your workspace and a server adapter for it
> # EXEC: (re-)start the adapter into "Debug"
> Result:
> !image-2017-12-14-11-29-56-975.png!
> In Eclipse log you find the following:
> {code}
> org.eclipse.core.runtime.CoreException: Could update resource wildfly.
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:385)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.updateDc(OpenShiftDebugMode.java:214)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.execute(OpenShiftDebugMode.java:169)
> at org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController.launch(OpenShiftLaunchController.java:98)
> at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
> at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3566)
> at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3502)
> at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:377)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: com.openshift.restclient.OpenShiftException: Exception trying to PUT https://console.starter-us-east-2.openshift.com/oapi/v1/namespaces/adieti... response code: 422 DeploymentConfig "wildfly" is invalid: spec.template.spec.containers[0].livenessProbe: Required value: must specify a handler type
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
> at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
> at okhttp3.RealCall.execute(RealCall.java:57)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:257)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
> at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:315)
> at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:383)
> ... 11 more
> !SUBENTRY 1 org.jboss.tools.openshift.core 4 0 2017-12-14 11:07:12.397
> !MESSAGE Could update resource wildfly.
> !STACK 0
> com.openshift.restclient.OpenShiftException: Exception trying to PUT https://console.starter-us-east-2.openshift.com/oapi/v1/namespaces/adieti... response code: 422 DeploymentConfig "wildfly" is invalid: spec.template.spec.containers[0].livenessProbe: Required value: must specify a handler type
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
> at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
> at okhttp3.RealCall.execute(RealCall.java:57)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:257)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
> at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:315)
> at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:383)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.updateDc(OpenShiftDebugMode.java:214)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.execute(OpenShiftDebugMode.java:169)
> at org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController.launch(OpenShiftLaunchController.java:98)
> at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
> at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3566)
> at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3502)
> at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:377)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (JBIDE-25510) Server adapter: restarting into "Debug" fails on OpenShift Online
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25510?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-25510:
------------------------------------------
The tooling erroneously detects an existing probe, because the json looks as follows:
{code}
{
"name" => "wildfly",
...
"livenessProbe" => undefined
}
{code}
In the json that's handled by the client library, the livenessProbe key exists but there's no value for it. Retrieving the json via oc does not show any "livenessProbe" key.
> Server adapter: restarting into "Debug" fails on OpenShift Online
> -----------------------------------------------------------------
>
> Key: JBIDE-25510
> URL: https://issues.jboss.org/browse/JBIDE-25510
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.5.2.AM2
> Reporter: Andre Dietisheim
> Priority: Critical
> Labels: openshift_v3, server_adapter
> Fix For: 4.5.2.Final
>
> Attachments: image-2017-12-14-11-29-56-975.png
>
>
> steps:
> # ASSERT: have an application running that you create from "wildfly:latest" builder image
> # ASSERT: source imported to your workspace and a server adapter for it
> # EXEC: (re-)start the adapter into "Debug"
> Result:
> !image-2017-12-14-11-29-56-975.png!
> In Eclipse log you find the following:
> {code}
> org.eclipse.core.runtime.CoreException: Could update resource wildfly.
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:385)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.updateDc(OpenShiftDebugMode.java:214)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.execute(OpenShiftDebugMode.java:169)
> at org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController.launch(OpenShiftLaunchController.java:98)
> at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
> at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3566)
> at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3502)
> at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:377)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: com.openshift.restclient.OpenShiftException: Exception trying to PUT https://console.starter-us-east-2.openshift.com/oapi/v1/namespaces/adieti... response code: 422 DeploymentConfig "wildfly" is invalid: spec.template.spec.containers[0].livenessProbe: Required value: must specify a handler type
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
> at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
> at okhttp3.RealCall.execute(RealCall.java:57)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:257)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
> at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:315)
> at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:383)
> ... 11 more
> !SUBENTRY 1 org.jboss.tools.openshift.core 4 0 2017-12-14 11:07:12.397
> !MESSAGE Could update resource wildfly.
> !STACK 0
> com.openshift.restclient.OpenShiftException: Exception trying to PUT https://console.starter-us-east-2.openshift.com/oapi/v1/namespaces/adieti... response code: 422 DeploymentConfig "wildfly" is invalid: spec.template.spec.containers[0].livenessProbe: Required value: must specify a handler type
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
> at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
> at okhttp3.RealCall.execute(RealCall.java:57)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:257)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:221)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:209)
> at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:315)
> at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.send(OpenShiftDebugMode.java:383)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.updateDc(OpenShiftDebugMode.java:214)
> at org.jboss.tools.openshift.internal.core.server.debug.OpenShiftDebugMode.execute(OpenShiftDebugMode.java:169)
> at org.jboss.tools.openshift.core.server.behavior.OpenShiftLaunchController.launch(OpenShiftLaunchController.java:98)
> at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
> at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3566)
> at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3502)
> at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:377)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months