Changesets: bareos

master 989b8736

2024-01-05 06:49

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
thread-list: fix not properly deleting move constructor
mod - core/src/lib/thread_list.h Diff File

master 27333f57

2024-01-04 15:19

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
ktls: remove use of "hardcoded" port value
mod - core/src/tests/ktls.cc Diff File

master 4a327e62

2024-01-04 15:11

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
bnet-server-tcp: split up creating+binding and listening

Instead of bnetservertcp doing open() + bind() + listen() all on its
own, we instead split it up so that you can give the tcp server some
already prepared sockets.

This can be used for great effect in unit tests, where you can now
1) create the sockets inside the test with port set to 0
2) give those sockets to the tcp server to listen to
3) query the selected (free) port with getsockname
This way you do not have to hardcode any ports inside the unit tests.

This also another step in disentangling the socket code and the bareos
core since you now do not need to read the address/port from the
configuration. Hopefully we can in the future unit tests sockets
without needing full blown config parsers.
mod - core/src/dird/socket_server.cc Diff File
mod - core/src/dird/socket_server.h Diff File
mod - core/src/filed/socket_server.cc Diff File
mod - core/src/lib/bnet_server_tcp.cc Diff File
mod - core/src/lib/bnet_server_tcp.h Diff File
mod - core/src/stored/socket_server.cc Diff File

master d569a558

2024-01-03 08:55

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
checkpoints-test: fix comparing bad numbers

The test was comparing the number of files that the fd send to the
sd (this is the number displayed in the backup summary) to the number
of files that get restored (which is equal to the number of files that
the sd sends to the director). This of course does not make sense and
can cause problems if the cancel does not happen fast enough. Since
in that case the fd might continue sending files to the sd with the sd
never having the chance to send those to the director.

The fix is simple: we need to check the backup log and add up all
checkpoint batch inserts instead. This should be equal to the number
of files that the sd send to the director.

For easier debugging I also added tracing to the test.
mod - systemtests/tests/checkpoints/testrunner-checkpoints-on-cancel Diff File

master 9ec4dcde

2024-01-02 15:25

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
jobs: add version information to joblog

Sadly on the fd side there is no easy way to do it for each job
automatically. At the moment I added it manually to backup and
restore jobs. We will see if we want to add them somewhere else as
well.
mod - core/src/dird/job.cc Diff File
mod - core/src/filed/backup.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/filed/restore.cc Diff File
mod - core/src/stored/fd_cmds.cc Diff File

master 0ff4f67c

2024-01-02 12:52

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
ktls-test: add tls module detection
mod - core/src/tests/ktls.cc Diff File

master 80f2f651

2024-01-02 10:00

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
heartbeat: change api
mod - core/src/filed/backup.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/filed/filed_jcr_impl.h Diff File
mod - core/src/filed/heartbeat.cc Diff File
mod - core/src/filed/heartbeat.h Diff File

master e79d40ba

2023-12-27 17:58

gmueller2000privat


Committer: stephand

Ported: N/A

Details Diff
Make Prometheus Exporter work with pyhton3
mod - contrib/dir-plugins/prometheus/BareosDirPluginPrometheusExporter.py Diff File

master 67a87372

2023-12-27 15:06

bruno-at-bareos


Committer: Bareos Bot

Ported: N/A

Details Diff
python-bareos: use socket.create_connection()

- remove hard-coded AF_INET in socket creation.
- replace socket.connect() by a higher-level function
socket.create_connection() allowing AF_INET6 familly connection.
- set a default of 30 to self.timeout, simplify code to remove
`if self.timeout ...`

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Sebastian Sura <124262655+sebsura@users.noreply.github.com>
mod - python-bareos/bareos/bsock/lowlevel.py Diff File

master fbcd7f0a

2023-12-22 17:43

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: cleanup traymonitor variables
mod - CMakeLists.txt Diff File
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/CMakeLists.txt Diff File
mod - core/cmake/BareosGenerateDebianInfo.cmake Diff File

master 8d06f370

2023-12-22 17:40

arogge

Ported: N/A

Details Diff
pr_tool: use backport template from module

This was previously taken from the backport-branch, which is probably
not what we want.
mod - devtools/pip-tools/pr_tool/backport.py Diff File

master 57b632d4

2023-12-22 17:17

Bareos Bot


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0001595

plugins: fix cancel handling crash
mod - CHANGELOG.md Diff File
mod - core/scripts/btraceback.in Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/address_conf.cc Diff File
mod - core/src/lib/jcr.cc Diff File
mod - core/src/plugins/filed/python/module/bareosfd.cc Diff File
mod - core/src/plugins/filed/python/plugin_private_context.h Diff File
mod - core/src/plugins/filed/python/python-fd.cc Diff File
mod - core/src/plugins/stored/python/python-sd.cc Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/CancelFileset.conf.in Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/CancelNoWaitFileset.conf Diff File
add - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/job/cancel-check.conf Diff File
add - systemtests/tests/py3plug-fd-basic/python-modules/cancel-check-module.py Diff File
add - systemtests/tests/py3plug-fd-basic/testrunner-cancel-check Diff File
add - systemtests/tests/py3plug-fd-basic/testrunner-cancel-check-no-wait Diff File

master aa43c0b6

2023-12-22 17:17

Bareos Bot

Ported: N/A

Details Diff
Update CHANGELOG.md
mod - CHANGELOG.md Diff File

master d74b6b11

2023-12-22 17:03

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: remove unused includes option
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/BareosCommonMakefile Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - debian/rules Diff File

master 27443a5e

2023-12-22 16:53

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: use options
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/cmake/BareosGenerateDebianInfo.cmake Diff File

master dea08811

2023-12-22 15:55

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: remove unused readline option
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/BareosCommonMakefile Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - debian/rules Diff File

master 40b02445

2023-12-22 15:51

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: remove unused lockmgr option
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/CMakeLists.txt Diff File

master 4089de8a

2023-12-22 15:46

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: remove unused sbin-perm option
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - debian/rules Diff File

master bfde19f7

2023-12-22 15:45

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: use options
mod - cmake/BareosSetVariableDefaults.cmake Diff File

master e44c5606

2023-12-22 15:29

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: remove unused bsrdir option
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/CMakeLists.txt Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/BareosCommonMakefile Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - debian/rules Diff File

master 5f3a2af8

2023-12-22 15:26

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: remove unused docdir option
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/platforms/packaging/bareos.spec Diff File

master d72e0152

2023-12-22 13:52

arogge

Ported: N/A

Details Diff
FreeBSD: force /usr/local/man for manual pages
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/BareosCommonMakefile Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.common Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.database-tools Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.director Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.storage Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.storage-tape Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.tools Diff File

master 7396290e

2023-12-22 07:39

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
python-fd: switch static -> anon namespace
mod - core/src/plugins/filed/python/python-fd.cc Diff File

master ad577ffe

2023-12-22 07:19

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
python-fd: remove #ifdef __cplusplus
mod - core/src/plugins/filed/python/python-fd.cc Diff File

master 1f127fd9

2023-12-22 07:18

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
cancel-module: fix plugin crash during test
mod - systemtests/tests/py3plug-fd-basic/python-modules/cancel-check-module.py Diff File
 First  Prev  1 2 3 ... 70 ... 89 90 91 92 93 94 95 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 686 687 688  Next  Last