Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13320

CLONE - Execute permissions modified in merged openshift projects ("use existing") causing action hoooks to not execute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • 3.3.2.Final
    • 3.3.2.Final
    • openshift
    • When deploying existing projects to OpenShift, the server adapter was reporting an error when the deploy hooks should have been executed. We now set the correct permissions when merging the hook files into an existing project in your workspace.

      1. EXEC: Create and import new app
      2. ASSERT: execute permissions on action_hooks get resetted.

      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
      

      3. EXEC: publish the application to OpenShift

      Result:

      /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
      

      ...but the server is started.

        1. copy-file-permissions.patch
          2 kB
          André Dietisheim
        2. hook-premissions-windows.jpg
          75 kB
          Stefan Bunciak

              manderse@redhat.com Max Andersen
              sbunciak-rh Stefan Bunciak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: