Mysql and haproxy pods go into CreateContainerConfigError state
Description
Environment
Attachments
is caused by
Activity

Manish Chawla December 27, 2024 at 9:28 AM
Tested with Everest v1.4.0-rc4 version.
Install using helm with default everest namespace.
Created several mysql databases with scheduled backps, pitr and monitoring enabled. The databases were able to come up successfully and no errors were observed.
Install the a1 db namespace with only pxc and created more mysql databases.
Also created mysql databases when the cluster resources were insufficient. The mysql db pods go into Pending status and after resources are available, they transition to the Running status.
These were the mysql databases created
The issue is fixed, hence closing it.

Diogo Recharte December 24, 2024 at 9:53 AMEdited
Looks like the changes introduced in triggered the PXCO bug that causes this issue.
Because this issue is more severe than we are going to revert and move back to TODO. Once is fixed we can then re-introduce the changes that fix .

Manish Chawla December 24, 2024 at 7:53 AM
This issue got reproduced in Everest v1.4.0-rc3 version. The steps are:
Create an eks cluster with 3 nodes.
Install everest using helm without creating any db namespace.
Install a1 namespace - only mysql operator.
Create 3 node mysql database in a1 namespace.
Create a 1 node mysql database, add a monitoring instance and enable monitoring in the db wizard. The mysql and haproxy pods go into CreateContainerConfigError state
On the UI, the mysql database remains in Initializing
status.

Mayank Shah December 18, 2024 at 9:54 AM
Seems like a PXC operator issue, created a detailed report here -

Manish Chawla December 17, 2024 at 3:54 PMEdited
On deleting the internal-mysql-gca
secrets, the mysql database comes up. It seems that the secrets are not correctly generated in this scenario.
Details
Assignee
Manish ChawlaManish ChawlaReporter
Manish ChawlaManish ChawlaLabels
Fix versions
Affects versions
Priority
High
Details
Details
Assignee

Reporter

Labels
Fix versions
Affects versions
Priority
Smart Checklist
Open Smart Checklist
Smart Checklist
Open Smart Checklist
Smart Checklist

Tested with Everest v1.4.0-rc1 version.
Create an eks cluster with 3 nodes.
Helm Install 1.4.0 with default everest namespace and all db operators.
Create 3 node mysql, mongodb, pg databases in everest namespace.
Change the admin password using cli.
Add two users using cli, list users, delete a user.
Login as new user and create 1 node mysql, mongodb, pg databases in everest namespace with monitoring enabled.
The resources are not sufficient for the 1 node mysql db to come up, scale up the eks cluster to add more resources.
The 1 node mysql db still does not come up. The pmm container is not able to come up in the mysql db and remains in the
CreateContainerConfigError
state.The mysql pod events show this error
Error: couldn't find key root in Secret everest/internal-mysql-1node
haproxy and pxc pod status
In the UI, the mysql database remains in
Initializing
statusPxc container status
Adding logs for pxc operator, and pod description of haproxy, pxc.
Note: I was able to reproduce the issue with two mysql 1 node clusters. The kubernetes cluster had 2.75 CPU and after creating the mysql database with monitoring enabled the haproxy, mysql pods went into CreateContainerConfigError state.
Slack discussion: