[Bugs] [Bug 1208067] New: [SNAPSHOT]: Snapshot create fails while using scheduler to create snapshots
bugzilla at redhat.com
bugzilla at redhat.com
Wed Apr 1 10:24:34 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1208067
Bug ID: 1208067
Summary: [SNAPSHOT]: Snapshot create fails while using
scheduler to create snapshots
Product: GlusterFS
Version: mainline
Component: snapshot
Severity: high
Assignee: bugs at gluster.org
Reporter: senaik at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com
Description of problem:
=======================
While creating snapshots using scheduler, snapshot create fails with "Invalid
Syntax error"
Version-Release number of selected component (if applicable):
============================================================
glusterfs 3.7dev built on Mar 27 2015
How reproducible:
=================
always
Steps to Reproduce:
==================
1.Create a 6x2 dist-rep volume and start it
Enable USS and quota on the volume
2.Fuse and NFS mount the volume and create some IO
3.Create another dist-rep volume – this is the shared storage which will be
mounted on all nodes
4. Initialise the snapshot scheduler on all nodes using snap_scheduler.py init
5. Enable the snap scheduler on all nodes using snap_scheduler.py enable
6. Add a job which will create a new snapshot schedule for every 30mins on the
volume using snap_scheduler.py add J2 "*/30 * * * * " vol2
7. List the Job scheduled using snap_scheduler.py list
[root at inception ~]# snap_scheduler.py list
JOB_NAME SCHEDULE OPERATION VOLUME NAME
--------------------------------------------------------------------
J1 */30 * * * * Snapshot Create vol0
J2 */2 * * * * Snapshot Create vol2
8.Check gluster snapshot list after an hour. There were no snapshots created.
9.Check /var/log/glusterfs/gcron.log. snapshot create fails with "Invalid
Syntax" error
[2015-04-01 12:30:01,881 gcron.py:137 main] DEBUG locking_file =
/var/run/gluster/snaps/shared_storage/lock_files/J1
[2015-04-01 12:30:01,882 gcron.py:138 main] DEBUG volname = vol0
[2015-04-01 12:30:01,899 gcron.py:92 doJob] DEBUG
/var/run/gluster/snaps/shared_storage/lock_files/J1 last modified at Wed Apr 1
12:30:01 2015
[2015-04-01 12:30:01,899 gcron.py:102 doJob] INFO Job Snapshot-vol0 has been
processed already
[2015-04-01 13:00:02,043 gcron.py:137 main] DEBUG locking_file =
/var/run/gluster/snaps/shared_storage/lock_files/J1
[2015-04-01 13:00:02,043 gcron.py:138 main] DEBUG volname = vol0
[2015-04-01 13:00:02,051 gcron.py:92 doJob] DEBUG
/var/run/gluster/snaps/shared_storage/lock_files/J1 last modified at Wed Apr 1
13:00:01 2015
[2015-04-01 13:00:02,051 gcron.py:94 doJob] DEBUG Processing job Snapshot-vol0
[2015-04-01 13:00:02,051 gcron.py:64 takeSnap] DEBUG Running command 'gluster
snapshot create vol0-snapshot-20150401130002 vol0'
[2015-04-01 13:00:02,180 gcron.py:71 takeSnap] DEBUG Command 'gluster snapshot
create vol0-snapshot-20150401130002 vol0' returned '1'
[2015-04-01 13:00:02,180 gcron.py:74 takeSnap] ERROR Snapshot of vol0 failed
[2015-04-01 13:00:02,185 gcron.py:75 takeSnap] ERROR Command output:
[2015-04-01 13:00:02,186 gcron.py:76 takeSnap] ERROR Invalid Syntax.
Usage: snapshot create <snapname> <volname(s)> [no-timestamp] [description
<description>] [force]
[2015-04-01 13:00:02,186 gcron.py:98 doJob] ERROR Job Snapshot-vol0 failed
[2015-04-01 13:30:01,748 gcron.py:137 main] DEBUG locking_file =
/var/run/gluster/snaps/shared_storage/lock_files/J1
[2015-04-01 13:30:01,749 gcron.py:138 main] DEBUG volname = vol0
Actual results:
Expected results:
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list