postgresql plugin: read config parameters from cluster#1599
Merged
BareosBot merged 5 commits intobareos:masterfrom Nov 20, 2023
Merged
Conversation
ad54a88 to
dc4c0b1
Compare
pstorz
requested changes
Nov 16, 2023
core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py
Outdated
Show resolved
Hide resolved
core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py
Outdated
Show resolved
Hide resolved
core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py
Outdated
Show resolved
Hide resolved
core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py
Outdated
Show resolved
Hide resolved
core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py
Outdated
Show resolved
Hide resolved
core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py
Outdated
Show resolved
Hide resolved
core/src/plugins/filed/python/postgresql/bareos-fd-postgresql.py
Outdated
Show resolved
Hide resolved
docs/manuals/source/TasksAndConcepts/Plugins/FileDaemonPlugins/PostgreSQLPlugin.rst.inc
Outdated
Show resolved
Hide resolved
docs/manuals/source/TasksAndConcepts/Plugins/FileDaemonPlugins/PostgreSQLPlugin.rst.inc
Outdated
Show resolved
Hide resolved
- adjust plugin code to ask configuration parameters from the cluster - use `raise` error in private functions, and `except` in main - apply black modify suggestions - reorder alphabetically the private functions - delete removed parameter postgresql_data_directory - add wal_archive_symlink for testing - add systemtest testrunner-walsymlink for wal_archive_dir as symlink - add systemtest testrunner-debian for system with pg_*cluster* tools add mention about support of debian like pg_*cluster* tools - testrunner-roles adjust sentence checked, fix start_fast parameter - setup_database_local.sh fix ID usage and double space Fix issue bareos#1561 Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- remove no more used parameters - add roles requirements sql examples - add socket explanation for db_host - add warning after restore: clean older wals and trigger new full - fix typos Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Philipp Storz <philipp.storz@bareos.com>
1d31c37 to
ae05929
Compare
pstorz
approved these changes
Nov 20, 2023
sebastianlederer
pushed a commit
to sebastianlederer/bareos
that referenced
this pull request
Feb 27, 2024
- handle referrals in search results - better error reporting when using incorrect base DN - refactor reporting of LDAP exceptions - replace old-style % operator with format() - Debian package build: fix dependencies for python-ldap Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+
sebastianlederer
pushed a commit
to sebastianlederer/bareos
that referenced
this pull request
Feb 27, 2024
- handle referrals in search results - better error reporting when using incorrect base DN - refactor reporting of LDAP exceptions - replace old-style % operator with format() - Debian package build: fix dependencies for python-ldap Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+
sebastianlederer
pushed a commit
to sebastianlederer/bareos
that referenced
this pull request
Feb 27, 2024
- handle referrals in search results - better error reporting when using incorrect base DN - refactor reporting of LDAP exceptions - replace old-style % operator with format() - Debian package build: fix dependencies for python-ldap Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+
joergsteffens
pushed a commit
to joergsteffens/bareos
that referenced
this pull request
Feb 28, 2024
- handle referrals in search results - better error reporting when using incorrect base DN - refactor reporting of LDAP exceptions - replace old-style % operator with format() - Debian package build: fix dependencies for python-ldap Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+ (cherry picked from commit 430042d)
sebastianlederer
pushed a commit
to sebastianlederer/bareos
that referenced
this pull request
Mar 7, 2024
- handle referrals in search results - better error reporting when using incorrect base DN - refactor reporting of LDAP exceptions - replace old-style % operator with format() - Debian package build: fix dependencies for python-ldap Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+
BareosBot
pushed a commit
to joergsteffens/bareos
that referenced
this pull request
Mar 12, 2024
- handle referrals in search results - better error reporting when using incorrect base DN - refactor reporting of LDAP exceptions - replace old-style % operator with format() - Debian package build: fix dependencies for python-ldap Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+ (cherry picked from commit 430042d)
banuchka
pushed a commit
to banuchka/bareos
that referenced
this pull request
Mar 22, 2024
- handle referrals in search results - better error reporting when using incorrect base DN - refactor reporting of LDAP exceptions - replace old-style % operator with format() - Debian package build: fix dependencies for python-ldap Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the previous version of the code, the plugin during restore could overwrite real data if the given
data_dirwas a symlink.This new version connects to the cluster and asks directly its configuration parameters.
postgresql_data_dirwal_archive_dirparameter is checked if it is a symlink, if the case the real location is retrieved and used instead of the symlink, a warning is added to the joblog (testrunner-walsymlink)/etc/postgesql/<version>/<instance>/when using the pg_cluster tools.Fix Issue #1563
OP#5610
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
Make sure you check/merge the PR using
devtools/pr-toolto have some simple automated checks run and a proper changelog record added.General
Source code quality
Tests