Changesets: bareos

master de6a9362

2019-11-22 22:24

pstorz

Ported: N/A

Details Diff
tests: set SITE to Windows-32/Windows-64
mod - core/CMakeLists.txt Diff File

master 1dd65de2

2019-11-22 17:27

pstorz

Ported: N/A

Details Diff
tests: Set DISCOVERY_TIMEOUT to 30 seconds
mod - core/CMakeLists.txt Diff File
mod - core/src/tests/CMakeLists.txt Diff File

master d5f22772

2019-11-22 15:15

franku


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0000339 from bareos/dev/franku/master/run-on-incoming-connect-interval

dev/franku/master/run on incoming connect interval

Add functionality for the RunOnIncomingConnectInterval director job directive:

- relevant jobs will be started after one minute of maximum idle time
- refactored scheduler and other code for testability
- moved initialization of the database connection to a separate file and consolidated duplicate code to a single function
- added a new database query
- added unit tests
mod - core/src/cats/bdb_dbi.h Diff File
mod - core/src/cats/bdb_mysql.h Diff File
mod - core/src/cats/bdb_postgresql.h Diff File
mod - core/src/cats/bvfs.cc Diff File
mod - core/src/cats/cats.cc Diff File
mod - core/src/cats/cats.h Diff File
mod - core/src/cats/cats_backends.h Diff File
mod - core/src/cats/dbi.cc Diff File
mod - core/src/cats/mysql.cc Diff File
mod - core/src/cats/postgresql.cc Diff File
mod - core/src/cats/sql_find.cc Diff File
mod - core/src/cats/sql_pooling.h Diff File
mod - core/src/dird/CMakeLists.txt Diff File
add - core/src/dird/check_catalog.cc Diff File
add - core/src/dird/check_catalog.h Diff File
mod - core/src/dird/dird.cc Diff File
mod - core/src/dird/dird_conf.h Diff File
mod - core/src/dird/fd_cmds.cc Diff File
add - core/src/dird/get_database_connection.cc Diff File
add - core/src/dird/get_database_connection.h Diff File
mod - core/src/dird/job.cc Diff File
add - core/src/dird/run_on_incoming_connect_interval.cc Diff File
add - core/src/dird/run_on_incoming_connect_interval.h Diff File
mod - core/src/dird/scheduler.cc Diff File
mod - core/src/dird/scheduler.h Diff File
mod - core/src/dird/scheduler_job_item_queue.cc Diff File
mod - core/src/dird/scheduler_job_item_queue.h Diff File
mod - core/src/dird/scheduler_private.cc Diff File
mod - core/src/dird/scheduler_private.h Diff File
mod - core/src/dird/scheduler_time_adapter.h Diff File
mod - core/src/dird/stats.cc Diff File
mod - core/src/dird/ua_output.cc Diff File
mod - core/src/include/baconfig.h Diff File
add - core/src/lib/api_mode.h Diff File
mod - core/src/lib/output_formatter.h Diff File
mod - core/src/tests/CMakeLists.txt Diff File
rm - core/src/tests/client-initiated-reconnect.cc Diff File
mod - core/src/tests/configs/client-initiated-reconnect/bareos-dir.d/job/backup-bareos-fd.conf Diff File
add - core/src/tests/run_on_incoming_connect_interval.cc Diff File
mod - core/src/tests/scheduler_job_item_queue.cc Diff File
add - docs/manuals/source/manually_added_config_directive_descriptions/dir-job-RunOnIncomingConnectInterval.rst.inc Diff File

master 9fcd6ce6

2019-11-22 15:07

pstorz

Ported: N/A

Details Diff
replaced % with # to avoid macro expansion in comment
mod - core/platforms/packaging/bareos.spec Diff File

master 879cc6ce

2019-11-22 14:45

pstorz

Ported: N/A

Details Diff
tests: use ';' in WINEPATH as delimiter
mod - core/CMakeLists.txt Diff File

master 86598009

2019-11-22 14:38

pstorz

Ported: N/A

Details Diff
tests: print out WINEPATH
mod - core/CMakeLists.txt Diff File

master 948e3b97

2019-11-22 13:30

pstorz

Ported: N/A

Details Diff
bareos.spec: add filedaemon-ovirt-python-plugin
mod - core/platforms/packaging/bareos.spec Diff File

master ee862f6b

