Merge "Copy test-volume"

This commit is contained in:
Zuul 2017-11-30 20:42:43 +00:00 committed by Gerrit Code Review
commit a38685bb7b
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ copy_logs() {
cp -rvnL /var/log/* ${SYSTEM_LOGS}
cp -rvnL /tmp/kubespray ${LOG_DIR}/
cp -rvnL /tmp/test-volume ${LOG_DIR}/
if [[ -x "$(command -v journalctl)" ]]; then

View File

@ -33,7 +33,6 @@
EOF
sudo mkdir /tmp/test-volume
sudo chmod 777 /tmp/test-volume
cat <<EOF | kubectl create -f -
apiVersion: v1
@ -50,6 +49,10 @@
hostPath:
path: /tmp/test-volume
EOF
sudo chown zuul:zuul -R /tmp/test-volume
sudo chmod 777 /tmp/test-volume
executable: /bin/bash
become: true
delegate_to: "primary"