[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Josef Kopriva (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Josef Kopriva edited comment on JBIDE-25700 at 4/12/18 12:46 PM:
-----------------------------------------------------------------
[~adietish] I have tried it with cdk with disabled anyuid for every authenticated users(need to edit Security Context Constraints in openshift) and I get exactly the same error as I get with https://open.paas.redhat.com - so it is probably related to anyuid. So it was working on cdk thanks to anyuid was enabled to all authenticated users.
was (Author: jkopriva):
[~adietish] I have tried it with cdk with disabled anyuid for every authenticated users(need to edit Security Context Constraints in openshift) and I get exactly the same error as I get with https://open.paas.redhat.com - so it is probably related to anyuid.
> 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)
7 years, 12 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Josef Kopriva (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Josef Kopriva commented on JBIDE-25700:
---------------------------------------
[~adietish] I have tried it with cdk with disabled anyuid for every authenticated users(need to edit Security Context Constraints in openshift) and I get exactly the same error as I get with https://open.paas.redhat.com - so it is probably related to anyuid.
> 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)
7 years, 12 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Jeff MAURY (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Jeff MAURY commented on JBIDE-25700:
------------------------------------
Tested on open.paas.redhat.com using fabric8/s2i-java:latest and works like a charm for me.
> 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)
7 years, 12 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-25700:
------------------------------------------
[~jkopriva] tested with the cdk disabling the any-uid addon and it still worked for him.
{quote}
I have tried it with disabled addon (also restarted minishift), but it works without issues, just checking security groups with Ondrej
{quote}
> 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)
7 years, 12 months
[JBoss JIRA] (JBIDE-25918) Minishift server adapter is not supposed to call setup-cdk
by Ondrej Dockal (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25918?page=com.atlassian.jira.plugi... ]
Ondrej Dockal reassigned JBIDE-25918:
-------------------------------------
Assignee: Ondrej Dockal (was: Rob Stryker)
> Minishift server adapter is not supposed to call setup-cdk
> ----------------------------------------------------------
>
> Key: JBIDE-25918
> URL: https://issues.jboss.org/browse/JBIDE-25918
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdk
> Affects Versions: 4.5.3.Final
> Environment: Devstudio: 11.3.0.GA-v20180412-0600-B2346
> Reporter: Ondrej Dockal
> Assignee: Ondrej Dockal
> Priority: Blocker
> Fix For: 4.5.3.Final
>
> Attachments: Minishift_setupcdk.png
>
>
> Starting of Minishift 1.7+ server adapter triggers Setup CDK job, Warning dialog pops up asking user if he wants to run setup-cdk (this makes no sense in context of minishift), but if this action is confirmed, minishift does not use such action (even do not know the command) and so error dialog is shown and adapter is not started.
> See:
> !Minishift_setupcdk.png|thumbnail!
> Console output:
> {code}
> Error: unknown command "setup-cdk" for "minishift"
> Run 'minishift --help' for usage.
> unknown command "setup-cdk" for "minishift"
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 12 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
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)
7 years, 12 months