From ff417d17d325f424d315cfaa2154e8aa41d84622 Mon Sep 17 00:00:00 2001 From: Logan V Date: Sat, 23 Mar 2019 12:33:10 -0400 Subject: [PATCH] Use copy-links when collecting logs --safe-links was used, which breaks openstack service collection on the metal /etc paths, because they are symlinked into the venv like: /etc/neutron -> ../openstack/venvs/neutron-19.1.0.dev12/etc/neutron Instead we can use --copy-links which will resolve the symlink and copy the data. Change-Id: I40905d79efa1bef9ae6a7678515fd07fde1bdd00 --- scripts/log-collect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/log-collect.sh b/scripts/log-collect.sh index 2394f9faef..309d476ff6 100755 --- a/scripts/log-collect.sh +++ b/scripts/log-collect.sh @@ -29,7 +29,7 @@ export RUN_ARA=${RUN_ARA:-false} export TESTING_HOME=${TESTING_HOME:-$HOME} export TS=$(date +"%H-%M-%S") -export RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group --whole-file --inplace" +export RSYNC_CMD="rsync --archive --copy-links --ignore-errors --quiet --no-perms --no-owner --no-group --whole-file --inplace" # NOTE(cloudnull): This is a very simple list of common directories in /etc we # wish to search for when storing gate artifacts. When adding