Skip to content

Conversation

@nmarukovich
Copy link
Contributor

@nmarukovich nmarukovich commented Dec 4, 2025

K8SPXC-1683 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
Short explanation of the problem.
Added check for 8.4 and pmm2/pmm3.
Cause:
Short explanation of the root cause of the issue if applicable.

Solution:
Short explanation of the solution we are providing with this PR.

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?

one-pod,5.7
one-pod,8.0
pitr,8.0
pitr,8.4
Copy link
Contributor

Choose a reason for hiding this comment

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

pitr for 8.4 won't work, let's not add it for now

@nmarukovich nmarukovich changed the title K8SPXC-1683 add pmm and 8.4 to smart-update test K8SPXC-1683 add pmm and 8.4 to smart-update test and K8SPXC-1712 add 8.4 to pr check. Dec 5, 2025
@nmarukovich nmarukovich requested a review from egegunes December 5, 2025 10:01
VS_ENDPOINT="${VS_URL}:${VS_PORT}"

# Determine update strategy based on PXC version
if [[ "${PXC_VER}" == "8.4" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "${PXC_VER}" == "8.4" ]]; then
if [[ ${PXC_VER} == "8.4" ]]; then

local telemetry_cr_log_file="${telemetry_state}_telemetry.version-service-cr-${image_prefix}${OPERATOR_NS:+-cw}.log.json"
desc "telemetry was disabled in operator but not in CR"
if [ "${cr_vs_channel}" == "${image_prefix}-recommended" -a "${telemetry_state}" == 'disabled' ]; then
if [[ "${cr_vs_channel}" == "${image_prefix}-recommended" || "${cr_vs_channel}" == "${image_prefix}-latest" ]] && [ "${telemetry_state}" == 'disabled' ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "${cr_vs_channel}" == "${image_prefix}-recommended" || "${cr_vs_channel}" == "${image_prefix}-latest" ]] && [ "${telemetry_state}" == 'disabled' ]; then
if [[ ${cr_vs_channel} == "${image_prefix}-recommended" || ${cr_vs_channel} == "${image_prefix}-latest" ]] && [ "${telemetry_state}" == 'disabled' ]; then

# Verify PMM2 updated
for i in $(seq 0 $((CLUSTER_SIZE - 1))); do
actual_pmm_image=$(kubectl_bin get pod "${CLUSTER}-pxc-${i}" -o jsonpath='{.status.containerStatuses[?(@.name=="pmm-client")].image}')
if [[ "${actual_pmm_image}" != *"${pmm2_recommended_image}"* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "${actual_pmm_image}" != *"${pmm2_recommended_image}"* ]]; then
if [[ ${actual_pmm_image} != *"${pmm2_recommended_image}"* ]]; then

# Verify PMM3 updated
for i in $(seq 0 $((CLUSTER_SIZE - 1))); do
actual_pmm_image=$(kubectl_bin get pod "${CLUSTER}-pxc-${i}" -o jsonpath='{.status.containerStatuses[?(@.name=="pmm-client")].image}')
if [[ "${actual_pmm_image}" != *"${pmm3_recommended_image}"* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "${actual_pmm_image}" != *"${pmm3_recommended_image}"* ]]; then
if [[ ${actual_pmm_image} != *"${pmm3_recommended_image}"* ]]; then

desc "test passed"
}

main No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change
main
main

@JNKPercona
Copy link
Collaborator

Test Name Result Time
auto-tuning-8-0 passed 00:18:48
allocator-8-0 passed 00:12:31
allocator-8-4 passed 00:12:45
backup-storage-tls-8-0 passed 00:21:27
backup-storage-tls-8-4 passed 00:23:12
cross-site-8-0 passed 00:34:49
custom-users-8-0 passed 00:12:18
demand-backup-cloud-8-0 passed 00:56:57
demand-backup-cloud-8-4 passed 00:57:11
demand-backup-encrypted-with-tls-8-0 passed 00:44:59
demand-backup-encrypted-with-tls-8-4 passed 00:45:38
demand-backup-8-0 passed 00:42:47
demand-backup-8-4 passed 00:42:23
demand-backup-flow-control-8-0 passed 00:10:28
demand-backup-flow-control-8-4 passed 00:10:31
demand-backup-parallel-8-0 passed 00:09:06
demand-backup-parallel-8-4 passed 00:08:56
demand-backup-without-passwords-8-0 passed 00:15:19
demand-backup-without-passwords-8-4 passed 00:16:13
extra-pvc-8-0 passed 00:24:44
haproxy-5-7 passed 00:12:49
haproxy-8-0 passed 00:13:15
haproxy-8-4 passed 00:13:55
init-deploy-5-7 passed 00:15:39
init-deploy-8-0 passed 00:16:22
limits-8-0 passed 00:12:10
monitoring-2-0-8-0 passed 00:22:23
monitoring-pmm3-8-0 passed 00:16:52
monitoring-pmm3-8-4 passed 00:17:47
one-pod-5-7 passed 00:14:02
one-pod-8-0 passed 00:13:18
pitr-8-0 failure 00:03:27
pitr-gap-errors-8-0 passed 00:56:57
proxy-protocol-8-0 passed 00:09:24
proxy-switch-8-0 passed 00:13:08
proxysql-sidecar-res-limits-8-0 passed 00:08:21
proxysql-scheduler-8-0 passed 00:16:32
pvc-resize-5-7 passed 00:16:41
pvc-resize-8-0 passed 00:15:51
recreate-8-0 passed 00:17:26
restore-to-encrypted-cluster-8-0 passed 00:24:56
restore-to-encrypted-cluster-8-4 passed 00:25:26
scaling-proxysql-8-0 passed 00:08:37
scaling-8-0 passed 00:10:37
scheduled-backup-5-7 passed 01:04:56
scheduled-backup-8-0 passed 01:03:42
scheduled-backup-8-4 passed 01:04:17
security-context-8-0 passed 00:25:26
smart-update1-8-0 passed 00:32:42
smart-update2-8-0 passed 00:37:48
smart-update1-8-4 passed 00:33:03
smart-update2-8-4 passed 00:37:25
smart-update3-8-0 failure 00:03:29
storage-8-0 passed 00:10:35
tls-issue-cert-manager-ref-8-0 passed 00:09:12
tls-issue-cert-manager-8-0 passed 00:10:15
tls-issue-self-8-0 passed 00:13:05
upgrade-consistency-8-0 passed 00:11:10
upgrade-consistency-8-4 passed 00:11:13
upgrade-haproxy-5-7 passed 00:24:43
upgrade-haproxy-8-0 passed 00:24:12
upgrade-proxysql-5-7 passed 00:14:32
upgrade-proxysql-8-0 passed 00:14:33
users-5-7 passed 00:23:39
users-8-0 passed 00:24:08
validation-hook-8-0 passed 00:01:36
Summary Value
Tests Run 66/66
Job Duration 03:37:53
Total Test Time 24:33:07

commit: 047564f
image: perconalab/percona-xtradb-cluster-operator:PR-2289-047564f9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL 500-999 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants