Changesets: bareos

master 725532e6

2019-08-28 21:02

joergs

Ported: N/A

Details Diff
dird: whoami command: support JSON output
mod - core/src/dird/ua_cmds.cc Diff File

master e861ae32

2019-08-28 20:19

franku

Ported: N/A

Details Diff
systemtests: add test only if pyhton-devel available

- python-fd-plugin-local-fileset-test can only be run if
the python plugins are built using python-devel, therefore
enable the test if python-devel is available or disable
the test otherwise
mod - systemtests/CMakeLists.txt Diff File

master ec3fda40

2019-08-28 19:40

Jörg Steffens


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0000254 from joergsteffens/dev/joergs/master/bareos-console-commands-cleanup

docs: Bareos Console Commands: cleanup
mod - docs/manuals/source/TasksAndConcepts/BareosConsole.rst Diff File

master 63d495d6

2019-08-28 18:24

arogge

Ported: N/A

Details Diff
macos: set package version in filename correctly

previously the version number in the package filename was just based
on major/minor/patch. Now we just add the full version so we will see
the full version number.
mod - core/platforms/darwin/CMakeLists.txt Diff File

bareos-18.2 dc07ed76

2019-08-28 18:24

arogge

Ported: N/A

Details Diff
macos: set package version in filename correctly

previously the version number in the package filename was just based
on major/minor/patch. Now we just add the full version so we will see
the full version number.
mod - core/platforms/darwin/CMakeLists.txt Diff File

master 32d76c67

2019-08-28 17:58

arogge

Ported: N/A

Details Diff
cmake: link liblzo2 statically on macos

on macos liblzo2 is available through homebrew only.
To remove a dependency on homebrew we link against this
library statically now.
mod - core/cmake/BareosFindAllLibraries.cmake Diff File

bareos-18.2 32c7b11b

2019-08-28 17:58

arogge

Ported: N/A

Details Diff
cmake: link liblzo2 statically on macos

on macos liblzo2 is available through homebrew only.
To remove a dependency on homebrew we link against this
library statically now.
mod - core/cmake/BareosFindAllLibraries.cmake Diff File

bareos-18.2 335f262a

2019-08-28 16:53

franku


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0000257 from fbergkemper/dev/fbergkemper/bareos-18.2/story-31-37-backport

webui: Fix overflowing top navigation bar content
mod - webui/module/Application/view/layout/layout.phtml.in Diff File

master 877e37a3

2019-08-28 16:50

franku


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request #256 from fbergkemper/dev/fbergkemper/master/story-3137

webui: Add missing classes in custom @media-query
mod - webui/module/Application/view/layout/layout.phtml.in Diff File

master 6cacd5e3

2019-08-28 16:39

arogge


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0000255 from arogge/dev/arogge/master/add-test-script

Overhaul add_new_unit_test.sh and add documentation
mod - core/src/tests/add_new_unit_test.sh Diff File
mod - core/src/tests/test_cmakelists_template.txt.in Diff File
add - core/src/tests/test_template.cc.in Diff File
mod - docs/manuals/source/DeveloperGuide.rst Diff File
add - docs/manuals/source/DeveloperGuide/tests.rst Diff File

master 24c0df2b

2019-08-28 16:34

arogge

Ported: N/A

Details Diff
tests: add git reminder to add_new_unit_test.sh
mod - core/src/tests/add_new_unit_test.sh Diff File

master beac60c3

2019-08-28 16:23

franku


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request #246 from bareos/dev/arogge/master/newcrc32

core: replace crc32 implementation
mod - core/LICENSE Diff File
mod - core/debian/copyright.footer Diff File
mod - core/src/stored/CMakeLists.txt Diff File
mod - core/src/stored/block.cc Diff File
rm - core/src/stored/crc32.cc Diff File
add - core/src/stored/crc32/LICENSE Diff File
add - core/src/stored/crc32/crc32.cc Diff File
add - core/src/stored/crc32/crc32.h Diff File
mod - core/src/tests/CMakeLists.txt Diff File

bareos-18.2 800d9ce4

2019-08-28 15:02

frank

Ported: N/A

Details Diff
webui: Fix overflowing top navigation bar content

This is the backport from master branch including follow up fixes.

commit 637095dee63b95089cd13eb8eaa7a242cd3513a4
commit 3fe225957a8c1e2b5af36e70802d978f87962420
commit 2d08fb84477fb166fa43be8eef4055a368753764
mod - webui/module/Application/view/layout/layout.phtml.in Diff File

master ac338be1

2019-08-28 14:54

arogge

Ported: N/A

Details Diff
docs: add short description for unit tests

