]>
git.ipfire.org Git - thirdparty/bacula.git/log
Eric Bollengier [Thu, 29 Aug 2024 08:25:37 +0000 (10:25 +0200)]
Fix #11058 About fsync error reported for tape driver
Eric Bollengier [Wed, 21 Aug 2024 09:15:16 +0000 (11:15 +0200)]
regress: Tweak store-mngr-leastused-test output
Eric Bollengier [Thu, 15 Aug 2024 14:33:27 +0000 (16:33 +0200)]
regress: Add prune-many-jobs-test
Eric Bollengier [Fri, 9 Aug 2024 09:29:13 +0000 (11:29 +0200)]
Check for backquote in check_for_invalid_chars() function
Eric Bollengier [Wed, 7 Aug 2024 13:09:40 +0000 (15:09 +0200)]
Fix #11048 About LastBackedUpTo StorageGroup policy not correctly set
Jorge Gea [Tue, 9 Jul 2024 16:00:37 +0000 (18:00 +0200)]
metaplugin: Include bacula jobid in the backend calls as BACULA_JOBID env variable
Eric Bollengier [Thu, 4 Jul 2024 12:32:12 +0000 (14:32 +0200)]
Use bfopen instead of fopen in various tools
Eric Bollengier [Thu, 4 Jul 2024 11:34:16 +0000 (13:34 +0200)]
win32: Limit the scope of the open files
Eric Bollengier [Thu, 4 Jul 2024 11:00:18 +0000 (13:00 +0200)]
Add handle-list.exe tool in tools/Makefile
Eric Bollengier [Thu, 4 Jul 2024 11:00:05 +0000 (13:00 +0200)]
regress: Add tool to list open handle on windows
Eric Bollengier [Fri, 5 Jul 2024 10:35:39 +0000 (12:35 +0200)]
Disable orphan file detection
Eric Bollengier [Thu, 20 Jun 2024 08:31:51 +0000 (10:31 +0200)]
Fix #10985 Report the FD/SD Encryption in the Job record and the job output
The SQL Job record has now the Encrypted field proprely updated
at the end of a job.
The date can be encrypted by the FD and/or the SD, the value
of the SQL field is the following:
0 : no encryption
1 : FD encryption
2 : SD encryption
3 : FD and SD encryption
Eric Bollengier [Thu, 4 Jul 2024 15:26:34 +0000 (17:26 +0200)]
Use bclose_from() in daemon.c
Francisco Manuel Garcia Botella [Thu, 4 Jul 2024 09:02:14 +0000 (11:02 +0200)]
Add k8s dependency versions in requirements
Eric Bollengier [Wed, 3 Jul 2024 17:19:50 +0000 (19:19 +0200)]
Cleanup code in open_bpipe() when closing open files
Refactor the code that is responsible to close open files.
Eric Bollengier [Wed, 3 Jul 2024 17:16:41 +0000 (19:16 +0200)]
Add helper functions to close open files
Eric Bollengier [Wed, 3 Jul 2024 13:46:52 +0000 (15:46 +0200)]
Use O_CLOEXEC in pid/stat file management
Eric Bollengier [Wed, 3 Jul 2024 13:45:07 +0000 (15:45 +0200)]
Add SOCK_CLOEXEC to bnet_server sockets
Francisco Manuel Garcia Botella [Tue, 2 Jul 2024 07:34:09 +0000 (09:34 +0200)]
k8s: Fix #
0011005 : ModuleNotFoundError: No module named 'baculak8s.plugins.k8sbackend.ingress'
Francisco Manuel Garcia Botella [Thu, 13 Jun 2024 06:28:32 +0000 (08:28 +0200)]
deploy: limit urllib3 version to be compatible with rhel8
Francisco Manuel Garcia Botella [Wed, 12 Jun 2024 09:57:19 +0000 (11:57 +0200)]
k8s: Avoid pvc data when pvc is in Pending status.
k8s: Fix redoing backup when pvcdata is 0 bytes and the backup mode is standard
Added tests
francisco garcia [Tue, 11 Jun 2024 11:19:31 +0000 (11:19 +0000)]
deploy: create dockerfile to fast k8s compilation in rhel platform
Francisco Manuel Garcia Botella [Thu, 6 Jun 2024 15:29:25 +0000 (17:29 +0200)]
regress: Fix some bugs in tests
Francisco Manuel Garcia Botella [Thu, 6 Jun 2024 11:37:32 +0000 (13:37 +0200)]
regress: Add new make rule to sync source code with regress code
Francisco Manuel Garcia Botella [Thu, 6 Jun 2024 11:36:28 +0000 (13:36 +0200)]
regress: Add more k8s tests
Francisco Manuel Garcia Botella [Thu, 6 Jun 2024 11:34:29 +0000 (13:34 +0200)]
regress: Add documentation to k8s tests
Francisco Manuel Garcia Botella [Tue, 4 Jun 2024 08:47:32 +0000 (10:47 +0200)]
k8s: Add more options to debug
francisco garcia [Tue, 21 May 2024 12:33:01 +0000 (12:33 +0000)]
regress: k8s testing
Alain Spineux [Wed, 5 Jun 2024 16:08:10 +0000 (18:08 +0200)]
Fix #10947 time output without century for locale that use multi bytes utf8
- in Korean strftime("%b") is a 3 unicode char encoded in 5 bytes (in utf8)
- before
Daemon started 28- 5<EC><9B>2024 15:55, conf reloaded 28- 5월-2024 19:03:10
-after
Daemon started 28- 5월-24 15:55, conf reloaded 28- 5월-2024 19:03:10
Alain Spineux [Fri, 22 Mar 2024 09:24:26 +0000 (10:24 +0100)]
BSOCK improve POLL to detect and report errors
- when I was crashing my SD during my dedup2 tests,
the FD was oftent stuck with thread using 100% cpu.
This patch solved the problem, now the FD just terminate
the job.
Alain Spineux [Mon, 5 Feb 2024 15:21:16 +0000 (16:21 +0100)]
show minimal backtrace if gdb is not installed
- here is a sample, lines in the stack trace are doubled
with and witout demanglind/addr2line
Attempt to dump locks
threadid=0x7ffaa63fe640 max=2 current=-1
threadid=0x7ffaa53fc640 max=3 current=-1
threadid=0x7ffaa5bfd640 max=0 current=-1
threadid=0x7ffaa6bff640 max=0 current=-1
threadid=0x7ffaa7a2a080 max=0 current=-1
Attempt to dump current JCRs. njcrs=1
threadid=0x7ffaa53fc640 JobId=2 JobStatus=R jcr=0x7ffa98025728 name=RestoreFiles.2024-02-07_19.45.34_04
use_count=1 killable=1
JobType=R JobLevel=F
sched_time=07-Feb-2024 19:45 start_time=07-Feb-2024 19:45
end_time=01-Jan-1970 01:00 wait_time=01-Jan-1970 01:00
db=(nil) db_batch=(nil) batch_started=0
dcr=0x7ffa98000908 volumename=TestVolume001 dev=0x7ffa9800bbe8 newvol=0 reserved=1 locked=0
List plugins. Hook count=0
/home/bac/workspace/bee/regress/bin/libbacsd-18.0.0.so(_Z12read_recordsP3DCRPFbS0_P10DEV_RECORDEPFbS0_E+0x11b) [0x7ffaa806b275]
/home/bac/workspace/bee/regress/bin/libbacsd-18.0.0.so:read_records(DCR*, bool (*)(DCR*, DEV_RECORD*), bool (*)(DCR*))
/home/bac/workspace/bee/regress/bin/libbacsd-18.0.0.so(_Z12do_read_dataP3JCR+0x43c) [0x7ffaa80695f4]
/home/bac/workspace/bee/regress/bin/libbacsd-18.0.0.so:do_read_data(JCR*)
/home/bac/workspace/bee/regress/bin/bacula-sd(+0x234a7) [0x5558cd5db4a7]
/home/bac/workspace/bee/regress/build/src/stored/fd_cmds.c:431
/home/bac/workspace/bee/regress/bin/bacula-sd(+0x2281a) [0x5558cd5da81a]
/home/bac/workspace/bee/regress/build/src/stored/fd_cmds.c:234
/home/bac/workspace/bee/regress/bin/bacula-sd(+0x22473) [0x5558cd5da473]
/home/bac/workspace/bee/regress/build/src/stored/fd_cmds.c:176
/home/bac/workspace/bee/regress/bin/bacula-sd(+0x25025) [0x5558cd5dd025]
/home/bac/workspace/bee/regress/build/src/stored/job.c:252
/home/bac/workspace/bee/regress/bin/bacula-sd(+0x17f53) [0x5558cd5cff53]
/home/bac/workspace/bee/regress/build/src/stored/dircmd.c:255
/home/bac/workspace/bee/regress/bin/libbac-18.0.0.so(workq_server+0x45f) [0x7ffaa7f9e0fe]
/home/bac/workspace/bee/regress/bin/libbac-18.0.0.so:workq_server()
/home/bac/workspace/bee/regress/bin/libbac-18.0.0.so(lmgr_thread_launcher+0xf7) [0x7ffaa7faa2b4]
/home/bac/workspace/bee/regress/bin/libbac-18.0.0.so:lmgr_thread_launcher()
/lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7ffaa7894ac3]
./nptl/pthread_create.c:442
/lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7ffaa7926850]
./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:83
Please install GDB.
Alain Spineux [Wed, 17 Jan 2024 15:25:45 +0000 (16:25 +0100)]
Detect unsolvable volume cycle in split_bsr_loop()
- Fix empty part: when a cycle inside a job was detected, the function
was creating an empty part (splitting at offset 0), that was causing
a fatal error in the restore
- this make that the first part to restore is totally empty and
generate the messages from the SD and from the FD:
SD - Fatal error: No Volume names found for restore.
FD - Fatal error: job.c:3694 Bad response from SD to Read Data command. Wanted 3000 OK data
- in the trace file we have a split at off=0
BSR: Split the BSR at off=0 at the beginning of jobnum=1 ....
Signed-off-by: Alain Spineux <alain@baculasystems.com>
Francisco Manuel Garcia Botella [Tue, 14 May 2024 11:10:06 +0000 (13:10 +0200)]
k8s: Avoid pvcs backup when the pvc status is Terminating
Francisco Manuel Garcia Botella [Thu, 9 May 2024 11:15:18 +0000 (13:15 +0200)]
k8s: Add dockerfile to create an image to compile k8s plugin in any debian/ubuntu distribution
Francisco Manuel Garcia Botella [Thu, 9 May 2024 11:12:49 +0000 (13:12 +0200)]
k8s: Add Ingress integration backup/restore
Francisco Manuel Garcia Botella [Fri, 10 May 2024 09:39:44 +0000 (11:39 +0200)]
k8s: Fix #
0010901 - Problem when restore service clusterIPs
Eric Bollengier [Thu, 28 Mar 2024 09:50:17 +0000 (10:50 +0100)]
Fix Client/Uname field not always updated after a status client
Eric Bollengier [Thu, 28 Mar 2024 09:23:13 +0000 (10:23 +0100)]
regress: Add test for uname update
Eric Bollengier [Mon, 23 Sep 2024 07:11:27 +0000 (09:11 +0200)]
win32: Fix unwanted debug messages in windows File Daemon
Marcin Haba [Tue, 17 Sep 2024 12:44:55 +0000 (14:44 +0200)]
Add Francisco to AUTHORS file
Marcin Haba [Tue, 17 Sep 2024 12:18:18 +0000 (12:18 +0000)]
Merge branch 'francisco.garcia-15.0-baculum-m365EmailList-query-params' into 'Branch-15.0'
baculum: Add new query parameters in M365EmailList endpoint
See merge request bacula-community-edition/bacula-community!3
Francisco Manuel Garcia Botella [Wed, 4 Sep 2024 10:27:24 +0000 (10:27 +0000)]
baculum: Add new query parameters in M365EmailList endpoint
Eric Bollengier [Tue, 7 May 2024 16:51:33 +0000 (18:51 +0200)]
Fix compilation issue with zstd and without lzo
Marcin Haba [Fri, 21 Jun 2024 14:31:51 +0000 (16:31 +0200)]
baculum: Add enable and disable client, storage, job and schedule endpoints
Marcin Haba [Mon, 10 Jun 2024 11:48:58 +0000 (13:48 +0200)]
baculum: Fix missing scopes on supported OAuth2 scope list
Marcin Haba [Fri, 7 Jun 2024 14:25:37 +0000 (16:25 +0200)]
baculum: Fix compatibility with very old PHP 5.4
Marcin Haba [Mon, 3 Jun 2024 13:58:09 +0000 (15:58 +0200)]
baculum: Add cloud storage status to SD status endpoint
Marcin Haba [Sun, 26 May 2024 19:38:07 +0000 (21:38 +0200)]
baculum: Fix #2722 port from Bacularis fix for displaying schedule list
Marcin Haba [Thu, 4 Apr 2024 09:25:23 +0000 (11:25 +0200)]
baculum: Fix sorting in filesets endpoint if unique filesets parameter is used
Eric Bollengier [Wed, 17 Apr 2024 07:39:31 +0000 (09:39 +0200)]
Enforce malware database download from Abuse.ch
Alain Spineux [Tue, 16 Apr 2024 13:42:45 +0000 (15:42 +0200)]
regress: tweak tests/tls-test for testing org#2714 fix
Alain Spineux [Tue, 16 Apr 2024 13:38:57 +0000 (15:38 +0200)]
Fix org#2714 Fails to take TLS Allowed CN into account
- verify_list is never used
Eric Bollengier [Mon, 25 Mar 2024 17:34:24 +0000 (18:34 +0100)]
regress: Add rot13 plugin
Marcin Haba [Thu, 28 Mar 2024 12:01:57 +0000 (13:01 +0100)]
baculum: Update API documentation
Marcin Haba [Thu, 28 Mar 2024 11:51:50 +0000 (12:51 +0100)]
baculum: Add name and sort parameters to filesets filter
Eric Bollengier [Mon, 25 Mar 2024 17:08:20 +0000 (18:08 +0100)]
regress: Fix unittests on ubunbut where sh is dash
Eric Bollengier [Mon, 25 Mar 2024 17:06:55 +0000 (18:06 +0100)]
regress: Fix crc32-unittests
Eric Bollengier [Mon, 25 Mar 2024 15:34:41 +0000 (16:34 +0100)]
regress: Fix console-acl-test
Eric Bollengier [Thu, 16 Mar 2023 09:20:50 +0000 (10:20 +0100)]
regress: Check restore menu with consoles
- menu item 1
- menu item 2
- menu item 3
- menu item 11
regress: Add test for restore jobid= parameter
regress: Add tests for file=? restore with restricted console
Eric Bollengier [Mon, 25 Mar 2024 13:41:44 +0000 (14:41 +0100)]
regress: Fix loading of test-plugin
Eric Bollengier [Tue, 28 Mar 2023 07:40:27 +0000 (09:40 +0200)]
regress: Fix runscript-test
Use MaximumConcurrentJobPerLevel script instead of a simplified version
Eric Bollengier [Fri, 22 Mar 2024 09:48:41 +0000 (10:48 +0100)]
Fix copyright
Eric Bollengier [Fri, 22 Mar 2024 09:43:28 +0000 (10:43 +0100)]
update changelog and releasenotes
Marcin Haba [Fri, 22 Mar 2024 09:39:48 +0000 (10:39 +0100)]
baculum: Update version
Marcin Haba [Fri, 22 Mar 2024 09:39:25 +0000 (10:39 +0100)]
baculum: Update release notes
Marcin Haba [Wed, 13 Mar 2024 12:30:12 +0000 (13:30 +0100)]
baculum: Update oauth2 scope list
Marcin Haba [Wed, 13 Mar 2024 12:23:54 +0000 (13:23 +0100)]
baculum: Add application version endpoint
norbert.bizet [Tue, 5 Sep 2023 16:02:59 +0000 (12:02 -0400)]
build: avoid warning with extra parenthesis
Eric Bollengier [Fri, 22 Mar 2024 09:28:02 +0000 (10:28 +0100)]
update changelog and releasenotes
Eric Bollengier [Fri, 22 Mar 2024 09:25:30 +0000 (10:25 +0100)]
update version
Eric Bollengier [Fri, 22 Mar 2024 08:40:08 +0000 (09:40 +0100)]
Revert "Fix #9882 About tapealert script issue on rhel8"
This reverts commit
b677c0739d72a08997623d76bcc386bf37efd12e .
The tapealert tool is not supposed to convey the error from
tapealert.
The excelent bacula-tapealert tool can also be used
https://github.com/waa/bacula-tapealert
norbert.bizet [Thu, 21 Dec 2023 14:57:16 +0000 (09:57 -0500)]
cloud: Fix #10291 clean_cloud_volume uses "ls", so we handle its return code the same way
Alain Spineux [Wed, 14 Feb 2024 10:10:30 +0000 (11:10 +0100)]
add bVarEstimate to let the FD knows this is an estimate and not a real backup
- some plugin need to know that this is an "estimate" command and not
a "run" to not activate snapshot, mount, .......
- the winbmr plugin can avoid the collection of information and
the mount of recovery operation.
norbert.bizet [Mon, 18 Mar 2024 15:23:32 +0000 (11:23 -0400)]
cloud: generic driver clean uses alist instead of ilist
norbert.bizet [Tue, 19 Mar 2024 11:06:42 +0000 (07:06 -0400)]
cloud: Fix 10788 s3 driver clean uses alist instead of ilist
Eric Bollengier [Thu, 14 Mar 2024 16:09:10 +0000 (17:09 +0100)]
regress: Detect ZSTD in zstd-test
norbert.bizet [Mon, 18 Mar 2024 15:22:49 +0000 (11:22 -0400)]
ilist: remove append function since it's not used, but in generic driver and it's buggy
Alain Spineux [Fri, 15 Mar 2024 15:27:26 +0000 (16:27 +0100)]
could: Fix 10788 cloud volume deletion crash
- the problem is about iterating up to including parts.last_index()
using parts.get(parts.last_index()) is a mistake !!!
it works most of the time because most of the time this value is NULL
and the code does a continue
BUT when parts.last_index() == parts.max_size(), then
parts.get(parts.last_index()) is out of the allocated memory and can
contain garbage
- why is the code doing a "continue" ? Is it expected to have a NULL ?
in the list ?
in clean_cloud_volume_read_cb() that fill the list, there is no raison
to have NULL ?
With the bug, testing for NULL will save us 99% of the time
Without the bug we can reach 100% :-)
Alain Spineux [Thu, 14 Mar 2024 13:33:07 +0000 (14:33 +0100)]
Only normal backup jobs can become "Incomplete", MAC must return errors
- jcr->sd_client is set when the SD is acting as a client from the point
of view of the control job that is "restoring" the job up
to the other SD. It is set only for SD <-> SD
- The control job as a different cr->getJobType()
FROM
JobId Level Files Bytes Status Finished Name
====================================================================
1 Full 3,087 49.77 M OK 13-Mar-24 16:49 MigrationJobSave
2 Full 795 5.900 M Error 13-Mar-24 16:49 migrate-job
3 Full 795 5.900 M Incomplete 13-Mar-24 16:49 MigrationJobSave
TO
1 Full 3,087 49.77 M OK 14-Mar-24 19:25 MigrationJobSave
2 Full 795 5.900 M Error 14-Mar-24 19:26 migrate-job
3 Full 795 5.900 M Error 14-Mar-24 19:26 MigrationJobSave
Alain Spineux [Thu, 14 Mar 2024 09:44:23 +0000 (10:44 +0100)]
Add a new command code to bsock for dedup2 protocol
Alain Spineux [Wed, 13 Mar 2024 09:45:06 +0000 (10:45 +0100)]
regress: sd-sd-test check for "Migration Error"
Eric Bollengier [Wed, 21 Feb 2024 17:32:57 +0000 (18:32 +0100)]
Fix compilation
Eric Bollengier [Mon, 4 Mar 2024 13:56:22 +0000 (14:56 +0100)]
win32: update openssl 1.1.1w
francisco.garcia [Tue, 5 Mar 2024 22:48:13 +0000 (23:48 +0100)]
k8s: Add backup_mode parameter, add resiliance when snapshot backup is not compatible and clone backup fails and minor fixes
francisco.garcia [Sat, 3 Feb 2024 11:59:25 +0000 (12:59 +0100)]
k8s:Add check snapshot api-resource available
francisco.garcia [Wed, 31 Jan 2024 08:43:48 +0000 (09:43 +0100)]
Fix when 'volumesnapshotclasses' resource is not available in cluster
francisco.garcia [Mon, 29 Jan 2024 13:04:23 +0000 (14:04 +0100)]
k8s: Fix
0010669 : When a node have not any pvc
francisco.garcia [Tue, 23 Jan 2024 11:09:50 +0000 (12:09 +0100)]
Added custom version to get more verbose
Eric Bollengier [Thu, 15 Feb 2024 09:49:12 +0000 (10:49 +0100)]
Report immutable/readonly error messages to the job log
Eric Bollengier [Thu, 1 Feb 2024 15:30:33 +0000 (16:30 +0100)]
Use llu for st_dev in snapshot code
Carsten Leonhardt [Thu, 22 Feb 2024 21:43:36 +0000 (22:43 +0100)]
Cleaner shell code in install-key-manager.sh.in
Change deprecated . to : in chown
Change bashism "$UID" to POSIX compatible "$(id -u)",
c.f. https://www.shellcheck.net/wiki/SC3028
Change "-o" in test to "||",
c.f. https://www.shellcheck.net/wiki/SC2166
Marcin Haba [Thu, 29 Feb 2024 09:27:49 +0000 (10:27 +0100)]
baculum: Fix config does not exist error in resource list endpoint
Marcin Haba [Tue, 27 Feb 2024 14:40:08 +0000 (15:40 +0100)]
baculum: Fix level property in show job endpoint if level is not provided in config
Marcin Haba [Tue, 27 Feb 2024 10:36:45 +0000 (11:36 +0100)]
baculum: Make sources order by jobstatus consistent in asc/desc sorting
Marcin Haba [Mon, 26 Feb 2024 09:30:10 +0000 (10:30 +0100)]
baculum: Add to filesets endpoint parameter to list unique filesets without versions
Marcin Haba [Fri, 23 Feb 2024 09:08:08 +0000 (10:08 +0100)]
baculum: Fix regular expression in list client files/dirs endpoint
Marcin Haba [Thu, 22 Feb 2024 08:28:02 +0000 (09:28 +0100)]
baculum: Fix displaying items in list client files/dirs endpoint
Marcin Haba [Wed, 21 Feb 2024 12:29:22 +0000 (13:29 +0100)]
baculum: Add overview parameter to client resources endpoint
Alain Spineux [Mon, 19 Feb 2024 09:38:37 +0000 (10:38 +0100)]
regress: add a Storage::FileStorage2 to match the "orphan" Dir::File2
- new-test-bacula-dir.conf.in as Storage(File2) but there was no
matching Storage resource in the SD side test-bacula-sd.conf.in
Alain Spineux [Fri, 16 Feb 2024 11:44:00 +0000 (12:44 +0100)]
Fix #10752 storage option on the restore command line not working
- restore **storage=File** is ignored