View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001190 | bareos-core | director | public | 2020-02-12 11:36 | 2020-11-30 15:47 |
| Reporter | arogge | Assigned To | franku | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 19.2.6 | ||||
| Summary | 0001190: Schedules without a client will not be run | ||||
| Description | When you configure a job without a client (only possible on some types like copy and migrate) the job will not be scheduled. | ||||
| Steps To Reproduce | 1. Configure a joblike this: Job { Name = "backup-bareos-fd" Type = Copy Messages = "Standard" Pool = "Full" Schedule = "MySchedule" SelectionType = PoolUncopiedJobs } The job will not be scheduled even though other jobs referencing MySchedule will be scheduled. I would expect the job to be scheduled. | ||||
| Additional Information | This happens since an upgrade to 19.2.5. | ||||
| Tags | No tags attached. | ||||
| related to | 0001187 | closed | arogge_adm | Release Bareos 19.2.7 |
| related to | 0001282 | closed | arogge | Release Bareos 20.0.0 |
| Tested and confirmed. | |
|
I'm not sure if this is really happening only with 19.5 or is a bug at all. I had the same issue with an 18.2.5 installation. But after investigating this further I noticed that the exact behavior occurs if the Schedule is _not_ referenced by a Job. I did not recheck this with 19.x |
|
| Brock Palen from the mailing list confirmed that the issue only occurs when no client is configured on a job. | |
| Fix committed to bareos master branch with changesetid 12909. | |
| Fix committed to bareos bareos-19.2 branch with changesetid 12911. | |
|
bareos: master d0c9765e 2020-02-22 13:37 Ported: N/A Details Diff |
scheduler: run jobs without client (copy/migrate) Fixes 0001190: Schedules without a client will not be run A misplaced pointer guard prevents copy or migrate jobs to be run by the scheduler. This commit fixes the bug and adds another unittest that tests if a scheduled copy job runs, hence without client. |
Affected Issues 0001190 |
|
| mod - core/src/dird/scheduler_private.cc | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/catalog/MyCatalog.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/client/bareos-fd.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/console/bareos-mon.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/director/bareos-dir.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/Catalog.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/LinuxAll.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/SelfTest.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/Windows All Drives.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/job/backup-bareos-fd.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/jobdefs/DefaultJob.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/messages/Daemon.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/messages/Standard.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Differential.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Full.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Incremental.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Scratch.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/profile/operator.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/schedule/schedule.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/storage/File.conf | Diff File | ||
| mod - core/src/tests/scheduler.cc | Diff File | ||
|
bareos: bareos-19.2 145c8731 2020-02-22 13:37 Committer: arogge Ported: N/A Details Diff |
scheduler: run jobs without client (copy/migrate) Fixes 0001190: Schedules without a client will not be run A misplaced pointer guard prevents copy or migrate jobs to be run by the scheduler. This commit fixes the bug and adds another unittest that tests if a scheduled copy job runs, hence without client. (cherry picked from commit d0c9765eeb3be722134bb1b5051d8a2f0dfb44c3) |
Affected Issues 0001190 |
|
| mod - core/src/dird/scheduler_private.cc | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/catalog/MyCatalog.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/client/bareos-fd.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/console/bareos-mon.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/director/bareos-dir.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/Catalog.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/LinuxAll.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/SelfTest.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/fileset/Windows All Drives.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/job/backup-bareos-fd.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/jobdefs/DefaultJob.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/messages/Daemon.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/messages/Standard.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Differential.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Full.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Incremental.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/pool/Scratch.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/profile/operator.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/schedule/schedule.conf | Diff File | ||
| add - core/src/tests/configs/scheduler-on-time-noday-noclient/bareos-dir.d/storage/File.conf | Diff File | ||
| mod - core/src/tests/scheduler.cc | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-02-12 11:36 | arogge | New Issue | |
| 2020-02-12 11:36 | arogge | Assigned To | => arogge |
| 2020-02-12 11:36 | arogge | Status | new => confirmed |
| 2020-02-12 11:36 | arogge | Note Added: 0003800 | |
| 2020-02-16 02:17 | normic | Note Added: 0003816 | |
| 2020-02-18 10:28 | arogge | Status | confirmed => new |
| 2020-02-18 10:28 | arogge | Summary | Schedules without a day will not be run => Schedules without a client will not be run |
| 2020-02-18 10:28 | arogge | Description Updated | |
| 2020-02-18 10:28 | arogge | Steps to Reproduce Updated | |
| 2020-02-20 14:03 | arogge | Note Added: 0003848 | |
| 2020-02-25 12:22 | franku | Changeset attached | => bareos master d0c9765e |
| 2020-02-25 12:22 | franku | Note Added: 0003852 | |
| 2020-02-25 12:22 | franku | Assigned To | arogge => franku |
| 2020-02-25 12:22 | franku | Status | new => resolved |
| 2020-02-25 12:22 | franku | Resolution | open => fixed |
| 2020-02-25 12:48 | arogge | Assigned To | franku => arogge |
| 2020-02-25 12:48 | arogge | Status | resolved => new |
| 2020-02-25 12:48 | arogge | Resolution | fixed => reopened |
| 2020-02-25 12:48 | arogge | Status | new => assigned |
| 2020-02-25 12:49 | arogge | Relationship added | related to 0001187 |
| 2020-02-26 12:22 | arogge | Changeset attached | => bareos bareos-19.2 145c8731 |
| 2020-02-26 12:22 | franku | Note Added: 0003860 | |
| 2020-02-26 12:22 | franku | Assigned To | arogge => franku |
| 2020-02-26 12:22 | franku | Status | assigned => resolved |
| 2020-02-26 12:22 | franku | Resolution | reopened => fixed |
| 2020-04-16 19:28 | arogge | Status | resolved => closed |
| 2020-11-30 15:47 | arogge | Relationship added | related to 0001282 |