2019-11-22 13:29

pstorz

Ported: N/A

Details Diff
plugins: cmake: install Ovirt plugin files
mod - core/src/plugins/filed/CMakeLists.txt Diff File

master 0e0ee3a6

2019-11-22 13:19

pstorz

Ported: N/A

Details Diff
ovirt-plugin: cleanup after import

- remove unneeded spec file
- add both authors to AUTHORS file
mod - AUTHORS Diff File
rm - core/src/plugins/filed/packaging/bareos-ovirt-plugin.spec Diff File

master 9f060a27

2019-11-22 13:18

franku

Ported: N/A

Details Diff
dird: remove unneeded and rename variables in RunResource
mod - core/src/dird/dird_conf.h Diff File
mod - core/src/dird/scheduler_private.cc Diff File

master d1786f0d

2019-11-22 12:40

franku

Ported: N/A

Details Diff
docs: add diagram for RunOnIncomingConnectInterval
add - docs/manuals/source/manually_added_config_directive_descriptions/dir-job-RunOnIncomingConnectInterval.rst.inc Diff File

master 0095ae82

2019-11-21 20:45

joergs

Ported: N/A

Details Diff
python-bareos: added convenience functions

The Director Console Protocol >= 18.2.4 offers a lot more connection parameters.
Add util functions to the classes to help providing the same set of parameters to all command line tools.

Allow password as string parameter. It will be converted to Bareos.Util.Password during initialization.

Also added a fallback to old Director Console protocol (12.4),
if authentication to Director fails.
If protocolversion is set exclipietly, there will be no automatic fallback.
mod - python-bareos/bareos/bsock/directorconsole.py Diff File
mod - python-bareos/bareos/bsock/filedaemon.py Diff File
mod - python-bareos/bareos/bsock/lowlevel.py Diff File
mod - python-bareos/bareos/bsock/protocolmessages.py Diff File
mod - python-bareos/bareos/exceptions.py Diff File
mod - python-bareos/bin/bareos-fd-connect.py Diff File
mod - python-bareos/bin/bareos-jsonrpc-server.py Diff File
mod - python-bareos/bin/bconsole-json.py Diff File
mod - python-bareos/bin/bconsole.py Diff File

master b0a0749f

2019-11-21 20:41

pstorz

Ported: N/A

Details Diff
tests: add tests dir only when GTEST exists
mod - core/src/CMakeLists.txt Diff File

master 4af7b649

2019-11-21 15:51

franku

Ported: N/A

Details Diff
regress: write version files before generating makefiles
mod - regress/scripts/regress-config.in Diff File

master 9724e6d5

2019-11-21 15:40

franku

Ported: N/A

Details Diff
sql: select terminated and warning jobs

- added an OR statement for jobstatus
- reformat sql code
- renamed a sql find function
mod - core/src/cats/cats.h Diff File
mod - core/src/cats/sql_find.cc Diff File
mod - core/src/dird/run_on_incoming_connect_interval.cc Diff File
mod - core/src/tests/run_on_incoming_connect_interval.cc Diff File

master 8b768536

2019-11-21 15:35

pstorz

Ported: N/A

Details Diff
tests: windows test works
mod - core/CMakeLists.txt Diff File
mod - core/src/CMakeLists.txt Diff File
mod - core/src/tests/CMakeLists.txt Diff File
mod - core/src/tests/lib_tests.cc Diff File
mod - core/src/tests/lib_tests_output_formatter.cc Diff File
mod - core/src/win32/compat/include/compat.h Diff File

master b3528f8f

2019-11-20 14:16

franku

Ported: N/A

Details Diff
fixup: apply pullrequest suggestions

- replaced bool with SqlFindResult as return type for FindLastStartTimeForJobAndClient
- handle return value accordingly
- replaced a const by constexpr
- renamed catalogue by catalog
- replace a poolmem by std::vector<char>
mod - core/src/cats/cats.h Diff File
mod - core/src/cats/sql_find.cc Diff File
mod - core/src/dird/CMakeLists.txt Diff File
mod - core/src/dird/dird.cc Diff File
mod - core/src/dird/run_on_incoming_connect_interval.cc Diff File
mod - core/src/dird/scheduler.cc Diff File
mod - core/src/dird/scheduler_private.cc Diff File
mod - core/src/tests/run_on_incoming_connect_interval.cc Diff File

master 5fcf7661

2019-11-20 13:19

franku


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0000335 from bareos/dev/franku/master/shutdown

bnet: check quit variable every second
mod - core/src/lib/bnet_server_tcp.cc Diff File

master ad12e9a1

2019-11-20 11:53

franku

Ported: N/A

Details Diff
dird: add or delete default copy constructors and assign operators

- SchedulerJobItem and SchedulerJobItemQueue
mod - core/src/dird/scheduler_job_item_queue.h Diff File
mod - core/src/dird/scheduler_private.h Diff File

master 859d5917

2019-11-20 11:44

franku

Ported: N/A

Details Diff
dird: always take out top item from queue

- no comparison needed because the job on top of the queue
is always the same or higher priority than next_job
mod - core/src/dird/scheduler_job_item_queue.cc Diff File
mod - core/src/dird/scheduler_job_item_queue.h Diff File
mod - core/src/dird/scheduler_private.cc Diff File
mod - core/src/tests/scheduler_job_item_queue.cc Diff File

master d1228f16

2019-11-20 08:59

franku

Ported: N/A

Details Diff
dird: cleanup scheduler code

- add comments
- remove an unused systemtest
- rename variables and functions
- add deleted copy constructors and assignment operators to a class
- declare SchedulerPrivate as class instead of a struct because it
is more than a passive data container
mod - core/src/dird/run_on_incoming_connect_interval.cc Diff File
mod - core/src/dird/run_on_incoming_connect_interval.h Diff File
mod - core/src/dird/scheduler.cc Diff File
mod - core/src/dird/scheduler.h Diff File
mod - core/src/dird/scheduler_job_item_queue.cc Diff File
mod - core/src/dird/scheduler_job_item_queue.h Diff File
mod - core/src/dird/scheduler_private.cc Diff File
mod - core/src/dird/scheduler_private.h Diff File
mod - core/src/tests/run_on_incoming_connect_interval.cc Diff File
mod - core/src/tests/scheduler_job_item_queue.cc Diff File
mod - systemtests/CMakeLists.txt Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/console/bareos-mon.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/messages/Daemon.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/messages/Standard.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/pool/Differential.conf Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/pool/Full.conf Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/pool/Incremental.conf Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/pool/Scratch.conf Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/profile/operator.conf Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/schedule/schedule.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-dir.d/storage/File.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-fd.d/client/myself.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-fd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-fd.d/director/bareos-mon.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-fd.d/messages/Standard.conf Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-sd.d/device/FileStorage.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-sd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-sd.d/director/bareos-mon.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-sd.d/messages/Standard.conf Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/bconsole.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/tray-monitor.d/client/FileDaemon-local.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/tray-monitor.d/director/Director-local.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/tray-monitor.d/monitor/bareos-mon.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/etc/bareos/tray-monitor.d/storage/StorageDaemon-local.conf.in Diff File
rm - systemtests/tests/client-initiated-connect-job-run-test/testrunner Diff File

master e38705d7

2019-11-19 18:07

franku

Ported: N/A

Details Diff
dird: print debug message only when job is started
mod - core/src/dird/scheduler_private.cc Diff File

master d03435f8

2019-11-19 18:01

franku

Ported: N/A

Details Diff
dird: remove inner loop from WaitForJobsToRun

- waiting can be done every turn of the outside loop
mod - core/src/dird/scheduler_private.cc Diff File

master 925a31ff

2019-11-19 17:47

franku

Ported: N/A

Details Diff
dird: using std::chrono::seconds for readability
mod - core/src/dird/scheduler_private.cc Diff File

master efe1ba26

2019-11-19 17:30

franku

Ported: N/A

Details Diff
dird: remove job from queue only just before it is run

- use a copy for comparison of the run time
- the sleep time could now be interrupted without forgetting a job-run
mod - core/src/dird/scheduler_job_item_queue.cc Diff File
mod - core/src/dird/scheduler_job_item_queue.h Diff File
mod - core/src/dird/scheduler_private.cc Diff File
mod - core/src/tests/scheduler_job_item_queue.cc Diff File
 First  Prev  1 2 3 ... 60 ... 120 ... 180 ... 240 ... 298 299 300 301 302 303 304 ... 360 ... 420 ... 480 ... 540 ... 600 ... 644 645 646  Next  Last