Bug 1208520 - [Backup]: Glusterfind not working with change-detector as 'changelog'
Summary: [Backup]: Glusterfind not working with change-detector as 'changelog'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterfind
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Aravinda VK
QA Contact: bugs@gluster.org
URL:
Whiteboard:
Depends On:
Blocks: qe_tracker_everglades 1224076
TreeView+ depends on / blocked
 
Reported: 2015-04-02 12:38 UTC by Sweta Anandpara
Modified: 2015-05-27 08:08 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.7.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1224076 (view as bug list)
Environment:
Last Closed: 2015-05-27 08:08:47 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Sweta Anandpara 2015-04-02 12:38:21 UTC
Description of problem:

When the glusterfind pre command is run with change-detector as 'brickfind' it works fine. When it is run with 'changelog' it errors out saying change detection failed.

Version-Release number of selected component (if applicable):
Gluster 3.7 upstream nightly glusterfs-3.7dev-0.852.git3feaf16.el6.x86_64

How reproducible: Always

Steps to Reproduce:

1. Have a gluster volume, say 'ozone' and create a glusterfind session
glusterfind create <sessionName> <volumeName>
2. Run the glusterfind pre command with change-detector as 'changelog'
glusterfind pre <sessionName> <volumeName> /tmp/outfile.txt --change-detector=changelog

Actual results:

Step2 should succeed. The specified output file 'outfile.txt' should get updated with the list of changed files, from the last change

Expected results:

Step 2 errors out saying: Change detection failed

Additional info:

Could not get much info from the logs as well. It just says: Change detection failed.
[2015-04-02 23:37:53,689] ERROR [utils - 115:fail] - 10.70.43.48 - Change detection failed
[2015-04-02 23:37:53,733] ERROR [utils - 115:fail] - 10.70.43.48 - Change detection failed
[2015-04-02 23:37:53,745] ERROR [utils - 115:fail] - 10.70.43.48 - Change detection failed
[2015-04-02 23:37:54,867] ERROR [utils - 115:fail] - 10.70.42.147 - Change detection failed
[2015-04-02 23:37:54,867] ERROR [utils - 115:fail] - 10.70.42.147 - Change detection failed
[2015-04-02 23:37:54,871] ERROR [utils - 115:fail] - 10.70.42.147 - Change detection failed

[root@dhcp43-48 ~]# 
[root@dhcp43-48 ~]# gluster v i ozone
 
Volume Name: ozone
Type: Tier
Volume ID: 4611c8ba-4f32-409c-8858-81d55d2acc75
Status: Started
Number of Bricks: 6 x 1 = 6
Transport-type: tcp
Bricks:
Brick1: 10.70.42.147:/rhs/thinbrick1/ozone/hdd
Brick2: 10.70.43.48:/rhs/thinbrick1/ozone/hdd
Brick3: 10.70.43.48:/rhs/thinbrick1/ozone/dd
Brick4: 10.70.43.48:/rhs/thinbrick2/ozone/dd
Brick5: 10.70.42.147:/rhs/thinbrick1/ozone/dd
Brick6: 10.70.42.147:/rhs/thinbrick2/ozone/dd
Options Reconfigured:
storage.build-pgfid: on
changelog.changelog: on
geo-replication.ignore-pid-check: on
geo-replication.indexing: on
[root@dhcp43-48 ~]# 
[root@dhcp43-48 ~]# glusterfind session list
usage: glusterfind [-h] {pre,create,list,post,delete} ...
glusterfind: error: argument mode: invalid choice: 'session' (choose from 'pre', 'create', 'list', 'post', 'delete')
[root@dhcp43-48 ~]# glusterfind  list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
sess                      nash                      2015-04-01 16:43:53      
sess                      pluto                     2015-04-02 16:46:13      
sess                      ozone                     2015-04-02 20:02:56      
[root@dhcp43-48 ~]# 
[root@dhcp43-48 ~]# glusterfind pre sess ozone /tmp/out.txt --change-detector=changelog
10.70.43.48 - Change detection failed
10.70.43.48 - Change detection failed
10.70.43.48 - Change detection failed
10.70.42.147 - Change detection failed
10.70.42.147 - Change detection failed
10.70.42.147 - Change detection failed
[root@dhcp43-48 ~]# 
[root@dhcp43-48 ~]# 
[root@dhcp43-48 ~]#

Comment 1 Aravinda VK 2015-04-02 14:21:35 UTC
Issue is due to BZ 1207643. We don't need any patch for glusterfind to fix this apart from patches sent for 1207643

Comment 2 Aravinda VK 2015-04-06 08:21:31 UTC
Addition to the patch sent for BZ 1207643, we need to install "pyxattr" package.

yum install pyxattr 

or 

pip install pyxattr

Comment 3 Sweta Anandpara 2015-04-06 12:14:25 UTC
After installing the pyxattr package, the 'glusterfind pre' command still fails with the error: Change detection failed. 

However, I do see the changelog log files now. This is the error snippet:

[2015-04-06 23:01:19,413] INFO [changelog - 286:changelog_crawl] - /rhs/brick2/dd Started Changelog Crawl. Start: 1427817769, End: 1428341464
[2015-04-06 23:01:19,481] INFO [changelog - 286:changelog_crawl] - /rhs/brick1/dd Started Changelog Crawl. Start: 1427817769, End: 1428341464
[2015-04-06 23:01:27,547] ERROR [utils - 115:fail] - Partial History available with Changelog
[2015-04-06 23:15:23,152] INFO [changelog - 286:changelog_crawl] - /rhs/brick1/dd Started Changelog Crawl. Start: 1427817769, End: 1428342308
[2015-04-06 23:15:23,153] INFO [changelog - 286:changelog_crawl] - /rhs/brick2/dd Started Changelog Crawl. Start: 1427817769, End: 1428342308
[2015-04-06 23:15:29,187] ERROR [utils - 115:fail] - Partial History available with Changelog
[2015-04-06 23:17:07,274] INFO [changelog - 286:changelog_crawl] - /rhs/brick2/dd Started Changelog Crawl. Start: 1427817769, End: 1428342412
[2015-04-06 23:17:07,295] INFO [changelog - 286:changelog_crawl] - /rhs/brick1/dd Started Changelog Crawl. Start: 1427817769, End: 1428342412
[2015-04-06 23:17:13,303] ERROR [utils - 115:fail] - Partial History available with Changelog


The setup is 10.70.43.140 is in the same state, if you would want to have a look.

Comment 4 Aravinda VK 2015-04-07 11:26:53 UTC
Changelog crash patch(http://review.gluster.org/10074) is merged and BZ 1209138 is opened to track package dependency. Moving this bug to MODIFIED.

Comment 5 Aravinda VK 2015-05-27 08:08:47 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.


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