Skip to content

Add deprecation notifications for catalogs using mysql/sqlite3#564

Merged
arogge merged 7 commits intobareos:masterfrom
arogge:dev/arogge/master/deprecate-mysql
Aug 7, 2020
Merged

Add deprecation notifications for catalogs using mysql/sqlite3#564
arogge merged 7 commits intobareos:masterfrom
arogge:dev/arogge/master/deprecate-mysql

Conversation

@arogge
Copy link
Member

@arogge arogge commented Jul 30, 2020

This PR adds configuration warning for every catalog that uses DB driver mysql oder sqlite3.
To implement this a simple validation call-back was added to the director's configparser and every resource needing validation can just implement that.

@arogge arogge requested a review from franku July 30, 2020 08:52
@arogge
Copy link
Member Author

arogge commented Jul 30, 2020

I just realized there are two cleanup commits in the branch. Hope that doesn't hurt.

@arogge arogge marked this pull request as draft July 30, 2020 08:54
Copy link
Contributor

@franku franku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@arogge arogge force-pushed the dev/arogge/master/deprecate-mysql branch 7 times, most recently from f1551e4 to cd908bc Compare August 4, 2020 15:25
arogge added 7 commits August 7, 2020 14:45
* ignore files in the right location
* only configure files in core and debian, but not systemtests/regress
* add updated debian/control, so we don't see a change in git after
  configuring the project
Previously only JobResource had a method called Validate() to check the
resource for completeness and correctness.
This patch adds a virtual Validate() method to BareosResource that can
be overridden by every resource that needs to do additional checks.
This patch adds a configuration warning when using one of the deprecated
db drivers mysql or sqlite3.
When running with dbtype mysql or sqlite this test checks that the
deprecation message is printed when calling bareos-dir -t.
Previously dbdriver was a required setting. As PostgreSQL is the only
non-deprecated option right now, we set this as the default value.
@arogge arogge force-pushed the dev/arogge/master/deprecate-mysql branch from e7569bc to 2a21c54 Compare August 7, 2020 12:46
@arogge arogge marked this pull request as ready for review August 7, 2020 12:58
@arogge arogge merged commit fd13940 into bareos:master Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants