[
https://issues.jboss.org/browse/JBIDE-13217?page=com.atlassian.jira.plugi...
]
Andre Dietisheim edited comment on JBIDE-13217 at 11/30/12 5:38 PM:
--------------------------------------------------------------------
so on linux the x-perm is set correctly when the openshift application is cloned to a
local temp-directory:
{code}
[adietish@adietish-thinkpad action_hooks]$ cd /tmp/1354310977163
[adietish@adietish-thinkpad 1354310977163]$ ls
deployments pom.xml README src
[adietish@adietish-thinkpad 1354310977163]$ cd .openshift/action_hooks/
[adietish@adietish-thinkpad action_hooks]$ ls -l
total 36
-rwxrw-r-- 1 adietish adietish 265 Nov 30 22:29 build
-rwxrw-r-- 1 adietish adietish 249 Nov 30 22:29 deploy
-rwxrw-r-- 1 adietish adietish 186 Nov 30 22:29 post_deploy
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 post_start_jbossas-7
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 post_stop_jbossas-7
-rwxrw-r-- 1 adietish adietish 257 Nov 30 22:29 pre_build
-rwxrw-r-- 1 adietish adietish 272 Nov 30 22:29 pre_build_jbossas-7
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 pre_start_jbossas-7
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 pre_stop_jbossas-7
[adietish@adietish-thinkpad action_hooks]$ git log
commit 944f22d7c074ff69c4198a46fae06fe08bd452a0
Author: root <root(a)ex-std-node39.prod.rhcloud.com>
Date: Fri Nov 30 16:25:13 2012 -0500
Creating template
[adietish@adietish-thinkpad action_hooks]$
{code}
But after the files get copied to the project, they're missing.
{code}
[adietish@adietish-thinkpad runtime-OpenShift]$ cd jboss-html5-webapp/.openshift/
[adietish@adietish-thinkpad .openshift]$ ls
action_hooks config cron markers
[adietish@adietish-thinkpad .openshift]$ cd action_hooks/
[adietish@adietish-thinkpad action_hooks]$ ll
total 36
-rw-rw-r-- 1 adietish adietish 265 Nov 30 17:49 build
-rw-rw-r-- 1 adietish adietish 249 Nov 30 17:49 deploy
-rw-rw-r-- 1 adietish adietish 186 Nov 30 17:49 post_deploy
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 post_start_jbossas-7
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 post_stop_jbossas-7
-rw-rw-r-- 1 adietish adietish 257 Nov 30 17:49 pre_build
-rw-rw-r-- 1 adietish adietish 272 Nov 30 17:49 pre_build_jbossas-7
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 pre_start_jbossas-7
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 pre_stop_jbossas-7
{code}
was (Author: adietish):
so on linux the x-perm is set correctly when the openshift application is cloned to a
local temp-directory:
{code}
[adietish@adietish-thinkpad action_hooks]$ cd /tmp/1354310977163
[adietish@adietish-thinkpad 1354310977163]$ ls
deployments pom.xml README src
[adietish@adietish-thinkpad 1354310977163]$ cd .openshift/action_hooks/
[adietish@adietish-thinkpad action_hooks]$ ls -l
total 36
-rwxrw-r-- 1 adietish adietish 265 Nov 30 22:29 build
-rwxrw-r-- 1 adietish adietish 249 Nov 30 22:29 deploy
-rwxrw-r-- 1 adietish adietish 186 Nov 30 22:29 post_deploy
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 post_start_jbossas-7
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 post_stop_jbossas-7
-rwxrw-r-- 1 adietish adietish 257 Nov 30 22:29 pre_build
-rwxrw-r-- 1 adietish adietish 272 Nov 30 22:29 pre_build_jbossas-7
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 pre_start_jbossas-7
-rwxrw-r-- 1 adietish adietish 645 Nov 30 22:29 pre_stop_jbossas-7
[adietish@adietish-thinkpad action_hooks]$ git log
commit 944f22d7c074ff69c4198a46fae06fe08bd452a0
Author: root <root(a)ex-std-node39.prod.rhcloud.com>
Date: Fri Nov 30 16:25:13 2012 -0500
Creating template
[adietish@adietish-thinkpad action_hooks]$
{code}
But after the files get copied to the project, they're missing.
[adietish@adietish-thinkpad runtime-OpenShift]$ cd jboss-html5-webapp/.openshift/
[adietish@adietish-thinkpad .openshift]$ ls
action_hooks config cron markers
[adietish@adietish-thinkpad .openshift]$ cd action_hooks/
[adietish@adietish-thinkpad action_hooks]$ ll
total 36
-rw-rw-r-- 1 adietish adietish 265 Nov 30 17:49 build
-rw-rw-r-- 1 adietish adietish 249 Nov 30 17:49 deploy
-rw-rw-r-- 1 adietish adietish 186 Nov 30 17:49 post_deploy
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 post_start_jbossas-7
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 post_stop_jbossas-7
-rw-rw-r-- 1 adietish adietish 257 Nov 30 17:49 pre_build
-rw-rw-r-- 1 adietish adietish 272 Nov 30 17:49 pre_build_jbossas-7
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 pre_start_jbossas-7
-rw-rw-r-- 1 adietish adietish 645 Nov 30 17:49 pre_stop_jbossas-7
Execute permissions modified in new openshift projects causing action
hoooks to not execute
-------------------------------------------------------------------------------------------
Key: JBIDE-13217
URL:
https://issues.jboss.org/browse/JBIDE-13217
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.0.0.CR1
Environment: Linux, Mac (NOT Windows)
Reporter: Max Rydahl Andersen
Assignee: Andre Dietisheim
Labels: respin-c
Attachments: hook-premissions-windows.jpg
1. EXEC: Create and import new app
2. ASSERT: execute permissions on action_hooks get resetted.
{code}
diff --git a/.openshift/action_hooks/build b/.openshift/action_hooks/build
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/deploy b/.openshift/action_hooks/deploy
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/post_deploy b/.openshift/action_hooks/post_deploy
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/post_start_jbosseap-6.0
b/.openshift/action_hooks/post_start_jbosseap-6.0
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/post_stop_jbosseap-6.0
b/.openshift/action_hooks/post_stop_jbosseap-6.0
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/pre_build b/.openshift/action_hooks/pre_build
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/pre_build_jbosseap-6.0
b/.openshift/action_hooks/pre_build_jbosseap-6.0
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/pre_start_jbosseap-6.0
b/.openshift/action_hooks/pre_start_jbosseap-6.0
old mode 100755
new mode 100644
diff --git a/.openshift/action_hooks/pre_stop_jbosseap-6.0
b/.openshift/action_hooks/pre_stop_jbosseap-6.0
old mode 100755
new mode 100644
diff --git a/.openshift/cron/weekly/chronograph b/.openshift/cron/weekly/chronograph
{code}
3. EXEC: publish the application to OpenShift
Result:
{code}
/usr/libexec/openshift/cartridges/abstract/info/lib/util: line 992:
/var/lib/openshift/1e6a743963104f30bdcdebdff460d42b/app-root/runtime/repo/.openshift/action_hooks/post_start_jbossas-7:
Permission denied
Failed to start jbossas-7
{code}
...but the server is started.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira