Skip to content

Manage storage directories after intallation#206

Merged
smortex merged 1 commit into
masterfrom
storage-device-ordering
Jan 5, 2026
Merged

Manage storage directories after intallation#206
smortex merged 1 commit into
masterfrom
storage-device-ordering

Conversation

@smortex

@smortex smortex commented May 29, 2024

Copy link
Copy Markdown
Member

When creating a storage directory, we want to set correct ownership for
it but before the bacula-sd package is installed, the bacula user and
group may not be available, resulting in a catalog appliaction failure.

Explicitly require the storage daemon package to make sure the
user/group are available when the directory is created.

@smortex smortex added the bug Something isn't working label May 29, 2024
@TheMeier

TheMeier commented Jun 2, 2024

Copy link
Copy Markdown
Contributor

Hm I think a spec-test for that would be nice, there are no tests at all for this defined resource yet

When creating a storage directory, we want to set correct ownership for
it but before the bacula-sd package is installed, the bacula user and
group may not be available, resulting in a catalog application failure.

Explicitly require the storage daemon package to make sure the
user/group are available when the directory is created.

While here, add some basic testing for this class.
@smortex
smortex force-pushed the storage-device-ordering branch from aa544e1 to 6d2a8c0 Compare January 5, 2026 03:56
@smortex

smortex commented Jan 5, 2026

Copy link
Copy Markdown
Member Author

This was long overdue 😄

Hm I think a spec-test for that would be nice, there are no tests at all for this defined resource yet

Testing specifically for the right value is a pain (because they are os-dependant), but having tests we are sure that the value is valid (i.e. required resources actually exist in the catalog), so I just added basic tests [almost] without parameters and with all parameters set. This allowed to see a bunch of inconsistencies, which are marked as FIXME as they are beyond the scope of this PR.

@smortex
smortex merged commit 8f8d8f5 into master Jan 5, 2026
4 checks passed
@smortex
smortex deleted the storage-device-ordering branch January 5, 2026 05:56
@smortex smortex added this to the 9.0.0 milestone Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants