[Bugs] [Bug 1231078] snap_scheduler script must be usable as python module.

bugzilla at redhat.com bugzilla at redhat.com
Fri Jul 3 06:44:48 UTC 2015


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

Anil Shah <ashah at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ON_QA                       |VERIFIED
                 CC|                            |ashah at redhat.com



--- Comment #5 from Anil Shah <ashah at redhat.com> ---
[root at darkknightrises sbin]# python
Python 2.6.6 (r266:84292, May 22 2015, 08:34:51) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import snap_scheduler
>>> snap_scheduler.main(['status'])
snap_scheduler: Snapshot scheduling status: Disabled
0
>>> snap_scheduler.main(['disable'])
snap_scheduler: Failed to disable scheduling. Error: Snapshot scheduling is
already disabled.
7
>>> snap_scheduler.main(['enable'])
snap_scheduler: Snapshot scheduling is enabled
0
>>> snap_scheduler.main(['list'])
snap_scheduler: No snapshots scheduled
0
>>> snap_scheduler.main(['add',"job1", "* * * * *" , "vol0"])
snap_scheduler: Successfully added snapshot schedule
0
>>> snap_scheduler.main(['add',"job1", "* * * * *" , "list"])
snap_scheduler: job1 already exists in schedule. Use 'edit' to modify job1
11
>>> snap_scheduler.main(['list'])
JOB_NAME         SCHEDULE         OPERATION        VOLUME NAME      
--------------------------------------------------------------------
job1             * * * * *        Snapshot Create  vol0             
0


Bug verified on build glusterfs-3.7.1-6.el6rhs

-- 
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=XUUzc4V8xe&a=cc_unsubscribe


More information about the Bugs mailing list