Skip to content

Conversation

@openshift-cherrypick-robot

This is an automated cherry-pick of #337

/assign lmiccini

dciabrin added 2 commits June 23, 2025 16:23
. Improve the teardown of every test, so that KUTTL can run the
  tests in a random order without causing errors due to unexpected
  resource state.

. Improve account and database creation tests so that they can be
  run from the top-most directory without causing KUTTL errors.

. Also remove a test that expects the mariadb-operator runs in a pod
  on a dedicated namespace. This test doesn't add much coverage
  and removing it greatly simplifies testing locally during
  development or CI failure analysis.
When the galera pod that receives database traffic becomes
unresponsible, the galera library reacts by running a script
in one of the surviving pod to elect a new endpoint. This
script uses curl to call the API server to update the selector
object responsible for balancing database traffic.

If during the API call the API server becomes unresponsive/unreacheable
(e.g. the API VIP fails over to another master node), the curl call
might get stuck for an unbounded period of time, which delays the
traffic failover and can cause a long database service disruption.

Add a default connect timeout and update default retry parameters
so that curl is never blocked for too long, and the endpoint
configuration can be retried until the API server becomes available.

This commit only improves the default parameters, the ability to override
those parameters will be addressed in a subsequent commit.

Jira: OSPRH-17604
@openshift-ci openshift-ci bot added the lgtm label Jun 23, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 23, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lmiccini, openshift-cherrypick-robot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 97a6b5f into openstack-k8s-operators:18.0-fr3 Jun 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants