[Bugs] [Bug 1224076] New: [Backup]: Glusterfind not working with change-detector as 'changelog'

bugzilla at redhat.com bugzilla at redhat.com
Fri May 22 07:43:00 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1224076

            Bug ID: 1224076
           Summary: [Backup]: Glusterfind not working with change-detector
                    as 'changelog'
           Product: Red Hat Gluster Storage
           Version: 3.1
         Component: glusterfs
     Sub Component: glusterfind
          Severity: medium
          Assignee: rhs-bugs at redhat.com
          Reporter: sanandpa at redhat.com
        QA Contact: sanandpa at redhat.com
                CC: annair at redhat.com, avishwan at redhat.com,
                    bugs at gluster.org, khiremat at redhat.com,
                    nsathyan at redhat.com
        Depends On: 1208520
            Blocks: 1186580 (qe_tracker_everglades)



+++ This bug was initially created as a clone of Bug #1208520 +++

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 at dhcp43-48 ~]# 
[root at 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 at dhcp43-48 ~]# 
[root at 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 at 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 at dhcp43-48 ~]# 
[root at 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 at dhcp43-48 ~]# 
[root at dhcp43-48 ~]# 
[root at dhcp43-48 ~]#

--- Additional comment from Aravinda VK on 2015-04-02 10:21:35 EDT ---

Issue is due to BZ 1207643. We don't need any patch for glusterfind to fix this
apart from patches sent for 1207643

--- Additional comment from Aravinda VK on 2015-04-06 04:21:31 EDT ---

Addition to the patch sent for BZ 1207643, we need to install "pyxattr"
package.

yum install pyxattr 

or 

pip install pyxattr

--- Additional comment from Sweta Anandpara on 2015-04-06 08:14:25 EDT ---

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.

--- Additional comment from Aravinda VK on 2015-04-07 07:26:53 EDT ---

Changelog crash patch(http://review.gluster.org/10074) is merged and BZ 1209138
is opened to track package dependency. Moving this bug to MODIFIED.


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1186580
[Bug 1186580] QE tracker bug for Everglades
https://bugzilla.redhat.com/show_bug.cgi?id=1208520
[Bug 1208520] [Backup]: Glusterfind not working with change-detector as
'changelog'
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=gE0jWVo1nw&a=cc_unsubscribe


More information about the Bugs mailing list