Skip to content

HDDS-14956. Add S3 HAProxy to ozonesecure-ha test-haproxy-s3g.sh#10685

Merged
adoroszlai merged 1 commit into
apache:masterfrom
chihsuan:HDDS-14956
Jul 8, 2026
Merged

HDDS-14956. Add S3 HAProxy to ozonesecure-ha test-haproxy-s3g.sh#10685
adoroszlai merged 1 commit into
apache:masterfrom
chihsuan:HDDS-14956

Conversation

@chihsuan

@chihsuan chihsuan commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

HDDS-12113 moved the S3 HAProxy tests into the HA environments, but ozonesecure-ha/test-haproxy-s3g.sh never set COMPOSE_FILE, so it ran against a single s3g and never started s3-haproxy.yaml. The HA-secure suite exercised the test without actually routing S3 traffic through HAProxy.

  1. ozonesecure-ha/test-haproxy-s3g.sh: set COMPOSE_FILE=docker-compose.yaml:s3-haproxy.yaml to start the HAProxy proxy and three backend s3g workers.
  2. testlib.sh (reorder_om_nodes): use POSIX sh instead of bash. The haproxy:lts-alpine proxy has no bash, so the per-container docker exec failed with exit 127 and aborted the run under set -e. sh lets the existing ozone-site.xml guard skip non-Ozone containers; behavior is unchanged elsewhere.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14956

How was this patch tested?

  • Ran ozonesecure-ha/test-haproxy-s3g.sh: 131/131 S3 robot tests passed, now with the HAProxy proxy and three backends.
  • Verified routing: 12 requests to s3g:9878 round-robined 4/4/4 across the backends, logged with the HAProxy container IP as source.
  • bats.sh passed.

Generated-by: Claude Code (Opus 4.8)

Include s3-haproxy.yaml in the compose file set so the ozonesecure-ha suite
exercises the HAProxy S3 gateway with three backend s3g workers.

Make reorder_om_nodes tolerant of containers without bash (the HAProxy proxy
uses haproxy:lts-alpine) by using POSIX sh, so its existing ozone-site.xml
guard can skip non-ozone containers instead of aborting the test.
@adoroszlai adoroszlai requested review from dombizita and peterxcli July 8, 2026 11:03
@adoroszlai

Copy link
Copy Markdown
Contributor

Thanks @chihsuan for the patch.

Generated-by: Claude Code (Opus 4.8)

Can you please clarify if that applies to the patch itself, the PR description, or both?

@peterxcli peterxcli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM +1

@chihsuan

chihsuan commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review! @adoroszlai @peterxcli

Can you please clarify if that applies to the patch itself, the PR description, or both?

The PR description 🙂

@adoroszlai adoroszlai merged commit ad07bcd into apache:master Jul 8, 2026
31 of 32 checks passed
@adoroszlai

Copy link
Copy Markdown
Contributor

Thanks @chihsuan for the patch, @peterxcli for the review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants