[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-bugs
Subject:    [Bacula-bugs] [Bacula Bug Reports 0002178]: Bconsole status schedule does not display some schedules
From:       Mantis Bug Tracker <nobody () bugs ! bacula ! org>
Date:       2015-12-27 12:17:57
Message-ID: e8ba9be02b397c02945ba4b7ad512cdc () bugs ! bacula ! org
[Download RAW message or body]


The following issue has been ACKNOWLEDGED. 
====================================================================== 
http://bugs.bacula.org/view.php?id=2178 
====================================================================== 
Reported By:                wandihuttel
Assigned To:                
====================================================================== 
Project:                    Bacula Bug Reports
Issue ID:                   2178
Category:                   bconsole
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
====================================================================== 
Date Submitted:             2015-10-20 00:11 BST
Last Modified:              2015-12-27 12:17 GMT
====================================================================== 
Summary:                    Bconsole status schedule does not display some
schedules
Description: 
Status schedule is not showing the hourly schedule or schedule with more than 1
hour correctly. 
But the schedule is working as expected, the jobs are being run every ten
minutes as defined in the schedule resource.

The user Ana Arruda made some tests and had the same problems.


Schedule {
  Name = "TenMinutes"
  Run = Level=Full hourly at 0:05
  Run = Level=Full hourly at 0:15
  Run = Level=Full hourly at 0:25
  Run = Level=Full hourly at 0:35
  Run = Level=Full hourly at 0:45
  Run = Level=Full hourly at 0:55
}

------------------------------------------------------------------------------------------------------------------------------
                
*status schedule job=Backup_Maquina_001 days=1

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Schedule
=====================================================================================
Full           Backup    10  Seg 19-Oct 00:05   Backup_Maquina_001 TenMinutes
Full           Backup    10  Seg 19-Oct 00:15   Backup_Maquina_001 TenMinutes
Full           Backup    10  Seg 19-Oct 00:25   Backup_Maquina_001 TenMinutes
Full           Backup    10  Seg 19-Oct 00:35   Backup_Maquina_001 TenMinutes
Full           Backup    10  Seg 19-Oct 00:45   Backup_Maquina_001 TenMinutes
Full           Backup    10  Seg 19-Oct 00:55   Backup_Maquina_001 TenMinutes
====
*

------------------------------------------------------------------------------------------------------------------------------


*show schedule=TenMinutes
Schedule: Name=TenMinutes Enabled=1
  --> Run Level=Full
      hour=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=0 1 2 3 4 5 6
      wom=0 1 2 3 4 5
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=5
  --> Run Level=Full
      hour=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=0 1 2 3 4 5 6
      wom=0 1 2 3 4 5
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=15
  --> Run Level=Full
      hour=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=0 1 2 3 4 5 6
      wom=0 1 2 3 4 5
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=25
  --> Run Level=Full
      hour=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=0 1 2 3 4 5 6
      wom=0 1 2 3 4 5
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=35
  --> Run Level=Full
      hour=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=0 1 2 3 4 5 6
      wom=0 1 2 3 4 5
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=45
  --> Run Level=Full
      hour=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=0 1 2 3 4 5 6
      wom=0 1 2 3 4 5
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=55


------------------------------------------------------------------------------------------------------------------------------


Schedule {
  Name = "BackupTwiceADay"
  Run = Level=Full          on  Monday-Friday  at  at 12:15 21:15 #Must have the
same minute
}

*status job=Backup_Maquina_002  days=1

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Schedule
=====================================================================================
Full           Backup    10  Seg 19-Oct 12:15   Backup_Maquina_002
BackupTwiceADay



*show schedule=BackupTwiceADay
Schedule: Name=BackupTwiceADay Enabled=1
  --> Run Level=Full
      hour=12 21
      mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=1 2 3 4 5
      wom=0 1 2 3 4 5
      woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=15



Best Regards
Wanderlei

Steps to Reproduce: 
Create these schedules, configure some job with this schedule and run "status
schedule"

Schedule {
  Name = "TenMinutes"
  Run = Level=Full hourly at 0:05
  Run = Level=Full hourly at 0:15
  Run = Level=Full hourly at 0:25
  Run = Level=Full hourly at 0:35
  Run = Level=Full hourly at 0:45
  Run = Level=Full hourly at 0:55
}


Schedule {
  Name = "BackupTwiceADay"
  Run = Level=Full          on  Monday-Friday  at  12:15 21:15
}

====================================================================== 

---------------------------------------------------------------------- 
 (0007219) emiliaarruda (reporter) - 2015-10-20 05:20
 http://bugs.bacula.org/view.php?id=2178#c7219 
---------------------------------------------------------------------- 
I was able to reproduce the reported issue. I'm attaching a patch to this, but
the status schedule output can differ depending on the schedule resource
definition:

1 - one Run line

Schedule {
  Name = "TwiceADay"
  Run = Level=Full on Monday-Friday at 12:15 21:15
}

*status schedule job=BackupClient1 days=2 

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Schedule
=========================================================
Full           Backup    10  Tue 20-Oct 12:15   BackupClient1      TwiceADay
Full           Backup    10  Tue 20-Oct 21:15   BackupClient1      TwiceADay
Full           Backup    10  Wed 21-Oct 12:15   BackupClient1      TwiceADay
Full           Backup    10  Wed 21-Oct 21:15   BackupClient1      TwiceADay
====

2 - Two Run lines

Schedule {
  Name = "TwiceADay"
  Run = Level=Full on Monday-Friday at 12:15
  Run = Level=Full on Monday-Friday at 21:15
}

*status schedule job=BackupClient1 days=2

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Schedule
==========================================================
Full           Backup    10  Tue 20-Oct 12:15   BackupClient1      TwiceADay
Full           Backup    10  Wed 21-Oct 12:15   BackupClient1      TwiceADay
Full           Backup    10  Tue 20-Oct 21:15   BackupClient1      TwiceADay
Full           Backup    10  Wed 21-Oct 21:15   BackupClient1      TwiceADay

It seems that to get the same output for both schedule definitions needs much
more code refactoring.

 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-10-20 00:11 wandihuttel    New Issue                                    
2015-10-20 05:19 emiliaarruda   File Added: 7.2.0-StSched.patch                 
  
2015-10-20 05:19 emiliaarruda   Note Added: 0007219                          
2015-10-20 05:20 emiliaarruda   Note Edited: 0007219                         
2015-12-27 12:17 kern           Status                   new => acknowledged 
2015-12-27 12:17 kern           Summary                  Bconsole status
schedule (some kinds of schedules ) => Bconsole status schedule does not display
some schedules
======================================================================



------------------------------------------------------------------------------
_______________________________________________
Bacula-bugs mailing list
Bacula-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic