Skip to content

🌱 Update MariaDB operator installation with retry logic and github repos#536

Open
elfosardo wants to merge 1 commit intometal3-io:mainfrom
elfosardo:prepare-test-mariadb-retries
Open

🌱 Update MariaDB operator installation with retry logic and github repos#536
elfosardo wants to merge 1 commit intometal3-io:mainfrom
elfosardo:prepare-test-mariadb-retries

Conversation

@elfosardo
Copy link
Member

Update the MariaDB operator installation process in test/prepare.sh to improve reliability:

  • Change repository URL to the official GitHub repository
  • Add helm repo update command to ensure latest chart metadata
  • Implement retry logic (5 attempts with 10s delays) for both CRD and operator installations to handle transient failures

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tuminoid for approval. For more information see the Code Review Process.

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

Details 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

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 5, 2026
Update the MariaDB operator installation process in test/prepare.sh to
improve reliability:
- Change repository URL to the official GitHub repository
- Add helm repo update command to ensure latest chart metadata
- Implement retry logic (5 attempts with 10s delays) for both CRD and operator
installations to handle transient failures

Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
@elfosardo elfosardo force-pushed the prepare-test-mariadb-retries branch from c061bda to 6fedd91 Compare February 5, 2026 11:29
Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

It is easier for bots etc to detect fatal failures with ERROR.

echo "Attempt $i failed, retrying in 10s..."
sleep 10

if [ "$i" -eq 5 ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if [ "$i" -eq 5 ]; then
if [[ "$i" -eq 5 ]]; then

echo "Attempt $i failed, retrying in 10s..."
sleep 10

if [ "$i" -eq 5 ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if [ "$i" -eq 5 ]; then
if [[ "$i" -eq 5 ]]; then

sleep 10

if [ "$i" -eq 5 ]; then
echo "Failed to install MariaDB Operator after 5 attempts."
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "Failed to install MariaDB Operator after 5 attempts."
echo "ERROR: Failed to install MariaDB Operator after 5 attempts."

sleep 10

if [ "$i" -eq 5 ]; then
echo "Failed to install MariaDB CRDs after 5 attempts."
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "Failed to install MariaDB CRDs after 5 attempts."
echo "ERROR: Failed to install MariaDB CRDs after 5 attempts."

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

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants