-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: restart minio services must happened at config changed when decommission completed #2140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, this PR should ensure that the pool is restarted after decomissioning, but it now waits until all pods have the same generation as the Tenant
resource?
Yes. As you can see
minio server restart before the env changed. So used a outdate env to restart. |
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion, but not really important.
please rebase this PR @jiuker would like to see how tests do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's required to build with Go v1.21.11 and not an earlier version, then I guess we should also ensure that we use at least this version to build the code? If any v1.21 version is fine, then I suggest not to fix the version.
https://github.com/minio/operator/actions/runs/9376441443/job/25816378764 But have an govulncheck failed here @ramondeklein |
Jiuker, can we split this PR in multiple atomic ones, I think having this complex task all at once is maybe not the best idea... what do you think? |
This is a complete fix, the problem now is that pjuarezd test does not pass. But I think that should be his develop step error @cniackz . Could you test this? |
a4eecd9
to
ab06c1e
Compare
@jiuker, please read Harsha's comment on Slack and decide whether to continue this way or simplify things by restarting the service instead. |
Adding this flow is important because we shouldn't be restarting services if not all pods have the same tenant configuration. |
restart pod must happened at config changed
apply suggestion
5a29825
to
7196b59
Compare
restart minio services must happened at config changed when decommisson competed
When decommisson completed, we are facing this for pools pods:
test steps:
cd sidecar make docker
OPERATOR_SIDECAR_IMAGE="your sidecar dev image"
do a decommisson
, you can ignore this step if you have a fresh install without data.patched pod annotations
and delete the statefulset successful.