Skip to content

Commit 7f6f33a

Browse files
authored
Fix SSL errors on the container Fedora cases. (#1290)
This commit fixes the SSL related failures in the CI container Fedora cases. The MariaDB 10.5.18 mysqld failed to start in the CI, container "fedora:rawhide" (Fedora 38) and "fedora:latest" (Fedora 37) cases with the SSL error below. So, we set the SSL configurations manually as well as MacOSX case. ``` + /usr/libexec/mysqld --user=root --log-error=/build/mysql.log --ssl 2022-12-16 17:49:58 0 [Note] /usr/libexec/mysqld (mysqld 10.5.18-MariaDB) starting as process 724 ... + cat /build/mysql.log 2022-12-16 17:49:58 0 [Note] InnoDB: Uses event mutexes 2022-12-16 17:49:58 0 [Note] InnoDB: Compressed tables use zlib 1.2.12 2022-12-16 17:49:58 0 [Note] InnoDB: Number of pools: 1 2022-12-16 17:49:58 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2022-12-16 17:49:58 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts) 2022-12-16 17:49:58 0 [Note] InnoDB: Using Linux native AIO 2022-12-16 17:49:58 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2022-12-16 17:49:58 0 [Note] InnoDB: Completed initialization of buffer pool 2022-12-16 17:49:58 0 [Note] InnoDB: 128 rollback segments are active. 2022-12-16 17:49:58 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2022-12-16 17:49:58 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2022-12-16 17:49:58 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2022-12-16 17:49:58 0 [Note] InnoDB: 10.5.18 started; log sequence number 45079; transaction id 20 2022-12-16 17:49:58 0 [Note] Plugin 'FEEDBACK' is disabled. 2022-12-16 17:49:58 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool 2022-12-16 17:49:58 0 [Note] InnoDB: Buffer pool(s) load completed at 221216 17:49:58 SSL error: Private key does not match the certificate public key Error: -16 17:49:58 0 [ERROR] Failed to setup SSL Error: -16 17:49:58 0 [ERROR] SSL error: Private key does not match the certificate public key Error: -16 17:49:58 0 [ERROR] Aborting ``` After fixing the issue, we also saw the following failing tests with the error below. So, we recreated the db user. ``` expected no Exception, got #<Mysql2::Error: Access denied for user 'root'@'localhost'> with backtrace: ``` Note this issue didn't happened on the container CentOS case. But as we applied the fix to all the container cases to simplify the logic.
1 parent 890342a commit 7f6f33a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/setup_container.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -eux
44

55
MYSQL_TEST_LOG="$(pwd)/mysql.log"
66

7+
bash ci/ssl.sh
8+
79
mysql_install_db \
810
--log-error="${MYSQL_TEST_LOG}"
911
/usr/libexec/mysqld \
@@ -14,4 +16,12 @@ sleep 3
1416
cat ${MYSQL_TEST_LOG}
1517

1618
/usr/libexec/mysqld --version
19+
20+
mysql -u root <<SQL
21+
DROP USER 'root'@'localhost';
22+
CREATE USER 'root'@'localhost' IDENTIFIED BY '';
23+
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
24+
FLUSH PRIVILEGES;
25+
SQL
26+
1727
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS test'

0 commit comments

Comments
 (0)