Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1231080 - Snapshot: When soft limit is reached, auto-delete is enable, create snapshot doesn't logs anything in log files
Snapshot: When soft limit is reached, auto-delete is enable, create snapshot ...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: snapshot (Show other bugs)
3.1
x86_64 Linux
unspecified Severity high
: ---
: RHGS 3.1.1
Assigned To: Avra Sengupta
Anil Shah
: Triaged, ZStream
Depends On:
Blocks: 1223636 1251815 1255310 1255311
  Show dependency treegraph
 
Reported: 2015-06-12 02:57 EDT by Anil Shah
Modified: 2016-09-17 09:06 EDT (History)
7 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1255310 (view as bug list)
Environment:
Last Closed: 2015-10-05 03:11:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1845 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 07:06:22 EDT

  None (edit)
Description Anil Shah 2015-06-12 02:57:30 EDT
Description of problem:

When soft-limit is reached, and auto-delete is enable, you try to create snapshot , its delete the first snapshot and creates new snapshot. But nothing is being logged in logs

Version-Release number of selected component (if applicable):

[root@darkknightrises bricks]# rpm -qa | grep glusterfs
glusterfs-libs-3.7.1-1.el6rhs.x86_64
glusterfs-fuse-3.7.1-1.el6rhs.x86_64
glusterfs-server-3.7.1-1.el6rhs.x86_64
glusterfs-3.7.1-1.el6rhs.x86_64
glusterfs-api-3.7.1-1.el6rhs.x86_64
glusterfs-cli-3.7.1-1.el6rhs.x86_64
glusterfs-geo-replication-3.7.1-1.el6rhs.x86_64
glusterfs-client-xlators-3.7.1-1.el6rhs.x86_64
glusterfs-debuginfo-3.7.1-1.el6rhs.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Create 2*2 distribute-replicate volume
2. enable auto-delete, set soft-limit and hard-limit on volume
3. Create some snapshots so that  max soft-limit is reached
4. Once you create snapshot, it will delete the first snapshot and create new snapshot.

Actual results:

When snapshot is delete and created , nothing is been logged in logs

Expected results:

Delete snapshot and create snapshot should be logged in logs

Additional info:

[root@darkknightrises bricks]# gluster snapshot config

Snapshot System Configuration:
snap-max-hard-limit : 256
snap-max-soft-limit : 50%
auto-delete : enable
activate-on-create : disable

Snapshot Volume Configuration:

Volume : snapvol
snap-max-hard-limit : 10
Effective snap-max-hard-limit : 10
Effective snap-max-soft-limit : 5 (50%)

Volume : vol
snap-max-hard-limit : 256
Effective snap-max-hard-limit : 256
Effective snap-max-soft-limit : 128 (50%)

[root@darkknightrises bricks]# gluster v info snapvol
 
Volume Name: snapvol
Type: Distributed-Replicate
Volume ID: 961b2621-cd36-4412-9620-8f74bb70a5db
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.33.214:/rhs/brick1/b1
Brick2: 10.70.33.219:/rhs/brick1/b2
Brick3: 10.70.33.225:/rhs/brick1/b3
Brick4: 10.70.44.13:/rhs/brick1/b4
Options Reconfigured:
features.barrier: disable
performance.readdir-ahead: on
snap-max-soft-limit: 50
auto-delete: enable
Comment 4 Avra Sengupta 2015-08-20 05:25:55 EDT
Upstream patch at http://review.gluster.org/#/c/11963/
Comment 6 Anil Shah 2015-08-28 05:58:41 EDT
[root@knightandday ~]# gluster snapshot config

Snapshot System Configuration:
snap-max-hard-limit : 256
snap-max-soft-limit : 20%
auto-delete : enable
activate-on-create : disable

Snapshot Volume Configuration:

Volume : testvol
snap-max-hard-limit : 256
Effective snap-max-hard-limit : 256
Effective snap-max-soft-limit : 51 (20%)


Able to see log in glusterd logs once soft limit is reached.

[2015-08-28 15:31:12.425410] W [MSGID: 106112] [glusterd-snapshot.c:7713:glusterd_handle_snap_limit] 0-management: Soft-limit (value = 51) of volume testvol is reached. Deleting snapshot Scheduled-test-testvol_GMT-2015.08.26-19.44.01

Bug verified on build glusterfs-3.7.1-13.el7rhgs.x86_64
Comment 8 errata-xmlrpc 2015-10-05 03:11:28 EDT
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-1845.html

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