[jbosstools-issues] [JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)

Andre Dietisheim (JIRA) issues at jboss.org
Thu Apr 12 09:30:00 EDT 2018


    [ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560059#comment-13560059 ] 

Andre Dietisheim edited comment on JBIDE-25700 at 4/12/18 9:29 AM:
-------------------------------------------------------------------

I cannot reproduce this. Here's my rsync output:
{code}
receiving file list ... done
application.properties
logback.xml
org/
org/mycompany/
org/mycompany/Application.class
org/mycompany/MyTransformer.class
spring/
spring/camel-context.xml

sent 168 bytes  received 3702 bytes  703.64 bytes/sec
total size is 3208  speedup is 0.83
receiving file list ... done

sent 40 bytes  received 246 bytes  52.00 bytes/sec
total size is 3208  speedup is 11.22
building file list ... done
application.properties
logback.xml
META-INF/
META-INF/MANIFEST.MF
META-INF/fabric8/
META-INF/fabric8/kubernetes.json
META-INF/fabric8/kubernetes.yml
META-INF/fabric8/openshift.json
META-INF/fabric8/openshift.yml
META-INF/fabric8/kubernetes/
META-INF/fabric8/kubernetes/camel-ose-springboot-xml-deployment.yml
META-INF/fabric8/kubernetes/camel-ose-springboot-xml-svc.yml
META-INF/fabric8/openshift/
META-INF/fabric8/openshift/camel-ose-springboot-xml-deploymentconfig.yml
META-INF/fabric8/openshift/camel-ose-springboot-xml-svc.yml
META-INF/maven/
META-INF/maven/org.mycompany/
META-INF/maven/org.mycompany/camel-ose-springboot-xml/
META-INF/maven/org.mycompany/camel-ose-springboot-xml/pom.properties
META-INF/maven/org.mycompany/camel-ose-springboot-xml/pom.xml
org/mycompany/Application.class
org/mycompany/MyTransformer.class
spring/camel-context.xml

sent 29089 bytes  received 456 bytes  5371.82 bytes/sec
total size is 30797  speedup is 1.04
building file list ... done

sent 714 bytes  received 20 bytes  163.11 bytes/sec
total size is 30797  speedup is 41.96
{code}


was (Author: adietish):
I cannot reproduce this. Here's my rsync output:
{code}
building file list ... done
classes/.DS_Store
classes/application.properties
classes/logback.xml
classes/META-INF/
classes/META-INF/MANIFEST.MF
classes/META-INF/spring-devtools.properties
classes/META-INF/fabric8/
classes/META-INF/fabric8/kubernetes.json
classes/META-INF/fabric8/kubernetes.yml
classes/META-INF/fabric8/openshift.json
classes/META-INF/fabric8/openshift.yml
classes/META-INF/fabric8/kubernetes/
classes/META-INF/fabric8/kubernetes/camel-ose-springboot-xml-deployment.yml
classes/META-INF/fabric8/kubernetes/camel-ose-springboot-xml-svc.yml
classes/META-INF/fabric8/openshift/
classes/META-INF/fabric8/openshift/camel-ose-springboot-xml-deploymentconfig.yml
classes/META-INF/fabric8/openshift/camel-ose-springboot-xml-svc.yml
classes/META-INF/maven/
classes/META-INF/maven/org.mycompany/
classes/META-INF/maven/org.mycompany/camel-ose-springboot-xml/
classes/META-INF/maven/org.mycompany/camel-ose-springboot-xml/pom.properties
classes/META-INF/maven/org.mycompany/camel-ose-springboot-xml/pom.xml
classes/org/.DS_Store
classes/org/mycompany/Application.class
classes/org/mycompany/MyTransformer.class
classes/spring/camel-context.xml

sent 41670 bytes  received 528 bytes  6492.00 bytes/sec
total size is 43320  speedup is 1.03
building file list ... done
classes/.DS_Store
classes/application.properties
classes/logback.xml
classes/META-INF/
classes/META-INF/MANIFEST.MF
classes/META-INF/spring-devtools.properties
classes/META-INF/fabric8/
classes/META-INF/fabric8/kubernetes.json
classes/META-INF/fabric8/kubernetes.yml
classes/META-INF/fabric8/openshift.json
classes/META-INF/fabric8/openshift.yml
classes/META-INF/fabric8/kubernetes/
classes/META-INF/fabric8/kubernetes/camel-ose-springboot-xml-deployment.yml
classes/META-INF/fabric8/kubernetes/camel-ose-springboot-xml-svc.yml
classes/META-INF/fabric8/openshift/
classes/META-INF/fabric8/openshift/camel-ose-springboot-xml-deploymentconfig.yml
classes/META-INF/fabric8/openshift/camel-ose-springboot-xml-svc.yml
classes/META-INF/maven/
classes/META-INF/maven/org.mycompany/
classes/META-INF/maven/org.mycompany/camel-ose-springboot-xml/
classes/META-INF/maven/org.mycompany/camel-ose-springboot-xml/pom.properties
classes/META-INF/maven/org.mycompany/camel-ose-springboot-xml/pom.xml
classes/org/.DS_Store
classes/org/mycompany/Application.class
classes/org/mycompany/MyTransformer.class
classes/spring/camel-context.xml

sent 41670 bytes  received 528 bytes  9377.33 bytes/sec
total size is 43320  speedup is 1.03
building file list ... done

sent 825 bytes  received 20 bytes  187.78 bytes/sec
total size is 43320  speedup is 51.27
{code}

> Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25700
>                 URL: https://issues.jboss.org/browse/JBIDE-25700
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.5.2.Final
>            Reporter: Aurélien Pupier
>            Assignee: Andre Dietisheim
>            Priority: Critical
>              Labels: server_adapter, springboot
>             Fix For: 4.5.3.AM3
>
>
> neither with open.paas.redhat.com
> so only when using the CDK.
> it seems to be due to the fact that the user in the pod are not the same.
> Jeff said:
> {quote}
> For SpringBoot deployments, the application file is called a fat jar and it placed in the /deployments folder (images are upstream fabric8/s2i-java or imagestream redhat-openjdk18-openshift). In order to get live update the file is then unzipped to the /deployments folder leaded to new sub folders BOOT-INF and META-INF
> The user permissions on those folders are the following:
> /deployments: writable by user jboss and group root
> /deployments/BOOT-INF: writable by user jboss readable only by group root
> /deployments/META-INF: writable by user jboss readable only by group root
> The rsync process with create some sub folders under /deployments/BOOT-INF. The problem that we have is that the user that is assigned for the rsync operation (or when you open a terminal in the OpenShift console) is not jboss (as opposed to Minishift/CDK) and thus we have permissions errors during the rsync operation.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jbosstools-issues mailing list