where you find unit tests, how are they build and executed. Also how
to add a new unit test.
mod - docs/manuals/source/DeveloperGuide.rst Diff File
add - docs/manuals/source/DeveloperGuide/tests.rst Diff File

master 2d08fb84

2019-08-28 14:39

frank

Ported: N/A

Details Diff
webui: Add missing classes in custom @media-query
mod - webui/module/Application/view/layout/layout.phtml.in Diff File

master 5ea5fc59

2019-08-28 14:37

arogge

Ported: N/A

Details Diff
tests: minor overhaul of add_new_unit_test.sh

- improve parameter checking
- factor out the c++ template
- name the binary like the source-file
mod - core/src/tests/add_new_unit_test.sh Diff File
mod - core/src/tests/test_cmakelists_template.txt.in Diff File
add - core/src/tests/test_template.cc.in Diff File

master 40c851a2

2019-08-28 13:58

arogge

Ported: N/A

Details Diff
cmake: set configtemplatedir for macos correctly

previously the configuration templates were just installed in the config
directory which lead to the configuration being overwritten with each
installation.
This patch changes the path so that configuration is not overwritten on
an update or reinstall.
mod - core/cmake/BareosSetVariableDefaults.cmake Diff File

bareos-18.2 1e9d4b72

2019-08-28 13:58

arogge

Ported: N/A

Details Diff
cmake: set configtemplatedir for macos correctly

previously the configuration templates were just installed in the config
directory which lead to the configuration being overwritten with each
installation.
This patch changes the path so that configuration is not overwritten on
an update or reinstall.
mod - core/cmake/BareosSetVariableDefaults.cmake Diff File

master 329f15b8

2019-08-28 13:12

arogge

Ported: N/A

Details Diff
core: overhaul macos packaging

- split bareos into components
- rename bareos-fd service
- update pre/postinstall scripts
- provide uninstall script
- update installer text
- change installation path
mod - core/CMakeLists.txt Diff File
mod - core/platforms/darwin/CMakeLists.txt Diff File
mod - core/platforms/darwin/resources/ReadMe.html.in Diff File
rm - core/platforms/darwin/resources/bareos-client.plist Diff File
mod - core/platforms/darwin/resources/postinstall.in Diff File
mod - core/platforms/darwin/resources/preinstall.in Diff File
add - core/platforms/darwin/resources/uninstall-bareos.in Diff File
rm - core/platforms/darwin/resources/uninstall.command Diff File
rm - core/platforms/darwin/resources/uninstall.command.in Diff File
mod - core/scripts/CMakeLists.txt Diff File
mod - core/src/console/CMakeLists.txt Diff File
mod - core/src/filed/CMakeLists.txt Diff File
mod - core/src/findlib/CMakeLists.txt Diff File
mod - core/src/plugins/filed/CMakeLists.txt Diff File

bareos-18.2 11f20c7a

2019-08-28 13:12

arogge

Ported: N/A

Details Diff
core: overhaul macos packaging

- split bareos into components
- rename bareos-fd service
- update pre/postinstall scripts
- provide uninstall script
- update installer text
- change installation path
mod - core/CMakeLists.txt Diff File
mod - core/platforms/darwin/CMakeLists.txt Diff File
mod - core/platforms/darwin/resources/ReadMe.html.in Diff File
rm - core/platforms/darwin/resources/bareos-client.plist Diff File
mod - core/platforms/darwin/resources/postinstall.in Diff File
mod - core/platforms/darwin/resources/preinstall.in Diff File
add - core/platforms/darwin/resources/uninstall-bareos.in Diff File
rm - core/platforms/darwin/resources/uninstall.command Diff File
rm - core/platforms/darwin/resources/uninstall.command.in Diff File
mod - core/scripts/CMakeLists.txt Diff File
mod - core/src/console/CMakeLists.txt Diff File
mod - core/src/filed/CMakeLists.txt Diff File
mod - core/src/findlib/CMakeLists.txt Diff File
mod - core/src/plugins/filed/CMakeLists.txt Diff File

master 9b27c775

2019-08-27 20:26

joergs

Ported: N/A

Details Diff
systemtests: python-bareos-test: implement tests

These test do run inside the Bareos ctest systemtests.
The python-bareos-test itself is based on python unittest
and tests the python-bareos Python module.
mod - systemtests/CMakeLists.txt Diff File
add - systemtests/tests/python-bareos-test/etc/bareos/bareos-dir.d/console/noapicommand.conf Diff File
add - systemtests/tests/python-bareos-test/etc/bareos/bareos-dir.d/console/noautodisplaycommand.conf Diff File
add - systemtests/tests/python-bareos-test/etc/bareos/bareos-dir.d/console/poolfull.conf Diff File
add - systemtests/tests/python-bareos-test/etc/bareos/bareos-dir.d/console/poolnotfull.conf Diff File
add - systemtests/tests/python-bareos-test/etc/bareos/bareos-dir.d/profile/all.conf Diff File
add - systemtests/tests/python-bareos-test/etc/bareos/bconsole-admin.conf.in Diff File
add - systemtests/tests/python-bareos-test/python-bareos-unittest.py Diff File
mod - systemtests/tests/python-bareos-test/testrunner Diff File

master 0c12a1db

2019-08-27 20:26

joergs

Ported: N/A

Details Diff
systemtests: adapted environment
mod - systemtests/environment.in Diff File
mod - systemtests/scripts/check_for_zombie_jobs Diff File

master a1835c82

2019-08-27 20:16

joergs

Ported: N/A

Details Diff
docs: Bareos Console Commands: cleanup

Fix some formattings,
add whoami command
and extend documentation of the show command.
mod - docs/manuals/source/TasksAndConcepts/BareosConsole.rst Diff File

master 1f457781

2019-08-27 19:43

frank

Ported: N/A

Details Diff
webui: Fix Application Controller Plugin "CommandACLPlugin"

Make the Application Controller Plugin "CommandACLPlugin" more generic
so it is able to process mandatory and optional bconsole command lists.

This change is required to handle Console/Profile Resource Command ACL
settings properly in module controllers.

A matrix of mandatory and optional commands used by each module is now
given by a CSV file, webui/module/Application/config/commands.csv .

The CSV file is processed and merged as an array into the application
module configuration.
mod - webui/config/application.config.php Diff File
mod - webui/module/Application/Module.php Diff File
add - webui/module/Application/config/commands.csv Diff File
add - webui/module/Application/config/module.commands.php Diff File
mod - webui/module/Application/config/module.config.php Diff File
mod - webui/module/Application/src/Application/Controller/Plugin/CommandACLPlugin.php Diff File
mod - webui/module/Application/src/Application/View/Helper/ACLAlert.php Diff File
add - webui/module/Application/view/layout/layout.phtml Diff File
mod - webui/module/Application/view/layout/layout.phtml.in Diff File
mod - webui/module/Client/Module.php Diff File
mod - webui/module/Client/config/module.config.php Diff File
mod - webui/module/Client/src/Client/Controller/ClientController.php Diff File
mod - webui/module/Client/view/client/client/details.phtml Diff File
mod - webui/module/Client/view/client/client/index.phtml Diff File
mod - webui/module/Client/view/client/client/status.phtml Diff File
add - webui/module/Console/Module.php Diff File
add - webui/module/Console/autoload_classmap.php Diff File
add - webui/module/Console/config/module.config.php Diff File
add - webui/module/Console/src/Console/Controller/ConsoleController.php Diff File
add - webui/module/Console/src/Console/Model/Console.php Diff File
add - webui/module/Console/src/Console/Model/ConsoleModel.php Diff File
mod - webui/module/Dashboard/Module.php Diff File
mod - webui/module/Dashboard/config/module.config.php Diff File
mod - webui/module/Dashboard/src/Dashboard/Controller/DashboardController.php Diff File
mod - webui/module/Dashboard/view/dashboard/dashboard/index.phtml Diff File
mod - webui/module/Director/Module.php Diff File
mod - webui/module/Director/config/module.config.php Diff File
mod - webui/module/Director/src/Director/Controller/DirectorController.php Diff File
mod - webui/module/Director/view/director/director/index.phtml Diff File
mod - webui/module/Director/view/director/director/messages.phtml Diff File
mod - webui/module/Fileset/Module.php Diff File
mod - webui/module/Fileset/config/module.config.php Diff File
mod - webui/module/Fileset/src/Fileset/Controller/FilesetController.php Diff File
mod - webui/module/Fileset/view/fileset/fileset/details.phtml Diff File
mod - webui/module/Fileset/view/fileset/fileset/index.phtml Diff File
mod - webui/module/Job/Module.php Diff File
mod - webui/module/Job/src/Job/Controller/JobController.php Diff File
mod - webui/module/Job/view/job/job/actions.phtml Diff File
mod - webui/module/Job/view/job/job/cancel.phtml Diff File
mod - webui/module/Job/view/job/job/details.phtml Diff File
mod - webui/module/Job/view/job/job/index.phtml Diff File
mod - webui/module/Job/view/job/job/run.phtml Diff File
mod - webui/module/Media/Module.php Diff File
mod - webui/module/Media/config/module.config.php Diff File
mod - webui/module/Media/src/Media/Controller/MediaController.php Diff File
mod - webui/module/Media/src/Media/Model/MediaModel.php Diff File
mod - webui/module/Media/view/media/media/details.phtml Diff File
mod - webui/module/Media/view/media/media/index.phtml Diff File
mod - webui/module/Pool/Module.php Diff File
mod - webui/module/Pool/config/module.config.php Diff File
mod - webui/module/Pool/src/Pool/Controller/PoolController.php Diff File
mod - webui/module/Pool/view/pool/pool/details.phtml Diff File
mod - webui/module/Pool/view/pool/pool/index.phtml Diff File
mod - webui/module/Restore/Module.php Diff File
mod - webui/module/Restore/config/module.config.php Diff File
mod - webui/module/Restore/src/Restore/Controller/RestoreController.php Diff File
mod - webui/module/Restore/view/restore/restore/index.phtml Diff File
mod - webui/module/Restore/view/restore/restore/versions.phtml Diff File
mod - webui/module/Schedule/Module.php Diff File
mod - webui/module/Schedule/config/module.config.php Diff File
mod - webui/module/Schedule/src/Schedule/Controller/ScheduleController.php Diff File
mod - webui/module/Schedule/view/schedule/schedule/details.phtml Diff File
mod - webui/module/Schedule/view/schedule/schedule/index.phtml Diff File
mod - webui/module/Schedule/view/schedule/schedule/overview.phtml Diff File
mod - webui/module/Schedule/view/schedule/schedule/status.phtml Diff File
mod - webui/module/Storage/Module.php Diff File
mod - webui/module/Storage/config/module.config.php Diff File
mod - webui/module/Storage/src/Storage/Controller/StorageController.php Diff File
mod - webui/module/Storage/view/storage/storage/details.phtml Diff File
mod - webui/module/Storage/view/storage/storage/index.phtml Diff File
mod - webui/module/Storage/view/storage/storage/status.phtml Diff File

