Bug 1224033 - [Backup]: Crash observed when glusterfind pre is run on a dist-rep volume
Summary: [Backup]: Crash observed when glusterfind pre is run on a dist-rep volume
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfind
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: RHGS 3.1.0
Assignee: Milind Changire
QA Contact: Sweta Anandpara
URL:
Whiteboard:
Depends On:
Blocks: 1202842 1223636
TreeView+ depends on / blocked
 
Reported: 2015-05-22 05:00 UTC by Sweta Anandpara
Modified: 2016-09-17 15:19 UTC (History)
6 users (show)

Fixed In Version: glusterfs-3.7.1-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1225558 (view as bug list)
Environment:
Last Closed: 2015-07-29 04:45:09 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description Sweta Anandpara 2015-05-22 05:00:56 UTC
Description of problem:


Version-Release number of selected component (if applicable):
glusterfs-3.7.0-2.el6rhs.x86_64

How reproducible: 1:1


Steps to Reproduce:
1. Have a 2*2 distribute replicate volume 'vol1' on a 2node cluster
2. Create a glusterfind session 'sess' for 'vol1'
3. Mount 'vol1' over fuse, and copy a couple of files to the moutpoint
4. Run the glusterfind pre command for 'sess' and 'vol1'.


Expected: Step4 should get executed successfully, with /root/out.txt having logged the details of all files newly created, or modified.

Actual: Crash is observed at step4.


Additional info:

