Skip to content

Conversation

@eminaktas
Copy link
Contributor

@eminaktas eminaktas commented Aug 14, 2025

K8SPXC-1701 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:

When restore job triggers job to prepare the cluster, mysql configs are not included for the job.

Cause:

Since running the pod in root user is not allowed without this configuration, the restore jobs fails to run.

[mysqld]
user = root

Solution:

Attaching the pxc configuration to the job resolves the issue.

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?
  • Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported PXC version?
  • Does the change support oldest and newest supported Kubernetes version?

@pull-request-size pull-request-size bot added the size/XS 0-9 lines label Aug 14, 2025
@hors hors added the community label Aug 14, 2025
@gkech gkech added this to the v1.18.0 milestone Aug 20, 2025
@egegunes egegunes changed the title fix: add pxc config for restore job K8SPXC-1701: add pxc config for restore job Aug 20, 2025
@egegunes
Copy link
Contributor

@eminaktas thank you for contribution, we'll include this in next release.

@eminaktas eminaktas force-pushed the fix/add-xtradb-conf-restore branch from 09b88f9 to 5590c56 Compare August 20, 2025 14:21
@pull-request-size pull-request-size bot added size/S 10-29 lines and removed size/XS 0-9 lines labels Aug 20, 2025
gkech
gkech previously approved these changes Sep 23, 2025
Copy link
Contributor

@egegunes egegunes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eminaktas one-pod-5-7 test fails because of these changes. please update e2e-tests/one-pod/conf/one-pod.yml and add server_id to configuration section:

diff --git a/e2e-tests/one-pod/conf/one-pod.yml b/e2e-tests/one-pod/conf/one-pod.yml
index 7a39e7eac..0daa78708 100644
--- a/e2e-tests/one-pod/conf/one-pod.yml
+++ b/e2e-tests/one-pod/conf/one-pod.yml
@@ -16,6 +16,7 @@ spec:
       gtid_mode=on
       enforce_gtid_consistency=on

+      server_id=1
       log-bin=binlog
       log-slave-updates

@JNKPercona
Copy link
Collaborator

Test Name Result Time
affinity-8-0 passed 00:00:00
auto-tuning-8-0 passed 00:00:00
backup-storage-tls-8-0 passed 00:00:00
cross-site-8-0 passed 00:00:00
custom-users-8-0 passed 00:09:11
demand-backup-cloud-8-0 passed 00:00:00
demand-backup-encrypted-with-tls-8-0 passed 00:00:00
demand-backup-8-0 passed 00:00:00
demand-backup-flow-control-8-0 passed 00:00:00
demand-backup-parallel-8-0 passed 00:00:00
demand-backup-without-passwords-8-0 passed 00:00:00
haproxy-5-7 passed 00:00:00
haproxy-8-0 passed 00:00:00
init-deploy-5-7 passed 00:00:00
init-deploy-8-0 passed 00:00:00
limits-8-0 passed 00:00:00
monitoring-2-0-8-0 passed 00:00:00
monitoring-pmm3-8-0 passed 00:00:00
one-pod-5-7 passed 00:00:00
one-pod-8-0 passed 00:00:00
pitr-8-0 passed 00:00:00
pitr-gap-errors-8-0 passed 00:00:00
proxy-protocol-8-0 passed 00:00:00
proxysql-sidecar-res-limits-8-0 passed 00:00:00
pvc-resize-5-7 passed 00:00:00
pvc-resize-8-0 passed 00:00:00
recreate-8-0 passed 00:00:00
restore-to-encrypted-cluster-8-0 passed 00:00:00
scaling-proxysql-8-0 passed 00:00:00
scaling-8-0 passed 00:00:00
scheduled-backup-5-7 passed 00:00:00
scheduled-backup-8-0 passed 00:00:00
security-context-8-0 passed 00:00:00
smart-update1-8-0 passed 00:00:00
smart-update2-8-0 passed 00:00:00
storage-8-0 passed 00:00:00
tls-issue-cert-manager-ref-8-0 passed 00:00:00
tls-issue-cert-manager-8-0 passed 00:00:00
tls-issue-self-8-0 passed 00:00:00
upgrade-consistency-8-0 passed 00:00:00
upgrade-haproxy-5-7 passed 00:00:00
upgrade-haproxy-8-0 passed 00:00:00
upgrade-proxysql-5-7 passed 00:00:00
upgrade-proxysql-8-0 passed 00:00:00
users-5-7 passed 00:00:00
users-8-0 passed 00:00:00
validation-hook-8-0 passed 00:00:00
Summary Value
Tests Run 47/47
Job Duration 00:37:08
Total Test Time 00:09:11

commit: 3c8510b
image: perconalab/percona-xtradb-cluster-operator:PR-2164-3c8510b4

@egegunes egegunes requested a review from gkech November 11, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants