MySQL container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
$ oc logs pod/mysql-1-lzvk2
=> sourcing 20-validate-variables.sh ...
=> sourcing 25-validate-replication-variables.sh ...
=> sourcing 30-base-config.sh ...
---> 09:18:03 Processing basic MySQL configuration files ...
=> sourcing 60-replication-config.sh ...
=> sourcing 70-s2i-config.sh ...
---> 09:18:03 Processing additional arbitrary MySQL configuration provided by s2i ...
=> sourcing 20-default-authentication-plugin.cnf ...
=> sourcing 40-paas.cnf ...
=> sourcing 50-my-tuning.cnf ...
---> 09:18:03 Starting MySQL server with disabled networking ...
---> 09:18:03 Waiting for MySQL to start ...
---> 09:18:04 Waiting for MySQL to start ...
---> 09:18:05 Waiting for MySQL to start ...
---> 09:18:06 Waiting for MySQL to start ...
---> 09:18:07 Waiting for MySQL to start ...
---> 09:18:08 Waiting for MySQL to start ...
2022-11-29T09:18:03.586863Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2022-11-29T09:18:03.615168Z 0 [System] [MY-010116] [Server] /usr/libexec/mysqld (mysqld 8.0.17) starting as process 26
2022-11-29T09:18:08.250068Z 0 [System] [MY-010229] [Server] Starting crash recovery...
2022-11-29T09:18:08.344497Z 0 [System] [MY-010232] [Server] Crash recovery finished.
2022-11-29T09:18:08.907189Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2022-11-29T09:18:09.008059Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/lib/mysql/data' in the path is accessible to all OS users. Consider choosing a different directory.
2022-11-29T09:18:09.376269Z 0 [System] [MY-010931] [Server] /usr/libexec/mysqld: ready for connections. Version: '8.0.17' socket: '/tmp/mysql.sock' port: 0 Source distribution.
---> 09:18:09 MySQL started successfully
2022-11-29T09:18:09.453314Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/lib/mysql/mysqlx.sock'
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
=> sourcing 40-datadir-action.sh ...
---> 09:18:09 Running datadir action: upgrade-warn
---> 09:18:09 MySQL server version check passed, both server and data directory are version 8.0.
=> sourcing 50-passwd-change.sh ...
---> 09:18:09 Setting passwords ...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
---> 09:18:09 WARNING: User user1 does not exist in database. Password not changed.
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Closing as not a bug.
It seems the deployment is a little bit slow and the pod is being reset during the initial setup (InitialDelaySeconds was reached) which leads to this behavior.
It seems that deployment fails on OKD4, while working on OCP.
Cluster Version: 4.11.0-0.okd-2022-11-19-050030 How to deploy:
Definition created by the template:
Logs: