Skip to content
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

Ensure CRI calls are not retried in NodeConfig's sync loop and have a timeout #2073

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

tnozicka
Copy link
Member

Description of your changes:
There can be cases where CRI call stuck on the CRI runtime, like with cri-o and trying to inspect a container from a pod that's being terminated but runs a preStopHook.

This PR makes sure we disable the client internal retries and use our queue to gracefully do that, otherwise we'd have blocked the sync loop.

Which issue is resolved by this Pull Request:
Resolves #2057

@tnozicka tnozicka added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Aug 13, 2024
@scylla-operator-bot scylla-operator-bot bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 13, 2024
@tnozicka tnozicka changed the title Ensure CRI calls are not retried withing a sync loop and have a timeout Ensure CRI calls are not retried in NodeConfig's sync loop and have a timeout Aug 13, 2024
Copy link
Collaborator

@zimnx zimnx left a comment

Choose a reason for hiding this comment

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

lgtm, one optional nit
/assign rzetelskik

pkg/controller/nodetune/tune.go Outdated Show resolved Hide resolved
Copy link
Member

@rzetelskik rzetelskik left a comment

Choose a reason for hiding this comment

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

/lgtm

@scylla-operator-bot scylla-operator-bot bot added the lgtm Indicates that a PR is ready to be merged. label Aug 14, 2024
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rzetelskik, tnozicka, zimnx

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

The pull request process is described here

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

@scylla-operator-bot scylla-operator-bot bot merged commit 433476b into scylladb:master Aug 14, 2024
12 checks passed
@tnozicka tnozicka deleted the nc-limit branch August 15, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. 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.

NodeConfig's node setup loops can end in an infinite loop waiting for CRI backoff
3 participants