Description of problem: - When passwd-change.sh in mysql pod failed, mysql pod will never starts and we cannnt debug. - One customer hit following error and we cannot debug it. $ oc logs mysql-1-x95v8 -c mysql ~~~ OUTPUT: ---> 14:16:58 Processing MySQL configuration files ... ... snip ... 2017-10-18T14:16:59.149617Z 0 [Note] /opt/rh/rh-mysql57/root/usr/libexec/mysqld: ready for connections. Version: '5.7.16' socket: '/tmp/mysql.sock' port: 0 MySQL Community Server (GPL) 2017-10-18T14:16:59.535076Z 2 [Note] Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO) ---> 14:16:59 MySQL started successfully ---> 14:16:59 Setting passwords ... 2017-10-18T14:16:59.558903Z 3 [Note] Access denied for user 'root'@'localhost' (using password: NO) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ~~~ Version-Release number of selected component (if applicable): - registry.access.redhat.com/rhscl/mysql-57-rhel7 (4ae3a3f4f409) How reproducible: - We still don't know why "Access denied for user 'root'@'localhost'" happened. Actual results: - We had to rebuild MySQL image and put it on public registry. Expected results: - Script continue to run and start mysql process. Then, we can debug it. Additional info: - Proposal patch https://github.com/sclorg/mysql-container/pull/199
PR merged: https://github.com/sclorg/mysql-container/pull/199