From 5ec31e6c46051df15d4c5280849139ecd4147971 Mon Sep 17 00:00:00 2001 From: Ian Wienand <iwienand@redhat.com> Date: Tue, 3 Oct 2017 19:57:34 +1100 Subject: [PATCH] Open read permissions on /opt/cache/files/* This is chowning /opt/cache/files to jenkins, which I believe is causing issues for non-devstack-gate jobs that want to access /opt/cache directly as zuul (for d-g jobs, roles/setup-devstack-cache handles making a copy of it there, which is why we don't see it there). Make the cache globally accessible Change-Id: I711bc5643dbc8f2b674cb2a399989643a993a32e --- nodepool/elements/jenkins-slave/install.d/20-jenkins-slave | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodepool/elements/jenkins-slave/install.d/20-jenkins-slave b/nodepool/elements/jenkins-slave/install.d/20-jenkins-slave index 7060936bc7..955870fa1e 100755 --- a/nodepool/elements/jenkins-slave/install.d/20-jenkins-slave +++ b/nodepool/elements/jenkins-slave/install.d/20-jenkins-slave @@ -23,6 +23,8 @@ if [ -d /opt/cache/files ] ; then mkdir -p /home/jenkins/cache ln -sf /opt/cache/files /home/jenkins/cache/files chown -R jenkins:jenkins /opt/cache/files + # but make sure the cache is readable by everyone + chmod -R a+rX /opt/cache/files/* fi # this was copied from outside the chroot by extras.d