[MDEV-22150] AUTH_TEST_PLUGIN_SO points to old location, test main.plugin_auth fails with new client plugin path Created: 2020-04-05 Updated: 2020-04-14 Resolved: 2020-04-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Debian |
| Affects Version/s: | 10.5 |
| Fix Version/s: | 10.5.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Otto Kekäläinen | Assignee: | VicenČ›iu Ciorbaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Applying recent MariaDB Connector C changes and applying https://github.com/MariaDB/server/pull/1478 leads to the mtr error:
This is because the new location for the plugin is usr/lib/*/libmariadb3/plugin/mysql_clear_password.so instead of usr/lib/mysql/plugin/mysql_clear_password.so Line 417 in plugin_auth.test looks like this:
In the beginning of the file the plugin is loaded with:
The file have_plugin.opt includes:
I can't find where $AUTH_TEST_PLUGIN_SO is set or how to update the path now to the test.
Please help how to track down the client library plugin path in mtr and update it to match new location. |
| Comments |
| Comment by Otto Kekäläinen [ 2020-04-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Also applies for a couple more tests:
mtr itself has option --plugin-dir and a sections that seems to expand it:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-04-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tried to fix this in https://github.com/MariaDB/server/pull/1478/commits/96864b6c1ceffa6270ab85490dd96ab30f0c688e but it did not have an effect mtr still fails with same messages.
Could perhaps elenst help here? Do you know where the path main.plugin_auth uses is defined? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-04-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This happens because include/default_client.cnf template has
meaning the resulting my.cnf will have plugin-dir in the [client] section set to the plugin-dir from the [mysqld.1] section. And it's because mtr does not know that the client can have a plugin dir different from the server | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-04-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This error is visible in context at e.g. http://buildbot.askmonty.org/buildbot/builders/kvm-deb-eoan-amd64/builds/866 and http://buildbot.askmonty.org/buildbot/builders/kvm-deb-buster-amd64/builds/2073 It does not occur when the mtr is run in source, but apparently only when mariadb-test package and libmariadb3 packages are installed and test runs from installed packages. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-04-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Steps to reproduce in Docker:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-04-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Side note: tested rr, but can't get it recording with default settings due to
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-04-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-04-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PR merged, https://github.com/MariaDB/server/commit/87a7968c23d32880920d129c0e3f467495dce10d on 10.5 now. |