Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23273

RPM post-install should not do a "chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}"

      The jenkins-1.565-1.1 RPM contains a post-install script with performs the following:

      # Ensure the right ownership on files
      . /etc/sysconfig/jenkins
      chown -R ${JENKINS_USER:-jenkins} /var/log/jenkins
      chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}
      

      These chowns can take a very long time on systems with lots of files. A couple of our Jenkins boxes have thousands of files in a the /var/lib/jenkins/workspace directory (which itself is a network mount), which means this chown takes many minutes to complete (like ~15 minutes) and actually changes the ownership of no files. This holds up package deployment unnecessarily.

      I propose that either these chowns be removed entirely (the RPM spec sets the ownership of things the RPM puts down), or better yet that they're restricted to specific files.

          [JENKINS-23273] RPM post-install should not do a "chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}"

          Ralph Bolton created issue -
          Ralph Bolton made changes -
          Description Original: The jenkins-1.565-1.1 RPM contains a post-install script with performs the following:

          # Ensure the right ownership on files
          . /etc/sysconfig/jenkins
          chown -R ${JENKINS_USER:-jenkins} /var/log/jenkins
          chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}

          These chowns can take a very long time on systems with lots of files. A couple of our Jenkins boxes have thousands of files in a the /var/lib/jenkins/workspace directory (which itself is a network mount), which means this chown takes many minutes to complete (like ~15 minutes). This holds up package deployment unnecessarily.

          I propose that either these chowns be removed entirely (the RPM spec sets the ownership of things the RPM puts down), or better yet that they're restricted to specific files.

          New: The jenkins-1.565-1.1 RPM contains a post-install script with performs the following:
          {quote}{noformat}
          # Ensure the right ownership on files
          . /etc/sysconfig/jenkins
          chown -R ${JENKINS_USER:-jenkins} /var/log/jenkins
          chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}
          {noformat}{quote}
          These chowns can take a very long time on systems with lots of files. A couple of our Jenkins boxes have thousands of files in a the /var/lib/jenkins/workspace directory (which itself is a network mount), which means this chown takes many minutes to complete (like ~15 minutes) and actually changes the ownership of no files. This holds up package deployment unnecessarily.

          I propose that either these chowns be removed entirely (the RPM spec sets the ownership of things the RPM puts down), or better yet that they're restricted to specific files.

          Oleg Nenashev made changes -
          Assignee New: Nicolas De Loof [ ndeloof ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-12231 [ JENKINS-12231 ]
          Ralph Bolton made changes -
          Summary Original: RPM post-install should not do a "chown -R jenkins:jenkins /var/lib/jenkins" New: RPM post-install should not do a "chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}"
          Jesse Glick made changes -
          Labels Original: rpm yum New: regression rpm yum
          Olaf Lenz made changes -
          Link New: This issue is related to JENKINS-26460 [ JENKINS-26460 ]
          Daniel Beck made changes -
          Component/s New: packaging [ 20120 ]
          Component/s Original: core [ 15593 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Kohsuke Kawaguchi made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Daniel Beck made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Daniel Beck [ danielbeck ]

            rarabaolaza Raul Arabaolaza
            coofercat Ralph Bolton
            Votes:
            13 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated:
              Resolved: