[Bugs] [Bug 1209120] New: [Snapshot] White-spaces are not handled properly in Snapshot scheduler
bugzilla at redhat.com
bugzilla at redhat.com
Mon Apr 6 10:07:08 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1209120
Bug ID: 1209120
Summary: [Snapshot] White-spaces are not handled properly in
Snapshot scheduler
Product: GlusterFS
Version: 3.6.2
Component: snapshot
Severity: urgent
Assignee: bugs at gluster.org
Reporter: ashah at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com
Description of problem:
While adding jobs to scheduler, white-spaces are not handled properly in add
and delete operations.
Version-Release number of selected component (if applicable):
[root at localhost upsteam_build]# snap_scheduler.py status
snap_scheduler: Snapshot scheduling status: Enabled
[root at localhost upsteam_build]# rpm -qa | grep glusterfs
glusterfs-fuse-3.7dev-0.910.git17827de.el6.x86_64
glusterfs-rdma-3.7dev-0.910.git17827de.el6.x86_64
glusterfs-libs-3.7dev-0.910.git17827de.el6.x86_64
samba-glusterfs-3.6.509-169.4.el6rhs.x86_64
glusterfs-api-3.7dev-0.910.git17827de.el6.x86_64
glusterfs-3.7dev-0.910.git17827de.el6.x86_64
glusterfs-geo-replication-3.7dev-0.910.git17827de.el6.x86_64
glusterfs-cli-3.7dev-0.910.git17827de.el6.x86_64
glusterfs-server-3.7dev-0.910.git17827de.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Create 2*2 distributed replicate volume
2. create shared storage and mount on each storage node on path
/var/run/gluster/snaps/shared_storage
3. initialize scheduler on each storage node e.g run snap_scheduler.py init
command
4. Enable scheduler to storage nodes e.g run snap_scheduler.py enable
4 Add jobs to scheduler . e.g snap_scheduler.py add "snap1 vol1 " "* 11 * * *"
vol0
Actual results:
[root at localhost ~]# snap_scheduler.py add "snap1 vol1 " "* 11 * * *" vol0
snap_scheduler: Successfully added snapshot schedule
[root at localhost ~]# snap_scheduler.py list
JOB_NAME SCHEDULE OPERATION VOLUME NAME
--------------------------------------------------------------------
snap1 * 11 * * * Snapshot Create vol0
[root at localhost ~]# snap_scheduler.py delete snap1
Traceback (most recent call last):
File "/usr/sbin/snap_scheduler.py", line 525, in <module>
main()
File "/usr/sbin/snap_scheduler.py", line 510, in main
perform_operation(args)
File "/usr/sbin/snap_scheduler.py", line 445, in perform_operation
ret = delete_schedules(args.jobname)
File "/usr/sbin/snap_scheduler.py", line 287, in delete_schedules
os.remove(job_lockfile)
OSError: [Errno 2] No such file or directory:
'/var/run/gluster/snaps/shared_storage/lock_files/snap1'
[root at localhost ~]# snap_scheduler.py list
Expected results:
White spaces should be handled properly
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