Details
Assignee
Slava SarzhanSlava SarzhanReporter
Sergey KuzmichevSergey KuzmichevAffects versions
Priority
Medium
Details
Details
Assignee
Slava Sarzhan
Slava SarzhanReporter
Sergey Kuzmichev
Sergey KuzmichevAffects versions
Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created February 16, 2022 at 9:24 AM
Updated September 11, 2024 at 11:08 AM
After a cluster is smart-updated from 8.0.23 to 8.0.25, if a sidecar is added, the first re-created pod will have PXC image version 8.0.23. As the data directory has already been updated to 8.0.25, and other nodes are on 8.0.25, MySQL fails to start in the restarted pod.
Steps to reproduce:
Create operator and PXC version 1.10.0, cr has 8.0.23
Wait for smart update to finish, and make sure that describe shows pxc pods using image 8.0.25
Update cr, and uncomment the sidecar definition for pxc
Apply updated cr
PXC pod 2 goes into crashloop
The reason for crashloop is that MySQL fails to start with the following error:
Checking PXC image versions reveals an inconsistency:
To resolve the issue one needs to downscale the operator to 0, modify the statefulset, and wipe the data directory on pxc-2, all of which is not straightforward.