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}"

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            coofercat Ralph Bolton created issue -
            coofercat Ralph Bolton made changes -
            Field Original Value New Value
            Description 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.

            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 Oleg Nenashev made changes -
            Assignee Nicolas De Loof [ ndeloof ]
            danielbeck Daniel Beck made changes -
            Link This issue is related to JENKINS-12231 [ JENKINS-12231 ]
            coofercat Ralph Bolton made changes -
            Summary RPM post-install should not do a "chown -R jenkins:jenkins /var/lib/jenkins" RPM post-install should not do a "chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}"
            jglick Jesse Glick made changes -
            Labels rpm yum regression rpm yum
            olenz Olaf Lenz made changes -
            Link This issue is related to JENKINS-26460 [ JENKINS-26460 ]
            danielbeck Daniel Beck made changes -
            Component/s packaging [ 20120 ]
            Component/s core [ 15593 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            danielbeck Daniel Beck made changes -
            Assignee Nicolas De Loof [ ndeloof ] Daniel Beck [ danielbeck ]
            svanoort Sam Van Oort made changes -
            Assignee Daniel Beck [ danielbeck ] Sam Van Oort [ svanoort ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 155836 ] JNJira + In-Review [ 186208 ]
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ] Kohsuke Kawaguchi [ kohsuke ]
            svanoort Sam Van Oort made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ] Sam Van Oort [ svanoort ]
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ]
            rarabaolaza Raul Arabaolaza made changes -
            Assignee Raul Arabaolaza [ rarabaolaza ]
            rarabaolaza Raul Arabaolaza made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            rarabaolaza Raul Arabaolaza made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            rarabaolaza Raul Arabaolaza made changes -
            Remote Link This issue links to "PR-87 (Web Link)" [ 15103 ]
            rarabaolaza Raul Arabaolaza made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            rarabaolaza Raul Arabaolaza made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1694 (Web Link)" [ 18608 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-11 (Web Link)" [ 19165 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: