Percona-Server-test-56 RPM package does NOT check /usr/share/percona-server directory and thus is unusable "as is"
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Triaged
|
High
|
Unassigned | |||
5.6 |
Triaged
|
High
|
Unassigned | |||
5.7 |
Triaged
|
High
|
Unassigned |
Bug Description
I've installed recent RPMs of 5.6.21-71.0 on CentOS 6.6:
[root@centos openxs]# rpm -qa | grep -i percona
Percona-
percona-
Percona-
percona-
percona-
Percona-
Percona-
Percona-
Percona-
percona-
and tried to use mysql-test suit from Percona-
[root@centos openxs]# cd /usr/share/
[root@centos mysql-test]# ./mtr analyze
Logging: ./mtr analyze
mysql-test-run: *** ERROR: Could not find any of /usr/share/
So, it fails and it expects to find charsets directory in places that Percona packages just do not provide. There is a quick and dirty fix:
[root@centos mysql-test]# ln -s /usr/share/
and then it works:
[root@centos mysql-test]# ./mtr analyze
Logging: ./mtr analyze
2014-11-25 11:08:52 2354 [Note] Plugin 'FEDERATED' is disabled.
2014-11-25 11:08:52 2354 [Note] Binlog end
2014-11-25 11:08:52 2354 [Note] Shutting down plugin 'CSV'
2014-11-25 11:08:52 2354 [Note] Shutting down plugin 'MyISAM'
MySQL Version 5.6.21
Checking supported features...
- SSL connections supported
Collecting tests...
Checking leftover processes...
Removing old var directory...
Creating var directory '/usr/share/
Installing system database...
=======
TEST RESULT TIME (ms) or COMMENT
-------
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009
worker[1] mysql-test-run: WARNING: running this script as _root_ will cause some tests to be skipped
main.analyze [ pass ] 224
-------
The servers were restarted 0 times
Spent 0.224 of 14 seconds executing testcases
Completed: All 1 tests were successful.
But package should work after installation without any kind of hacks.
tags: | added: pkg |
Able to reproduce the same with CentOS 6.5 and PS 5.6.21-70.1.
[root@centos65 ~]# cd /usr/share/ mysql-test/ mysql/charsets /usr/sql/ share/charsets /usr/share/charsets
[root@centos65 mysql-test]# ./mtr analyze
Logging: ./mtr analyze
mysql-test-run: *** ERROR: Could not find any of /usr/share/
[root@centos65 mysql-test]#
Added this, ln -s /usr/share/ percona- server/ charsets /usr/share/mysql
and it works, but giving another error.
[root@centos65 mysql-test]# ./mtr analyze mysql/errmsg. sys' mysql-test/ var'... test/lib/ init_db. sql' test/lib/ init_db. sql': No such file or directory
Logging: ./mtr analyze
2014-11-26 12:33:25 2471 [ERROR] Can't find messagefile '/usr/share/
2014-11-26 12:33:25 2471 [Note] Plugin 'FEDERATED' is disabled.
2014-11-26 12:33:25 2471 [Note] Binlog end
2014-11-26 12:33:25 2471 [Note] Shutting down plugin 'CSV'
2014-11-26 12:33:25 2471 [Note] Shutting down plugin 'MyISAM'
MySQL Version 5.6.21
Checking supported features...
- SSL connections supported
Collecting tests...
Removing old var directory...
Creating var directory '/usr/share/
Installing system database...
- from '/usr/mysql-
mysql-test-run: *** ERROR: Can't open '/usr/mysql-
[root@centos65 mysql-test]#
Dont know why its searching /usr/mysql-test where it is at /usr/share/mysql. I even can't able to find init_db.sql
[root@centos65 mysql-test]# find / -name init_db.sql mysql-test
[root@centos65 mysql-test]#
[root@centos65 mysql-test]# pwd
/usr/share/
[root@centos65 mysql-test]# find . -name init_db.sql
[root@centos65 mysql-test]#