Bug #9822
closedJob is not run for Technique JobScheduler in Rudder
Description
In Rudder 4.0 (and maybe 3.2?), technique Job Scheduler doesn't report anything
Outputs are:
ue@@2016-12-19 18:10:28+00:00##root@#The command will be run at a random time after 19:00 on this node (/bin/true) cf_orchestrateur_4_labo_normation_com__1482171324_Mon_Dec_19_19_15_24_2016_0x7fb752585700:R: @@jobScheduler@@log_info@@32377fd7-02fd-43d0-aab7-28460a91347b@@fd0e6502-c9d9-41ec-a386-f025c1aae1a7@@0@@Job@@/bin/true@@2016-12-19 18:15:27+00:00##root@#The command will be run at a random time after 19:00 on this node (/bin/true) cf_orchestrateur_4_labo_normation_com__1482171624_Mon_Dec_19_19_20_24_2016_0x7fb752585700:R: @@jobScheduler@@log_info@@32377fd7-02fd-43d0-aab7-28460a91347b@@fd0e6502-c9d9-41ec-a386-f025c1aae1a7@@0@@Job@@/bin/true@@2016-12-19 18:20:27+00:00##root@#Job has been launched (/bin/true), result will be reported on next run cf_orchestrateur_4_labo_normation_com__1482171624_Mon_Dec_19_19_20_24_2016_0x7fb752585700:R: @@jobScheduler@@log_info@@32377fd7-02fd-43d0-aab7-28460a91347b@@fd0e6502-c9d9-41ec-a386-f025c1aae1a7@@0@@Job@@/bin/true@@2016-12-19 18:20:27+00:00##root@#The command will be run at a random time after 19:00 on this node (/bin/true)
So job was not run, and not reports afterwards
Updated by Nicolas CHARLES almost 8 years ago
running manually the agent at the time of the run (or forcing with with "any") correctly defines the persistent class, and trigger the reports for subsequent runs
Updated by Nicolas CHARLES almost 8 years ago
"interestingly", we don't have prefixes for class names defined by job scheduler, which open door for all possible collisions :(
Updated by Nicolas CHARLES almost 8 years ago
- Subject changed from No reports for Technique JobScheudler in Rudder 4.0 to No reports for Technique JobScheudler in Rudder
- Target version changed from 3.2.11 to 3.1.18
ok, after more analysis, it fails because class test_jours_list_iterator is defined at pass3, so the report is made before the command is run, defining the persistent class job_scheduler_lock_${iterator}, and preventing the command from being executed
Updated by Nicolas CHARLES almost 8 years ago
- Subject changed from No reports for Technique JobScheudler in Rudder to Job is not run for Technique JobScheduler in Rudder
- Description updated (diff)
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES almost 8 years ago
- Status changed from New to In progress
Updated by Nicolas CHARLES almost 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1096
Updated by Nicolas CHARLES almost 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|65533817547990cc236ec66c76ff59c1bd2a87a2.
Updated by Vincent MEMBRÉ almost 8 years ago
- Status changed from Pending release to Released