View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000155 | bareos-core | director | public | 2013-04-18 10:25 | 2015-03-25 19:18 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 12.04 |
Product Version | 12.4.2 | ||||
Fixed in Version | 12.4.4 | ||||
Summary | 0000155: runafterjob doesn't get executed if a runscript directive is placed before the directive runafterjob | ||||
Description | evidently the order in which runafterjob and runscript are placed in a job resource effects whether runafterjob get executed or not. place: runafterjob = ... Runscript {...} runafterjob gets executed reverse order: Runscript {...} runafterjob = ... runafterjob does not get executed | ||||
Steps To Reproduce | ### Copy2Tape Jobs ### Job { Name = "Copy2Tape" Type = Copy JobDefs = "StdLinux" Level = Full Pool = VFB Messages = Tapes_entnehmen Storage = VFB Schedule = Copy2Tape Selection Type = SQLQuery Selection Pattern = "SELECT max(JobId) FROM Job as J ,Pool as P WHERE J.poolid = P.poolid and J.Level='F' AND J.Type='B' AND J.JobStatus IN ('T','W') AND P.name = 'VFB';" Maximum Concurrent Jobs = 6 Priority = 14 RunScript { Console = "export storage=TSL dstslots=5 volume=%V" RunsWhen = After RunsOnClient = no } RunAfterJob = "/bin/bash -c \"/bin/echo Remove Tape %V from Slot 5 |/usr/sbin/bsmtp -h localhost -f '(Remove Tape %V Slot 5)' -s 'Remove Tape %V from Slot 5' root@localhost" } | ||||
Tags | No tags attached. | ||||
I need some debugging output to see what is happening. I guess these are director runscripts only right ? If so a capture of a bareos-dir -f -d 200 would be handy to do the first analyze. |
|
works with Version 12.4.3-657.1 | |
Fix committed to bareos bareos-12.4 branch with changesetid 945. | |
Fix committed to bareos2015 bareos-13.2 branch with changesetid 4235. | |
Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again. Sorry for the noise. |
|
bareos: bareos-12.4 9d5f6267 2013-05-04 13:15
Ported: N/A Details Diff |
Return right returnvalue on import/export/move cmd. We were always returning 0 (e.g. operation failed) for the import/export/move commands. This makes any runscript fail any next runscript and the Job also fails. Fixes 0000146: Variable "Job Exit Code" in mailcommand reports always "Error" when doing copy or migration job Fixes 0000155: runafterjob doesn't get executed if a runscript directive is placed before the directive runafterjob |
Affected Issues 0000146, 0000155 |
|
mod - src/dird/ua_impexp.c | Diff File | ||
bareos2015: bareos-12.4 729d2238 2013-05-04 15:15 Ported: N/A Details Diff |
Return right returnvalue on import/export/move cmd. We were always returning 0 (e.g. operation failed) for the import/export/move commands. This makes any runscript fail any next runscript and the Job also fails. Fixes 0000146: Variable "Job Exit Code" in mailcommand reports always "Error" when doing copy or migration job Fixes 0000155: runafterjob doesn't get executed if a runscript directive is placed before the directive runafterjob |
Affected Issues 0000146, 0000155 |
|
mod - src/dird/ua_impexp.c | Diff File | ||
bareos: master b93d0fdb 2013-05-04 21:25
Ported: N/A Details Diff |
Return right returnvalue on import/export/move cmd. We were always returning 0 (e.g. operation failed) for the import/export/move commands. This makes any runscript fail any next runscript and the Job also fails. Fixes 0000146: Variable "Job Exit Code" in mailcommand reports always "Error" when doing copy or migration job Fixes 0000155: runafterjob doesn't get executed if a runscript directive is placed before the directive runafterjob |
Affected Issues 0000146, 0000155 |
|
mod - src/dird/ua_impexp.c | Diff File | ||
bareos2015: bareos-13.2 f59a541b 2013-05-04 23:25 Ported: N/A Details Diff |
Return right returnvalue on import/export/move cmd. We were always returning 0 (e.g. operation failed) for the import/export/move commands. This makes any runscript fail any next runscript and the Job also fails. Fixes 0000146: Variable "Job Exit Code" in mailcommand reports always "Error" when doing copy or migration job Fixes 0000155: runafterjob doesn't get executed if a runscript directive is placed before the directive runafterjob |
Affected Issues 0000146, 0000155 |
|
mod - src/dird/ua_impexp.c | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-04-18 10:25 |
|
New Issue | |
2013-04-22 11:17 | mvwieringen | Note Added: 0000365 | |
2013-04-22 11:17 | mvwieringen | Assigned To | => mvwieringen |
2013-04-22 11:17 | mvwieringen | Status | new => feedback |
2013-04-23 16:29 | mvwieringen | Changeset attached | => bareos master c48f866f |
2013-04-23 16:29 | mvwieringen | Status | feedback => closed |
2013-04-23 16:29 | mvwieringen | Resolution | open => fixed |
2013-04-23 16:29 | mvwieringen | Changeset attached | => bareos Branch-12.4 e47164f2 |
2013-04-23 16:30 | mvwieringen | Assigned To | mvwieringen => |
2013-04-23 16:30 | mvwieringen | Fixed in Version | => 12.4.4 |
2013-04-23 17:41 | mvwieringen | Status | closed => resolved |
2013-04-23 17:44 | mvwieringen | Assigned To | => user12 |
2013-04-23 17:44 | mvwieringen | Status | resolved => assigned |
2013-04-23 17:44 | mvwieringen | Status | assigned => resolved |
2013-04-24 09:51 | mvwieringen | Assigned To | user12 => |
2013-06-06 17:48 |
|
Note Added: 0000447 | |
2013-06-06 17:48 |
|
Status | resolved => closed |
2013-06-06 17:48 |
|
Assigned To | => user12 |
2013-08-13 03:12 |
|
Changeset attached | => bareos master b93d0fdb |
2013-08-13 03:12 |
|
Changeset attached | => bareos bareos-12.4 9d5f6267 |
2013-08-13 03:12 |
|
Note Added: 0000593 | |
2013-08-13 03:12 |
|
Assigned To | user12 => mvwieringen adm |
2013-08-13 03:12 |
|
Status | closed => resolved |
2013-08-13 09:23 |
|
Assigned To | mvwieringen adm => |
2013-08-13 09:23 |
|
Status | resolved => closed |
2015-03-25 16:51 | mvwieringen | Changeset attached | => bareos2015 bareos-12.4 729d2238 |
2015-03-25 16:51 | mvwieringen | Changeset attached | => bareos2015 bareos-13.2 f59a541b |
2015-03-25 16:51 | mvwieringen | Note Added: 0001379 | |
2015-03-25 16:51 | mvwieringen | Status | closed => resolved |
2015-03-25 19:18 | joergs | Note Added: 0001533 | |
2015-03-25 19:18 | joergs | Status | resolved => closed |