From 3b2fdfbc1ff08fb37878ca4057276166510c7e35 Mon Sep 17 00:00:00 2001 From: Sam Betts Date: Fri, 5 Aug 2016 14:34:42 +0100 Subject: [PATCH] Clean up TinyIPA chroot directories in POST job The TinyIPA post job is currently failing because when it tries to publish the files, the rsync command attempts to search all directories for matching source files including the chroot build directories. This causes it to fail because it doesn't have the permissions to read so of the directories inside the chroot. The zuul code comment explaining the behaviour: https://github.com/openstack-infra/zuul/blob/176431ec1488fbde93c953972f639b8a31d173c8/zuul/launcher/ansiblelaunchserver.py#L939 "include any directories (so that we continue to search for the thing we want no matter how deep it is)," Change-Id: I3373d7a6e0220407a84d60b2b2051fa13ffe5174 --- jenkins/jobs/ironic-python-agent-jobs.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jenkins/jobs/ironic-python-agent-jobs.yaml b/jenkins/jobs/ironic-python-agent-jobs.yaml index b7ed34bcc2..efbc50c553 100644 --- a/jenkins/jobs/ironic-python-agent-jobs.yaml +++ b/jenkins/jobs/ironic-python-agent-jobs.yaml @@ -37,6 +37,9 @@ (cd imagebuild/tinyipa && make) mv imagebuild/tinyipa/tinyipa*.tar.gz UPLOAD_TAR mv imagebuild/tinyipa/tinyipa*.* UPLOAD_RAW + # NOTE(sambetts) Must clean up chroot directories before + # publisher rsync command tries and fails to read them + make clean ;; coreos) imagebuild/coreos/full_trusty_build.sh