Skip to content

Fix RabbitMQ init account startup config#2684

Open
weicao wants to merge 1 commit into
mainfrom
jasper/rabbitmq-init-account-compat
Open

Fix RabbitMQ init account startup config#2684
weicao wants to merge 1 commit into
mainfrom
jasper/rabbitmq-init-account-compat

Conversation

@weicao
Copy link
Copy Markdown
Contributor

@weicao weicao commented May 27, 2026

RabbitMQ 3.8.x does not create the KubeBlocks root init account when the addon command bypasses the image entrypoint and only sets RABBITMQ_DEFAULT_USER/PASS in env. The live versions suite showed 3.8.34 started with only guest/guest while the root Secret/env existed.\n\nThis patch writes a small /etc/rabbitmq/conf.d/10-kubeblocks-default-user.conf file from RABBITMQ_DEFAULT_USER/PASS before execing rabbitmq-server, avoiding the full docker-entrypoint path because that also generates a duplicate 5672 listener on 3.8.\n\nValidation:\n- helm template rabbitmq addons/rabbitmq --namespace kb-system\n- git diff --check\n- kubeblocks-tests static PASS 19/0/0 with added default_user/default_pass render gate\n- Focused patch validation with temporary CmpD and RABBITMQ_VERSION_MATRIX=3.8.34 PASS 4/0/0, artifact repos/kubeblocks-tests/rabbitmq/artifacts/20260527-203419/summary.txt\n\nBoundary: focused patch validation only; full versions re-run should happen after this chart change is installed under a new immutable ComponentDefinition identity.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (c9989e9) to head (5fb392f).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2684   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         73      73           
  Lines       9197    9197           
=====================================
  Misses      9197    9197           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@weicao
Copy link
Copy Markdown
Contributor Author

weicao commented May 27, 2026

RabbitMQ PR candidate pre-validation on Mason 1.2.0 vcluster is complete for addon PR #2684 + kubeblocks-tests PR #70.

Candidate identity:

Results:

  • versions full matrix: PASS=20 FAIL=0 SKIP=0
    • artifact: repos/kubeblocks-tests/rabbitmq/artifacts/20260527-205706/
    • SHA256SUMS sha: c5dc1450320ea421a384572be3944e44534e505fe6a3573dcb2c2ab132f58749
  • PR CmpD smoke: PASS=10 FAIL=0 SKIP=0
    • artifact: repos/kubeblocks-tests/rabbitmq/artifacts/20260527-212149/
    • SHA256SUMS sha: 9ede29abd6a98bfd4cc08d7f94d3002341648686d5ecc6670842ce1081f3e9b2
  • PR CmpD day2: PASS=13 FAIL=0 SKIP=0
    • artifact: repos/kubeblocks-tests/rabbitmq/artifacts/20260527-213255/
    • SHA256SUMS sha: 9becb24bec4c29096593e09fd95d9962cf29dae23676d610fc36ee4bd816b988
  • PR CmpD chaos: PASS=12 FAIL=0 SKIP=0
    • artifact: repos/kubeblocks-tests/rabbitmq/artifacts/20260527-215330/
    • SHA256SUMS sha: 4040a4e7a047d39641cecd02bfdc8a1b904e71d79e227ba7c0e97ad31672e2ce

Cleanup:

  • Deleted namespaces: rabbitmq-tests-versions-pr2684, rabbitmq-tests-smoke-pr2684, rabbitmq-tests-day2-pr2684, rabbitmq-tests-chaos-pr2684.
  • Deleted temporary ComponentDefinition: rabbitmq-pr2684-1.2.0-alpha.0.
  • Before namespace deletion, cluster/pod/pvc/ops had no residue in all four runtime namespaces.

CI state at the time of this comment:

  • shell-check: pass
  • shellspec-test: pass
  • label-chart-release: skipped

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