master d594cd8a

2019-08-27 19:28

franku

Ported: N/A

Details Diff
workq: refactor code or remove unneded code for worker threads

fixes 0000385: bareos daemon stop restart hang if bareos-tray-monitor is connected

The functionality was overengineered and did not do what it
probably should do.

The names workq or workqueue did not explain what the code
actually did and it was not reliable.

Therefore refactored the complete code:

- ThreadList is now a class that contains the calls to create
worker-threads who will call a pre-defined handler routine
- ThreadListPrivate contains the implementation and is hidden from
the public interface
- using ThreadList with RAII in the daemon code, accordingly
- the new functionality consists mainly of a list where new threads
are added to, therefore the name of all files and variables
are changed into names containing "thread list" or similar
- used std::thread instead of pthread
- used std::set instead of a linked list
- worker threads start detached and cleanup resources by themself

- removed or renamed variables
- removed unused code in the thread start and at the end
- previous return type of int was not used as intended,
therefore a simple bool is enough
- upon shutdown threads are not joined but the parent thread will
wait until the thread list is empty or a timeout occurs
- added a user callback for each worker-thread that is called from
the parent thread before it enters the waiting state

- ua_server: close user_agent_socket only in FreeUaContext
- synchronize shutdown of worker threads on daemon shutdown
- updated code that calls the new functions accordingly

- fd and dir: added a worker-thread shutdown handler to each
socket server
- sd: do not cleanup jcr memory of a console connection in the
terminate handler
- dird: StopSocketServer is now called before StopWatchdog so
socket operations still can time out
- set the timeout for the second call of SSL_shutdown from
120 seconds to 2 seconds as this makes director shutdown
faster

- added a unit test
Affected Issues
0000385
mod - core/src/dird/dird.cc Diff File
mod - core/src/dird/jobq.cc Diff File
mod - core/src/dird/socket_server.cc Diff File
mod - core/src/dird/ua_server.cc Diff File
mod - core/src/filed/socket_server.cc Diff File
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/CMakeLists.txt 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/lib/lib.h Diff File
add - core/src/lib/thread_list.cc Diff File
add - core/src/lib/thread_list.h Diff File
mod - core/src/lib/tls_openssl.cc Diff File
rm - core/src/lib/workq.cc Diff File
rm - core/src/lib/workq.h Diff File
mod - core/src/stored/ndmp_tape.cc Diff File
mod - core/src/stored/socket_server.cc Diff File
mod - core/src/stored/stored.cc Diff File
mod - core/src/tests/CMakeLists.txt Diff File
add - core/src/tests/thread_list.cc Diff File
 First  Prev  1 2 3 ... 70 ... 140 ... 210 ... 280 ... 335 336 337 338 339 340 341 ... 350 ... 420 ... 490 ... 560 ... 630 ... 662 663 664  Next  Last