Actions
Bug #2454
closed(ex PT/ Technique)JobScheduler with several Jobs returns Success but doesn't execute any other job that the first one defined.
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
I've defined a Policy Instance (Directive for Rudder 2.4+) jobScheduler in Rudder 2.3 on Debian with two jobs: The first one must be exectued between 10AM and 111AM and the second one between 11AM and 12PM .
Until the first job is executed, the report is Unkown, after its execution, report is Success and the second one is never executed.
Here is the syslog on agent side: The first job have to execute scriptOne.sh and the second one scriptTwo.sh but there is no mention about scriptTwo.
[...] Apr 19 10:51:26 debian-5-32 rudder[25509]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 10:51:20+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#The command will be run at a random time after 10:00 on this node (/root/scriptOne.sh) Apr 19 10:53:01 debian-5-32 rudder[25517]: R: @@jobScheduler@@result_success@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 10:52:57+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#Job return a success return code on last completed execution (/root/scriptOne.sh) Apr 19 10:53:01 debian-5-32 rudder[25569]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 10:52:57+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#Job has been launched (/root/scriptOne.sh), result will be reported on next run Apr 19 10:53:01 debian-5-32 rudder[25569]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 10:52:57+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#The command will be run at a random time after 10:00 on this node (/root/scriptOne.sh) Apr 19 10:56:14 debian-5-32 rudder[25848]: R: @@jobScheduler@@result_success@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 10:56:07+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#Job return a success return code on last completed execution (/root/scriptOne.sh) [...] Apr 19 11:01:19 debian-5-32 rudder[26229]: R: @@jobScheduler@@result_success@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 11:01:05+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#Job return a success return code on last completed execution (/root/scriptOne.sh) Apr 19 11:01:19 debian-5-32 rudder[26229]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 [...] Apr 19 11:46:29 debian-5-32 rudder[29210]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 11:46:11+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#The command will be run at a random time after 10:00 on this node (/root/scriptOne.sh) Apr 19 11:52:19 debian-5-32 rudder[29535]: R: @@jobScheduler@@result_success@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 11:51:27+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#Job return a success return code on last completed execution (/root/scriptOne.sh) Apr 19 11:52:19 debian-5-32 rudder[29535]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 11:51:27+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#The command will be run at a random time after 10:00 on this node (/root/scriptOne.sh) Apr 19 11:56:29 debian-5-32 rudder[29868]: R: @@jobScheduler@@result_success@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 11:56:13+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#Job return a success return code on last completed execution (/root/scriptOne.sh) Apr 19 11:56:31 debian-5-32 rudder[29868]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 11:56:13+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#The command will be run at a random time after 10:00 on this node (/root/scriptOne.sh) Apr 19 12:02:10 debian-5-32 rudder[30197]: R: @@jobScheduler@@result_success@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 12:01:59+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#Job return a success return code on last completed execution (/root/scriptOne.sh) Apr 19 12:02:11 debian-5-32 rudder[30197]: R: @@jobScheduler@@log_info@@342369e4-f7d3-4089-8988-03cdb99ea076@@6097abb3-dd0a-4df8-b92a-7e329a021ec4@@2@@jobScheduler@@None@@2012-04-19 12:01:59+02:00##0876521e-3c81-4775-85c7-5dd7f9d5d3da@#The command will be run at a random time after 10:00 on this node (/root/scriptOne.sh) [...]
Actions