From 4351d63b9be53c861c3c26c8f670f9b244fc4429 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 4 Feb 2013 13:44:58 -0800 Subject: [PATCH] Compress logs before Jenkins can copy them. Compress the various logs devstack gate collects before Jenkins can copy them. This reduces the headroom necessary for all of the files on the logs server by a significant amount. Also, to save even more space on the logs server stop copying the screen logs as syslog appears to capture all of this data. Change-Id: I78f5bfc436c288d52aac2083ba8c24cff4a67648 --- devstack-vm-gate-wrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index 1cd7c238..e5e63f35 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -248,7 +248,6 @@ function cleanup_host { mkdir -p $WORKSPACE/logs/old/ mkdir -p $WORKSPACE/logs/new/ mkdir -p $WORKSPACE/logs/grenade/ - sudo cp $BASE/old/screen-logs/* $WORKSPACE/logs/old/ sudo cp $BASE/old/devstacklog.txt $WORKSPACE/logs/old/ sudo cp $BASE/old/devstack/localrc $WORKSPACE/logs/old/localrc.txt sudo cp $BASE/logs/* $WORKSPACE/logs/ @@ -257,7 +256,6 @@ function cleanup_host { else NEWLOGTARGET=$WORKSPACE/logs fi - sudo cp $BASE/new/screen-logs/* $NEWLOGTARGET/ sudo cp $BASE/new/devstacklog.txt $NEWLOGTARGET/ sudo cp $BASE/new/devstack/localrc $NEWLOGTARGET/localrc.txt @@ -276,6 +274,9 @@ function cleanup_host { # Remove duplicate logs rm $WORKSPACE/logs/*.*.txt + # Compress all text logs + find $WORKSPACE/logs -iname '*.txt' -execdir gzip -9 {} \+ + # Save the tempest nosetests results sudo cp $BASE/new/tempest/nosetests*.xml $WORKSPACE/ sudo chown jenkins:jenkins $WORKSPACE/nosetests*.xml