mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

mysql secondary init issue

Open jgillis01 opened this issue 6 years ago • 3 comments

When creating a mysql cluster with release version 0.3.8, it seems that the secondary init process cannot access port 8080 on the mysql-master service. Checking that service, port 8080 is not being exposed. This is causing the init container to fail since it cannot find an instance from which to clone data. This seems to have been solved back in Jan with this commit: https://github.com/presslabs/mysql-operator/commit/58934f15b0fc7307213b3181944b1fef3c63ca57

Can we get a new release which includes this commit and addresses the init issue for the mysql secondary init process?

jgillis01 avatar Feb 14 '20 20:02 jgillis01

Hi @jgillis01,

Nice catch, this wasn't a problem so far (I think on older k8s versions), what version of k8s do you use? I'm working on the next release 4.0 which has some breaking changes but it will take at least a week because some e2e tests are failing. I can do a quick release 3.9 with this fix if you want it sooner.

Thank you for reporting this issue!

AMecea avatar Feb 17 '20 12:02 AMecea

Hi, @AMecea,

Thank you for the quick response! We are currently running k8s version v1.15.3. I can track master for now, but I am concerned about any breaking changes that are coming down the pipeline. A new version would be much appreciated!

jgillis01 avatar Feb 18 '20 16:02 jgillis01

@AMecea,

After further investigation, it seems that the issue has to do with the imagePullPolicy on the operator statefulset. It is set to IfNotPresent. However, the images used are referencing the latest tag. This is preventing the newest images from being pulled on subsequent deployments of the operator (The new master commits contain the changes to add port 8080 to the master service). The pull policy is configurable in the helm chart values file so I think this issue is moot. Thank you for your attention on this.

jgillis01 avatar Feb 21 '20 17:02 jgillis01