[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# glusterfind pre sess vol1 out.txt
Post command is not run after last pre, use --regenerate-outfile
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# glusterfind post sess vol1
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# vi /var/lib/glusterd/glusterfind/sess/vol1/
%2Frhs%2Fbrick1%2Fdd.status  %2Frhs%2Fbrick2%2Fdd.status  sess_vol1_secret.pem         sess_vol1_secret.pem.pub     status                       
[root@dhcp43-140 ~]# cat /var/lib/glusterd/glusterfind/sess/vol1/status
1432029619[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# glusterfind pre
usage: glusterfind pre [-h] [--debug] [--full] [--disable-partial]
                       [--output-prefix OUTPUT_PREFIX] [--regenerate-outfile]
                       [-N]
                       session volume outfile
glusterfind pre: error: too few arguments
[root@dhcp43-140 ~]# glusterfind pre sess vol1 out.txt
10.70.43.140 - pre failed: Traceback (most recent call last):
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 389, in <module>
    actual_end = changelog_crawl(args.brick, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 340, in changelog_crawl
    return get_changes(brick, working_dir, log_file, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 303, in get_changes
    pgfid_to_path(brick, changelog_data)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 64, in pgfid_to_path
    path = symlink_gfid_to_path(brick, row[0])
  File "/usr/libexec/glusterfs/glusterfind/utils.py", line 184, in symlink_gfid_to_path
    path_readlink = os.readlink(path)
OSError: [Errno 2] No such file or directory: '/rhs/brick1/dd/.glusterfs/01/a9/01a90b40-713d-479f-8ecf-0373734a048f'

10.70.43.140 - pre failed: Traceback (most recent call last):
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 389, in <module>
    actual_end = changelog_crawl(args.brick, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 340, in changelog_crawl
    return get_changes(brick, working_dir, log_file, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 303, in get_changes
    pgfid_to_path(brick, changelog_data)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 64, in pgfid_to_path
    path = symlink_gfid_to_path(brick, row[0])
  File "/usr/libexec/glusterfs/glusterfind/utils.py", line 184, in symlink_gfid_to_path
    path_readlink = os.readlink(path)
OSError: [Errno 2] No such file or directory: '/rhs/brick2/dd/.glusterfs/01/a9/01a90b40-713d-479f-8ecf-0373734a048f'

10.70.42.75 - pre failed: Traceback (most recent call last):
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 389, in <module>
    actual_end = changelog_crawl(args.brick, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 340, in changelog_crawl
    return get_changes(brick, working_dir, log_file, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 294, in get_changes
    parse_changelog_to_db(changelog_data, change)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 216, in parse_changelog_to_db
    with open(filename) as f:
IOError: [Errno 2] No such file or directory: '/usr/var/lib/misc/glusterfsd/glusterfind/sess/vol1/226a4a26b3e4df6e10cc07aee083d8af670570f8/.history/.processing/CHANGELOG.1432030460'

10.70.42.75 - pre failed: Traceback (most recent call last):
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 389, in <module>
    actual_end = changelog_crawl(args.brick, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 340, in changelog_crawl
    return get_changes(brick, working_dir, log_file, start, end, args)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 294, in get_changes
    parse_changelog_to_db(changelog_data, change)
  File "/usr/libexec/glusterfs/glusterfind/changelog.py", line 216, in parse_changelog_to_db
    with open(filename) as f:
IOError: [Errno 2] No such file or directory: '/usr/var/lib/misc/glusterfsd/glusterfind/sess/vol1/86c5809aaa8a5878c4c8b3f37184f5bb7c5c130d/.history/.processing/CHANGELOG.1432030460'

Generated output file /root/out.txt
[root@dhcp43-140 ~]# vi /root/out.txt 
[root@dhcp43-140 ~]# cat /root/out.txt 
[root@dhcp43-140 ~]# ls -l /root/out.txt 
-rw-r--r--. 1 root root 0 May 22 15:37 /root/out.txt
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# gluster v info
Volume Name: vol1
Type: Distributed-Replicate
Volume ID: 44f06391-1635-4897-98c2-848e5ae92640
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.43.140:/rhs/brick1/dd
Brick2: 10.70.42.75:/rhs/brick1/dd
Brick3: 10.70.43.140:/rhs/brick2/dd
Brick4: 10.70.42.75:/rhs/brick2/dd
Options Reconfigured:
changelog.changelog: on
storage.build-pgfid: on
performance.readdir-ahead: on
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# rpm -qa | grep gluster
glusterfs-libs-3.7.0-2.el6rhs.x86_64
glusterfs-api-3.7.0-2.el6rhs.x86_64
glusterfs-3.7.0-2.el6rhs.x86_64
glusterfs-fuse-3.7.0-2.el6rhs.x86_64
glusterfs-cli-3.7.0-2.el6rhs.x86_64
glusterfs-geo-replication-3.7.0-2.el6rhs.x86_64
glusterfs-client-xlators-3.7.0-2.el6rhs.x86_64
glusterfs-server-3.7.0-2.el6rhs.x86_64
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# 



These are the warnings displayed in the logs, along with the stack trace:

[2015-05-22 15:37:20,101] WARNING [main - 163:run_cmd_nodes] - Command pre failed in 10.70.42.75:/rhs/brick1/dd
[2015-05-22 15:37:20,101] WARNING [main - 163:run_cmd_nodes] - Command pre failed in 10.70.43.140:/rhs/brick2/dd
[2015-05-22 15:37:20,101] WARNING [main - 163:run_cmd_nodes] - Command pre failed in 10.70.42.75:/rhs/brick2/dd
[2015-05-22 15:37:20,116] WARNING [main - 118:run_cmd_nodes] - Failed to cleanup temporary file /usr/var/lib/misc/glusterfsd/glusterfind/sess/vol1/tmp_output_1
[2015-05-22 15:37:20,121] WARNING [main - 118:run_cmd_nodes] - Failed to cleanup temporary file /usr/var/lib/misc/glusterfsd/glusterfind/sess/vol1/tmp_output_3

Comment 2 Sweta Anandpara 2015-05-22 05:26:58 UTC
Sosreports copied at: http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/1224033/

Comment 5 Sweta Anandpara 2015-06-25 07:36:26 UTC
Tested and verified this on the build glusterfs-3.7.1-4.el6rhs.x86_64

Did not hit a crash when directory structure(s) or file(s) were deleted. Moving this to verified in 3.1 everglades. Pasted below are the logs. Functional testing in and around this fix has been uploaded at https://polarion.engineering.redhat.com/polarion/testrun-attachment/RHG3/glusterfs-3_7_1_3_RHEL6_7_FUSE/RHG3-5400_Logs_6.7_3.7.1-3_output_file_validation.odt


[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
sesso3                    ozone                     2015-06-18 16:27:30      
sesso1                    ozone                     2015-06-23 20:43:34      
cross3s1                  cross3                    2015-06-23 23:30:16      
cross3s3                  cross3                    2015-06-23 17:55:28      
cross3s2                  cross3                    2015-06-23 18:06:38      
sesso2                    ozone                     2015-06-20 00:14:05      
sesso4                    ozone                     2015-06-18 16:27:38      
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre sesso1 ozone /tmp/outo1.txt 
Post command is not run after last pre, use --regenerate-outfile
[root@dhcp43-191 ~]# glusterfind post sesso1 ozone 
Session sesso1 with volume ozone updated
[root@dhcp43-191 ~]# glusterfind pre sesso1 ozone /tmp/outo1.txt 
10.70.42.30 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

10.70.42.147 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

Generated output file /tmp/outo1.txt
[root@dhcp43-191 ~]# vi /tmp/outo1.txt 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# cat /tmp/outo1.txt | wc -l
37
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# # after deleting another directory
[root@dhcp43-191 ~]# glusterfind post sesso1 ozone 
Session sesso1 with volume ozone updated
[root@dhcp43-191 ~]# glusterfind pre sesso1 ozone /tmp/outo1.txt 
10.70.42.30 - pre failed: [2015-06-25 12:46:31.542904] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 2
[2015-06-25 12:46:31.542935] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
/rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

10.70.42.147 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

Generated output file /tmp/outo1.txt
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# vi /tmp/outo1.txt 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre sesso1 ozone /tmp/outo1.txt --regenerate-outfile
10.70.42.30 - pre failed: [2015-06-25 12:47:08.360553] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
[2015-06-25 12:47:08.361238] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 2
[2015-06-25 12:47:08.361422] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 3
[2015-06-25 12:47:08.361499] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 4
/rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

10.70.42.147 - pre failed: [2015-06-25 12:47:08.546771] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
[2015-06-25 12:47:08.546954] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 2
[2015-06-25 12:47:08.547067] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 3
[2015-06-25 12:47:08.547334] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 4
/rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

Generated output file /tmp/outo1.txt
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# vi /tmp/outo1.txt 
[root@dhcp43-191 ~]# cat /tmp/outo1.txt | wc -l
27
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
sesso3                    ozone                     2015-06-18 16:27:30      
sesso1                    ozone                     2015-06-25 18:15:03      
cross3s1                  cross3                    2015-06-23 23:30:16      
cross3s3                  cross3                    2015-06-23 17:55:28      
cross3s2                  cross3                    2015-06-23 18:06:38      
sesso2                    ozone                     2015-06-20 00:14:05      
sesso4                    ozone                     2015-06-18 16:27:38      
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre sesso1 ozone /tmp/outo1.txt 
Post command is not run after last pre, use --regenerate-outfile
[root@dhcp43-191 ~]# glusterfind post sesso1 ozone 
Session sesso1 with volume ozone updated
[root@dhcp43-191 ~]# glusterfind pre sesso1 ozone /tmp/outo1.txt 
10.70.42.30 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

10.70.42.147 - pre failed: [2015-06-25 12:47:51.300569] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
[2015-06-25 12:47:51.302629] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 3
[2015-06-25 12:47:51.302759] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 2
[2015-06-25 12:47:51.302787] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 4
/rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

Generated output file /tmp/outo1.txt
[root@dhcp43-191 ~]# vi /tmp/outo1.txt 
[root@dhcp43-191 ~]# ls -l /tmp/outo1.txt 
-rw-r--r--. 1 root root 0 Jun 25 18:17 /tmp/outo1.txt
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre sesso2 ozone /tmp/outo2.txt 
10.70.42.30 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

10.70.42.147 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

Generated output file /tmp/outo2.txt
[root@dhcp43-191 ~]# vi /tmp/outo2.txt 
[root@dhcp43-191 ~]# glusterfind pre sesso2 ozone /tmp/outo2.txt 
Post command is not run after last pre, use --regenerate-outfile
[root@dhcp43-191 ~]# glusterfind pre sesso2 ozone /tmp/outo2.txt --regenerate-outfile
10.70.42.30 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

10.70.42.147 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

Generated output file /tmp/outo2.txt
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# vi /tmp/outo2.txt 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre sesso3 ozone /tmp/outo3.txt
10.70.42.30 - pre failed: [2015-06-25 12:50:35.347455] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 4
/rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

10.70.42.147 - pre failed: /rhs/thinbrick2/ozone Historical Changelogs not available: [Errno 2] No such file or directory

Generated output file /tmp/outo3.txt
[root@dhcp43-191 ~]# vi /tmp/outo3.txt 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/
^%#@*/     cli.log    cross3s2/  demo/      fdjksl/    nosession/ ozone/     session/   sesso1/    sesso3/    sesso5/    sess_vol1/ 
5543/      cross3s1/  cross3s3/  demosess/  fds/       novolume/  sess_demo/ sessn1/    sesso2/    sesso4/    sesso6/    
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/sesso1/
cli.log  ozone/   
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/sesso1/ozone/c
changelog.08da96af79321aeb6981b439160e3de184fc358b.log  changelog.log                                           
changelog.8d99046d2c04c2fe05e40b94244201e8fefd9979.log  cli.log                                                 
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/sesso1/ozone/cli.log 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
sesso3                    ozone                     2015-06-18 16:27:30      
sesso1                    ozone                     2015-06-25 18:16:52      
cross3s1                  cross3                    2015-06-23 23:30:16      
cross3s3                  cross3                    2015-06-23 17:55:28      
cross3s2                  cross3                    2015-06-23 18:06:38      
sesso2                    ozone                     2015-06-20 00:14:05      
sesso4                    ozone                     2015-06-18 16:27:38      
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind post cross3s1 cross3
Session cross3s1 with volume cross3 updated
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre cross3s1 cross3 /tmp/out3
out31.txt  out32.txt  
[root@dhcp43-191 ~]# glusterfind pre cross3s1 cross3 /tmp/out31.txt 
Generated output file /tmp/out31.txt
[root@dhcp43-191 ~]# vi /tmp/out31.txt 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind post  cross3s1 cross3 
Session cross3s1 with volume cross3 updated
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre cross3s1 cross3 /tmp/out31.txt 
Generated output file /tmp/out31.txt
[root@dhcp43-191 ~]# vi /tmp/out31.txt 
[root@dhcp43-191 ~]# cat /tmp/out31.txt 
DELETE test2 
[root@dhcp43-191 ~]# glusterfind pre cross3s2 cross3 /tmp/out32.txt 
Generated output file /tmp/out32.txt
[root@dhcp43-191 ~]# vi /tmp/out31.txt 
[root@dhcp43-191 ~]# vi /tmp/out32.txt 
[root@dhcp43-191 ~]# vi /tmp/out32.txt 
[root@dhcp43-191 ~]# cat /tmp/out32.txt 
RENAME a dir1%2Fdir2%2Fa
DELETE dir1%2Fdir2%2Fanew 
DELETE dir1%2Fdir2%2Ffile123 
DELETE dir1 
DELETE dir1%2Fdir2%2Ffile456 
DELETE test2 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind post cross3s2 cross3 
Session cross3s2 with volume cross3 updated
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre cross3s2 cross3 /tmp/out32.txt 
Generated output file /tmp/out32.txt
[root@dhcp43-191 ~]# cat /tmp/out32.txt 
NEW dir1 
[root@dhcp43-191 ~]# glusterfind pre cross3s2 cross3 /tmp/out32.txt --regenerate-outfiel
usage: glusterfind [-h] {pre,create,list,post,delete} ...
glusterfind: error: unrecognized arguments: --regenerate-outfiel
[root@dhcp43-191 ~]# glusterfind pre cross3s2 cross3 /tmp/out32.txt --regenerate-outfile
Generated output file /tmp/out32.txt
[root@dhcp43-191 ~]# cat /tmp/out32.txt 
[root@dhcp43-191 ~]# glusterfind pre cross3s2 cross3 /tmp/out32.txt --regenerate-outfile
Generated output file /tmp/out32.txt
[root@dhcp43-191 ~]# cat /tmp/out32.txt 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# # after creating a directory structure of depth 10
[root@dhcp43-191 ~]# glusterfind pre cross3s2 cross3 /tmp/out32.txt --regenerate-outfile
Generated output file /tmp/out32.txt
[root@dhcp43-191 ~]# cat /tmp/out32.txt 
NEW dir1 
NEW dir1%2F%2Fdir2 
NEW dir1%2Fdir2%2F%2Fdir3 
NEW dir1%2Fdir2%2Fdir3%2F%2Fdir4 
NEW dir1%2Fdir2%2Fdir3%2Fdir4%2F%2Fdir5 
NEW dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2F%2Fdir6 
NEW dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2F%2Fdir7 
NEW dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2Fdir7%2F%2Fdir8 
NEW dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2Fdir7%2Fdir8%2F%2Fdir9 
NEW dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2Fdir7%2Fdir8%2Fdir9%2F%2Fdir10 
[root@dhcp43-191 ~]# glusterfind post cross3s2 cross3 
Session cross3s2 with volume cross3 updated
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# # after deleting the directory structure
[root@dhcp43-191 ~]# glusterfind pre cross3s2 cross3 /tmp/out32.txt 
Generated output file /tmp/out32.txt
[root@dhcp43-191 ~]# cat /tmp/out32.txt 
DELETE dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2Fdir7%2Fdir8%2Fdir9%2Fdir10 
DELETE dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2Fdir7%2Fdir8%2Fdir9 
DELETE dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2Fdir7%2Fdir8 
DELETE dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6%2Fdir7 
DELETE dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5%2Fdir6 
DELETE dir1%2Fdir2%2Fdir3%2Fdir4%2Fdir5 
DELETE dir1%2Fdir2%2Fdir3%2Fdir4 
DELETE dir1%2Fdir2%2Fdir3 
DELETE dir1%2Fdir2 
DELETE dir1 
[root@dhcp43-191 ~]# glusterfind pre cross3s1 cross3 /tmp/out31.txt 
Post command is not run after last pre, use --regenerate-outfile
[root@dhcp43-191 ~]# glusterfind post cross3s1 cross3 
Session cross3s1 with volume cross3 updated
[root@dhcp43-191 ~]# glusterfind pre cross3s1 cross3 /tmp/out31.txt 
Generated output file /tmp/out31.txt
[root@dhcp43-191 ~]# cat /tmp/out31.txt 
[root@dhcp43-191 ~]# cat /tmp/out31.txt 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind post cross3s1 cross3 
Session cross3s1 with volume cross3 updated
[root@dhcp43-191 ~]# glusterfind post cross3s2 cross3 
Session cross3s2 with volume cross3 updated
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind pre cross3s1 cross3 /tmp/out31.txt 
Generated output file /tmp/out31.txt
[root@dhcp43-191 ~]# cat /tmp/out31.txt 
DELETE dir2 
DELETE dir2%2Ftest1copy 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# rpm -qa | grep glusterfs
glusterfs-libs-3.7.1-4.el6rhs.x86_64
glusterfs-api-3.7.1-4.el6rhs.x86_64
glusterfs-client-xlators-3.7.1-4.el6rhs.x86_64
glusterfs-fuse-3.7.1-4.el6rhs.x86_64
glusterfs-cli-3.7.1-4.el6rhs.x86_64
glusterfs-3.7.1-4.el6rhs.x86_64
glusterfs-server-3.7.1-4.el6rhs.x86_64
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# gluster v list
cross3
gluster_shared_storage
nash
ozone
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# gluster v info ozone
 
Volume Name: ozone
Type: Distributed-Replicate
Volume ID: 9ef1ace8-505d-4d97-aa23-4296aa685f76
Status: Started
Number of Bricks: 4 x 2 = 8
Transport-type: tcp
Bricks:
Brick1: 10.70.43.191:/rhs/thinbrick1/ozone
Brick2: 10.70.42.202:/rhs/thinbrick1/ozone
Brick3: 10.70.43.191:/rhs/thinbrick2/ozone
Brick4: 10.70.42.202:/rhs/thinbrick2/ozone
Brick5: 10.70.42.30:/rhs/thinbrick1/ozone
Brick6: 10.70.42.147:/rhs/thinbrick1/ozone
Brick7: 10.70.42.30:/rhs/thinbrick2/ozone
Brick8: 10.70.42.147:/rhs/thinbrick2/ozone
Options Reconfigured:
performance.readdir-ahead: on
storage.build-pgfid: on
changelog.changelog: on
changelog.capture-del-path: on
[root@dhcp43-191 ~]# gluster v info cross34
Volume cross34 does not exist
[root@dhcp43-191 ~]# gluster v info cross3
 
Volume Name: cross3
Type: Distributed-Replicate
Volume ID: 81de5a1c-24ac-44fa-a9ce-7691d9b308a0
Status: Started
Number of Bricks: 2 x 3 = 6
Transport-type: tcp
Bricks:
Brick1: 10.70.43.191:/rhs/thinbrick1/cross3
Brick2: 10.70.42.202:/rhs/thinbrick1/cross3
Brick3: 10.70.42.30:/rhs/thinbrick1/cross3
Brick4: 10.70.43.191:/rhs/thinbrick2/cross3
Brick5: 10.70.42.202:/rhs/thinbrick2/cross3
Brick6: 10.70.42.30:/rhs/thinbrick2/cross3
Options Reconfigured:
changelog.capture-del-path: on
changelog.changelog: on
storage.build-pgfid: on
performance.readdir-ahead: on
[root@dhcp43-191 ~]#

Comment 6 errata-xmlrpc 2015-07-29 04:45:09 UTC
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://rhn.redhat.com/errata/RHSA-2015-1495.html


Note You need to log in before you can comment on or make changes to this bug.