[jbosstools-issues] [JBoss JIRA] (JBIDE-27059) Server adapter: hot-deployment of SpringBoot app upon code changes for SpringBoot is broken

André Dietisheim (Jira) issues at jboss.org
Tue Feb 18 14:18:00 EST 2020


     [ https://issues.redhat.com/browse/JBIDE-27059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

André Dietisheim updated JBIDE-27059:
-------------------------------------
    Description: 
I am using this class for testing: all source is there:
https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/application/v3/adapter/SpringBootTest.java

Everything works as expected, until I change the code, afterwards code is synching to pod, but the the log for pod is not changing accordingly to code changes.

Project:
https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/resources/fuse-on-openshift.zip

mvn parameters:
-Dkubernetes.master=https://api.openshift4-crs.crs.codereadyqe.com:6443/
-Dkubernetes.namespace=fuse-on-openshift
-Dkubernetes.auth.basic.username=xxx
-Dkubernetes.auth.basic.password=xxx
-Dfabric8.mode=openshift
-Dkubernetes.trust.certificates=true
-Dfabric8.build.strategy=s2i
-Dkubernetes.auth.tryServiceAccount=false
-Dfabric8.generator.from=fabric8/s2i-java
-Dfabric8.generator.fromMode=docker
-Dkubernetes.auth.tryKubeConfig=false

Tested in:
Red Hat CodeReady Studio
Version: 12.14.0.AM1
Build id: AM1-v20200123-0055-B5802
Build date: 20200123-0055

  was:
currently, Springboot jar projects (such as Fuse Integration Services) are rsynced with a zipped jar file.
The requirements are:
- rsync unpacked jar
- rsync without the jar name as folder
- it will will work only if springboot devtool are included (so maybe need some dialog guiding user to do i in case it is not activated)

use case "Develop SpringBoot application deployed on OpenShift as any other applications in JBoss Tools":
- there is a SpringBoot app deployed on OpenShift
- the developer want to develop evolution of the SpringBoot app
-- when he/she modifies the project, the application needs to be automatically updated on OpenShift instance
-- Remote java debug should be available when the OpenShift server adapter is in debug mode.


Steps:
# EXEC: create a project in your OpenShift server (ex. camel-ose-springboot)
# EXEC: Import project within fuse-on-openshift.zip into your workspace
# EXEC: open launch configuration and change: 
   ** -Dkubernetes.master= so that it first your cdk instance
   ** -Dkubernetes.namespace= to the name of the project that you create in step 1.
   ** -Dfabric8.generator.from=fabric8/s2i-java
# EXEC: run the launch config (that is included in the project), so that the project gets deployed to OpenShift (cdk)
# ASSERT: your project in OpenShift now contains a service **camel-ose-springboot-xml**, the pod for it is running.
# EXEC: in OpenShift Explorer: select this service and create a server adapter for it (*Server Adapter..* in the context menu for the service)
# ASSERT: server adapter is created and is *[started]*
# EXEC: in OpenShift Explorer: pick *Pod Log...* in the context menu for the pod of your service)
# ASSERT: pod log is opened in "Console" view and shows an output with random numbers in the end 
{code}
simple-route - >>> 455
simple-route - >>> 695
simple-route - >>> 935
{code}
# EXEC: In Project Explorer: open class MyTransformer and change the transform method
# ASSERT: "Console" view is opened and shows how the server adapter is publishing the MyTransformer class to the pod



> Server adapter: hot-deployment of SpringBoot app upon code changes for SpringBoot is broken
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-27059
>                 URL: https://issues.redhat.com/browse/JBIDE-27059
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: openshift
>    Affects Versions: 4.14.0.AM1
>            Reporter: Aurélien Pupier
>            Assignee: André Dietisheim
>            Priority: Major
>              Labels: openshift_v3, server_adapter
>             Fix For: 4.14.0.Final
>
>
> I am using this class for testing: all source is there:
> https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/application/v3/adapter/SpringBootTest.java
> Everything works as expected, until I change the code, afterwards code is synching to pod, but the the log for pod is not changing accordingly to code changes.
> Project:
> https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/resources/fuse-on-openshift.zip
> mvn parameters:
> -Dkubernetes.master=https://api.openshift4-crs.crs.codereadyqe.com:6443/
> -Dkubernetes.namespace=fuse-on-openshift
> -Dkubernetes.auth.basic.username=xxx
> -Dkubernetes.auth.basic.password=xxx
> -Dfabric8.mode=openshift
> -Dkubernetes.trust.certificates=true
> -Dfabric8.build.strategy=s2i
> -Dkubernetes.auth.tryServiceAccount=false
> -Dfabric8.generator.from=fabric8/s2i-java
> -Dfabric8.generator.fromMode=docker
> -Dkubernetes.auth.tryKubeConfig=false
> Tested in:
> Red Hat CodeReady Studio
> Version: 12.14.0.AM1
> Build id: AM1-v20200123-0055-B5802
> Build date: 20200123-0055



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jbosstools-issues mailing list