View Issue Details

IDProjectCategoryView StatusLast Update
0000305bareos-coredirectorpublic2023-05-08 17:07
Reporterholtkamp Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
PlatformLinuxOSRHELOS Version6
Summary0000305: catalog configuration in pool resource not honored correctly
DescriptionIf you specify a catalog in the pool resource this will lead to funny results.

Fun fact: All pools will always be created in all configured catalogs... EXCEPT if you specify a catalog in the pool resource, then it will only be created in the specified catalog.

Director comes up - pools will be created in their defined catalogs or in all if none is configured
Job runs - all database entries are written to the catalog configured in the CLIENT resource and a pool record is created in that catalog (because at director startup it was only created in the catalog defined in the pool resource).
Steps To ReproduceDefine 2 catalogs (and donĀ“t forget to create the database schemas, make tables and grant permissions).

Configure client resource with catalog A
Configure pool resource with catalog B

Start director
-> check both database schemas for pool records
= Pool only configured in catalog B
Run job
-> check both database schemas for job, media and pool records (and all related tables: file, filename, fileset, jobmedia, path)
= Pool suddenly exists in catalog A, all related database entries in catalog A
Additional InformationTried on Version: 14.2.0 (31 May 2014)

Expected behavior: All job related database entries are written to the catalog defined in the pool resource. Catalog defined in the pool resource should have the highest authority according to the documentation.

Pool resource catalog > Job resource catalog > Client resource catalog
TagsNo tags attached.

Activities

mvwieringen

mvwieringen

2014-06-03 17:26

developer   ~0000897

The whole multi catalog setup is kind of experimental even in our upstream
bacula. So it would take quite some effort to get this fixed. I have to see
what happens if the dir starts and what needs to be changed there to get
things somewhat working. So I put it on the TODO list but currently its
being preempted by other work.
bruno-at-bareos

bruno-at-bareos

2023-05-08 17:07

manager   ~0005012

Mass closing oldies which doesn't get any attention.

Issue History

Date Modified Username Field Change
2014-06-03 16:03 holtkamp New Issue
2014-06-03 17:26 mvwieringen Note Added: 0000897
2014-06-03 17:26 mvwieringen Status new => acknowledged
2023-05-08 17:07 bruno-at-bareos Note Added: 0005012
2023-05-08 17:07 bruno-at-bareos Status acknowledged => closed