summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCsaba Henk <chenk@redhat.com>2016-04-07 01:47:20 +0200
committerCsaba Henk <chenk@redhat.com>2016-05-02 11:22:30 +0200
commit5d698eda71e9d5a370ac7a95b92dbab9ef31d418 (patch)
tree7e59ba0cae6681f76e5574b158e61342c0dfb5db
parent658d3cc5ebe65781af61d94aad86d50cf9c0cec6 (diff)
Work around log file upload EPERM issue
The log files created during the Tempest run get scp-d to their final location via Ansible. Some root-owned log files are not readable for the Ansible process and that results in getting an EPERM and thus the gateway job is qualified as UNSTABLE. We don't have a hook in between the gluster invocations creating those log files and the call to the Ansible upload job, so we are not able to chmod the logs as needed. Instead we apply the following hack: we create and mount a VFAT file system onto the log directory where the trouble strikes; and VFAT does not implement POSIX file permissions therefore all files within it qualify as world readable. Change-Id: I9a85888166b5b9c28a049e7c17335e2082a61f92
Notes
Notes (review): Code-Review+1: Ramana Raja <rraja@redhat.com> Code-Review+2: Csaba Henk <chenk@redhat.com> Workflow+1: Csaba Henk <chenk@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 17 May 2016 00:17:03 +0000 Reviewed-on: https://review.openstack.org/302477 Project: openstack/devstack-plugin-glusterfs Branch: refs/heads/master
-rwxr-xr-xmanila/post_test_hook.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/manila/post_test_hook.sh b/manila/post_test_hook.sh
index 1bfa76b..9bf3a06 100755
--- a/manila/post_test_hook.sh
+++ b/manila/post_test_hook.sh
@@ -124,3 +124,18 @@ iniset $TEMPEST_CONFIG validation network_for_ssh ${PRIVATE_NETWORK_NAME:-"priva
124 124
125echo "Running tempest manila test suites" 125echo "Running tempest manila test suites"
126sudo -H -u jenkins tox -eall-plugin $MANILA_TESTS -- --concurrency=$MANILA_TEMPEST_CONCURRENCY 126sudo -H -u jenkins tox -eall-plugin $MANILA_TESTS -- --concurrency=$MANILA_TEMPEST_CONCURRENCY
127
128_retval=$?
129
130# This is a hack to work around EPERM issue upon
131# uploading log files: we ensure that the logs
132# shall land in a VFAT mount, whereby POSIX file
133# permissions are not implemented (everything is
134# world readable).
135install_package dosfstools
136truncate -s 3g /tmp/fat.img
137mkdosfs /tmp/fat.img
138sudo mkdir "$WORKSPACE/logs/glusterfs"
139sudo mount /tmp/fat.img "$WORKSPACE/logs/glusterfs"
140
141(exit $_retval)