Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

fix: Avoid system cfg changed can't restart - #2253

Merged
pjuarezd merged 9 commits into
minio:masterfrom
jiuker:avoid_system_cfg_changed_can't_restart
Aug 26, 2024
Merged

pjuarezd merged 9 commits into
minio:masterfrom
jiuker:avoid_system_cfg_changed_can't_restart

Conversation

@jiuker

@jiuker jiuker commented Aug 5, 2024 •

Copy link
Copy Markdown
Contributor

fix: Avoid system cfg changed can't restart
how to test:

  1. deploy 4*1 tenant.
  2. wait green
  3. add the env like MINIO_LOGGER_WEBHOOK_ENDPOINT_ to tenant
  4. now will restart all the pod in one batch. Before one by one , but the restart pod will get this
{"level":"INFO","time":"2024-08-05T19:05:07.791137217Z","message":"Following servers have mismatching configuration [https://minio-pool-0-3.na-minio-hl.na-test-minio.svc.cluster.local:9000-\u003ehttps://minio-pool-0-1.na-minio-hl.na-test-minio.svc.cluster.local:9000 has incorrect configuration: Expected MINIO_* environment name and values across all servers to be same: Mismatching environment values: [MINIO_LOGGER_WEBHOOK_ENDPOINT_].]"}

And got stuck for this pod will never be ready.

jiuker added 3 commits August 5, 2024 11:32
fix: avoid system cfg changed pod can't restart
delete pdb
comment
@jiuker
jiuker requested review from cniackz, harshavardhana, pjuarezd, ramondeklein and shtripat and removed request for harshavardhana August 5, 2024 03:36
lint
Comment thread pkg/controller/main-controller.go Resolved
init
@jiuker
jiuker requested a review from harshavardhana August 6, 2024 03:37
harshavardhana
harshavardhana previously approved these changes Aug 10, 2024
@harshavardhana

Copy link
Copy Markdown
Member

PTAL @ramondeklein @pjuarezd

@ramondeklein ramondeklein left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think aborting the deletion of pods half-way should be avoided...

Comment thread pkg/controller/pods.go Resolved
Comment thread pkg/controller/pods.go Resolved
Comment thread pkg/controller/pods.go Resolved
Comment thread pkg/controller/pods.go Resolved
Comment thread pkg/controller/pools.go Resolved
Comment thread pkg/controller/pools.go Resolved
Co-authored-by: Ramon de Klein <mail@ramondeklein.nl>
apply suggestion
@jiuker
jiuker requested a review from ramondeklein August 12, 2024 03:52
lint
ramondeklein
ramondeklein previously approved these changes Aug 12, 2024

@shtripat shtripat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

few minor ones

Comment thread pkg/controller/main-controller.go Resolved
Comment thread pkg/controller/main-controller.go Resolved
Comment thread pkg/controller/main-controller.go Resolved
Comment thread pkg/controller/main-controller.go Resolved
Comment thread pkg/controller/pods.go Resolved
Comment thread pkg/controller/pools.go Resolved
apply suggestoin

@shtripat shtripat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants