Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to re-create MySQL Pod before StatefulSet's rolling updating #540

Closed
masa213f opened this issue Jul 13, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@masa213f
Copy link
Contributor

Describe the bug

When ConfigMap for MySQL config (which is refered in .spec.mysqlConfigMapName) is updated, moco-controller will perform the following operations.

  • Create a new ConfigMap for my.cnf
  • Update StatefulSet to use (mount) the new ConfigMap
  • Delete old ConfigMaps

Currently, the moco-controller does not wait for rolling updates of StatefulSet to delete the old ConfigMap.
Therefore, if a user tries to re-create a pod before the rolling update, the pod will not be created with the following error.

  Warning  FailedMount  82s (x9 over 3m30s)  kubelet            MountVolume.SetUp failed for volume "mysql-conf" : configmap "moco-<clustername>.<hash>" not found

Environments

  • Version: v0.16.1
@masa213f masa213f added the bug Something isn't working label Jul 13, 2023
@d-kuro d-kuro self-assigned this Jun 12, 2024
@YZ775 YZ775 closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants