[Bugs] [Bug 1210204] New: [SNAPSHOT] - Unable to delete scheduled jobs

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 9 07:40:37 UTC 2015


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

            Bug ID: 1210204
           Summary: [SNAPSHOT] - Unable to delete scheduled jobs
           Product: GlusterFS
           Version: mainline
         Component: snapshot
          Severity: urgent
          Assignee: bugs at gluster.org
          Reporter: senaik at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
=======================
Deleting scheduled jobs is failing

Version-Release number of selected component (if applicable):
=============================================================
gluster --version
glusterfs 3.7dev built on Apr  9 2015 01:10:22


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 J1 "*/30 * * * * " vol0

7. List the job scheduled
 snap_scheduler.py list
JOB_NAME         SCHEDULE         OPERATION        VOLUME NAME      
--------------------------------------------------------------------
J1               */30 * * * *     Snapshot Create  vol0             

8. Delete the job        
snap_scheduler.py delete J1
Traceback (most recent call last):
  File "/usr/sbin/snap_scheduler.py", line 517, in <module>
    main()
  File "/usr/sbin/snap_scheduler.py", line 502, in main
    perform_operation(args)
  File "/usr/sbin/snap_scheduler.py", line 431, in perform_operation
    ret = syntax_checker(args)
  File "/usr/sbin/snap_scheduler.py", line 348, in syntax_checker
    if (len(args.volname.split()) != 1):
AttributeError: 'Namespace' object has no attribute 'volname'

9. 

Actual results:
==============
Deleting scheduled jobs fails 

Expected results:
=================
Deleting scheduled job should be successful 

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