Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 891461 Details for
Bug 1093324
File creation fails on the NFS mount point while adding a brick to the same volume
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Stand alone test case that reproduces the errors
bug-1090446.sh (text/plain), 2.38 KB, created by
Niels de Vos
on 2014-05-01 11:36:29 UTC
(
hide
)
Description:
Stand alone test case that reproduces the errors
Filename:
MIME Type:
Creator:
Niels de Vos
Created:
2014-05-01 11:36:29 UTC
Size:
2.38 KB
patch
obsolete
>#!/bin/bash ># ># Test script for Bug 1090446. ># ># Actions: ># - create a one-brick volume ># - start the volume ># - wait for nfs to be ready and serve the export ># - mount the volume over nfs ># - start a sub-process to create files in a dir on the nfs-mount ># - while files are being created, add a new brick to the volume ># ># Expected results: ># - after add-brick has finished, the NFS-mount fails to create new files ># - the parent-dir for the new files on the NFS-mount returns ESTALE ># ># Workaround: ># - when the first copy error happens, run 'rebalance fix-layout' ># > ># set FIX_LAYOUT to 0 to disable and cause failure ># any non-0 value will trigger the workaround/fix-layout >FIX_LAYOUT=0 > > >shopt -s expand_aliases >alias gluster='gluster --mode=script' > >LOCK_FILE=$(mktemp /tmp/volume_lock.XXXXXXXX) > >function copy_test() { > local RET=0 > local MAXFILES=100 > local TESTDIR=$1 > > local FROMFILE=/tmp/srcfile > dd if=/dev/zero of=$FROMFILE bs=1024 count=1 > /dev/null 2>&1 > > mkdir -p $TESTDIR > > for NUM in $(seq 1 $MAXFILES) > do > TOFILE=$TESTDIR/file$(printf %03d $NUM) > cp -f $FROMFILE $TOFILE > RET=$? > if [ $RET -ne 0 ] > then > # https://access.redhat.com/site/documentation/en-US/Red_Hat_Storage/2.1/html/2.1_Release_Notes/chap-Documentation-2.1_Release_Notes-Known_Issues.html > # from Bug 980081, do a rebalance > [ $FIX_LAYOUT -eq 0 ] && break > ( > flock -x 101 > gluster volume rebalance testvol fix-layout start > # wait long enough for rebalance to finish > sleep 10 > ) 101>$LOCK_FILE > > cp -f $FROMFILE $TOFILE > RET=$? > fi > > [ $RET -ne 0 ] && break > done > > rm -f /tmp/srcfile > > return $RET >} > >gluster volume list | grep -q -w testvol && ( gluster volume stop testvol ; gluster volume delete testvol ) > >rm -rf /brick1/first /brick1/second >[ -d /brick1 ] || mkdir /brick1 >[ -d /mnt/nfs ] || mkdir /mnt/nfs > >gluster volume create testvol $(hostname):/brick1/first force >gluster volume start testvol > ># give the nfs-server some time to reload >sleep 10 ># clear the nfs.log >> /var/log/glusterfs/nfs.log >mount -t nfs localhost:/testvol /mnt/nfs > >mkdir /mnt/nfs/parentdir.d > >copy_test /mnt/nfs/parentdir.d & COPY_PID=$! > >( > flock -x 100 > gluster volume add-brick testvol $(hostname):/brick1/second force >) 100>$LOCK_FILE > >wait $COPY_PID >FAILED=$? >echo "copy_test returned $FAILED" > >umount /mnt/nfs >rm -f $LOCK_FILE > >if [ $FAILED -eq 0 ] >then > echo ; echo '== OK ==' >else > echo ; echo '== FAILED ==' >fi > >exit $FAILED
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1093324
: 891461