Bug 1668989
| Summary: | Unable to delete directories that contain linkto files that point to itself. | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Nithya Balachandran <nbalacha> |
| Component: | distribute | Assignee: | Nithya Balachandran <nbalacha> |
| Status: | CLOSED ERRATA | QA Contact: | Sayalee <saraut> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | rhgs-3.4 | CC: | bugs, nbalacha, olim, rhs-bugs, sankarshan, saraut, sheggodu, smali, storage-qa-internal |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | RHGS 3.4.z Batch Update 4 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.12.2-41 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1667804 | Environment: | |
| Last Closed: | 2019-03-27 03:43:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1667804, 1671611 | ||
| Bug Blocks: | 1667556, 1678183, 1696806 | ||
|
Description
Nithya Balachandran
2019-01-24 04:37:14 UTC
I have performed the following steps (as mentioned in #Description) and did NOT hit the issue on 3.12.2-45 build:
1) Create a pure distribute volume with two bricks and start it.
2) FUSE mount the volume on a client node using:
# mount -t glusterfs -s <ip-address>:/<volname> /mnt/<mnt-dir>
3) On the mount point do following operations:
# cd /mnt/<mnt-dir>
# mkdir -p dir0/dir1/dir2
# cd dir0/dir1/dir2
# for i in {1..100}; do echo "Test file" > tfile-$i; done
# for i in {1..100}; do mv tfile-$i ntfile-$i; done
4) Start remove-brick operation on the volume using:
# gluster v remove-brick <vol-name> brick2 start
5) Check the remove brick status using:
# gluster v remove-brick <vol-name> brick2 status
6) When the remove-brick status is shown as "complete" for all the nodes, stop the remove-brick operation using:
# gluster v remove-brick <vol-name> brick2 stop
7) Go to brick2 and perform lookup on the files. (only linkto files must be present and all should point to "vol_name-client-0")
8) Now change the linkto xattr value for every file in brick2 to point to itself (in this case "vol_name-client-1", also make sure the string is null terminated)
# setfattr -n trusted.glusterfs.dht.linkto -v 0x74766f6c2d636c69656e742d3100 /bricks/brick2/<vol-brick>/dir0/dir1/dir2/ntfile-*
9) Now from the mount-point perform following operations in order to delete the directory:
# cd /mnt/<mnt-dir>
# rm -rf *
Also covered the regression cases as mentioned in the test plan shared in #comment5
Hence moving this bug to verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0658 *** Bug 1667556 has been marked as a duplicate of this bug. *** |