[
https://issues.redhat.com/browse/JBIDE-27059?page=com.atlassian.jira.plug...
]
André Dietisheim updated JBIDE-27059:
-------------------------------------
Description:
Important: the demo project used for this fuse-on-openshift only works with *Java 8* (wont
with java 11).
I am using this class for testing: all source is there:
https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org...
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...
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
Steps on command line:
# EXEC: in Eclipse: create a project *fuse-on-openshift* on your OS instance (used my
local cdk 3.6)
# EXEC: download
[
fuse-on-openshift.zip|https://github.com/jbosstools/jbosstools-openshift/...]
&& unzip it
# EXEC: in the new folder: run the following command line (using OS instance in the
*kubernetes.master* parameter):
{code}
mvn clean install fabric8:deploy -Dkubernetes.master=https://192.168.64.171:8443/
-Dkubernetes.namespace=fuse-on-openshift -Dkubernetes.auth.basic.username=developer
-Dkubernetes.auth.basic.password=XXXX -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
{code}
# EXEC: import (maven) project into Eclipse
# ASSERT: in Explorer: service *camel-ose-springboot-xml-1* is visible & pod for it
running
# EXEC: in ctx menu for pod: pick "Pod Log..."
# ASSERT: pod log shows up in "Console" view, streaming the log of the pod
# EXEC: create a server adapter for it & start it
# EXEC: change class *MyTransformer.java*
# ASSERT: server adapter syncs local changes to the pod
Result:
Springboot application is *NOT* restarted, log keeps on displaying the same output, no
report of a restart is visible
was:
Important: the demo project used for this fuse-on-openshift only works with *Java 8* (wont
with java 11).
I am using this class for testing: all source is there:
https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org...
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...
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
Steps on command line:
# EXEC: in Eclipse: create a project *fuse-on-openshift* on your OS instance (used my
local cdk 3.6)
# EXEC: download
[
fuse-on-openshift.zip|https://github.com/jbosstools/jbosstools-openshift/...]
&& unzip it
# EXEC: in the new folder: run the following command line (using OS instance in the
*kubernetes.master* parameter):
{code}
mvn clean install fabric8:deploy -Dkubernetes.master=https://192.168.64.171:8443/
-Dkubernetes.namespace=fuse-on-openshift -Dkubernetes.auth.basic.username=developer
-Dkubernetes.auth.basic.password=XXXX -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
{code}
# EXEC: import (maven) project into Eclipse
# ASSERT: in Explorer: service *camel-ose-springboot-xml-1* is visible & pod for it
running
# EXEC: in ctx menu for pod: pick "Pod Log..."
# ASSERT: pod log shows up in "Console" view, streaming the log of the pod
# EXEC: create a server adapter for it & start it
# EXEC: change class *Application.java*
# ASSERT: server adapter syncs local changes to the pod
Result:
Springboot application is *NOT* restarted, log keeps on displaying the same output, no
report of a restart is visible
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: Bug
Components: openshift
Affects Versions: 4.14.0.AM1
Reporter: Josef Kopriva
Assignee: André Dietisheim
Priority: Major
Labels: openshift_v3, server_adapter
Fix For: 4.14.0.Final
Important: the demo project used for this fuse-on-openshift only works with *Java 8*
(wont with java 11).
I am using this class for testing: all source is there:
https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org...
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...
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
Steps on command line:
# EXEC: in Eclipse: create a project *fuse-on-openshift* on your OS instance (used my
local cdk 3.6)
# EXEC: download
[
fuse-on-openshift.zip|https://github.com/jbosstools/jbosstools-openshift/...]
&& unzip it
# EXEC: in the new folder: run the following command line (using OS instance in the
*kubernetes.master* parameter):
{code}
mvn clean install fabric8:deploy -Dkubernetes.master=https://192.168.64.171:8443/
-Dkubernetes.namespace=fuse-on-openshift -Dkubernetes.auth.basic.username=developer
-Dkubernetes.auth.basic.password=XXXX -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
{code}
# EXEC: import (maven) project into Eclipse
# ASSERT: in Explorer: service *camel-ose-springboot-xml-1* is visible & pod for it
running
# EXEC: in ctx menu for pod: pick "Pod Log..."
# ASSERT: pod log shows up in "Console" view, streaming the log of the pod
# EXEC: create a server adapter for it & start it
# EXEC: change class *MyTransformer.java*
# ASSERT: server adapter syncs local changes to the pod
Result:
Springboot application is *NOT* restarted, log keeps on displaying the same output, no
report of a restart is visible
--
This message was sent by Atlassian Jira
(v7.13.8#713008)