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

Bug 2223959: osd: make osd pod to sleep when osds are flapping #521

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Bug 2223959: osd: make osd pod to sleep when osds are flapping #521

merged 1 commit into from
Sep 19, 2023

Conversation

sp98
Copy link

@sp98 sp98 commented Sep 19, 2023

When OSDs flap, ceph stops the OSD daemon if its marked down greater than 5 times in 600 seconds. But OSD pod restarts and marks the OSD up again. This causes the PGs mapped to these OSDs to peer. While the PGs are peering, IO to these PGs are blocked.

So we need to ensure that if ceph is marking OSD down due to flapping, OSD pod should not restart to mark the OSDs up again.

This PR adds a sleep to the OSD pod if the container returned with a 0 exit code Default behavior is to sleep for 6 hrs. But user can configure it from the ceph cluster spec.

Signed-off-by: sp98 sapillai@redhat.com
(cherry picked from commit 4eb9f62)

Description of your changes:

Which issue is resolved by this Pull Request:
Resolves #

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide).
  • Skip Tests for Docs: If this is only a documentation change, add the label skip-ci on the PR.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

@sp98: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

osd: make osd pod to sleep when osds are flapping

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sp98 sp98 changed the title osd: make osd pod to sleep when osds are flapping bz 2223959: osd: make osd pod to sleep when osds are flapping Sep 19, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

@sp98: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

bz 2223959: osd: make osd pod to sleep when osds are flapping

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sp98 sp98 changed the title bz 2223959: osd: make osd pod to sleep when osds are flapping Bug 2223959: osd: make osd pod to sleep when osds are flapping Sep 19, 2023
@agarwal-mudit
Copy link
Member

/bugzila refresh

@agarwal-mudit
Copy link
Member

/bugzilla refresh

@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

@agarwal-mudit: Bugzilla bug 2223959 is in a bug group that is not in the allowed groups for this repo.
Allowed groups for this repo are:

  • qe_staff
  • redhat

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@agarwal-mudit
Copy link
Member

/bugzilla refresh

@agarwal-mudit
Copy link
Member

/retest

@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Sep 19, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

@agarwal-mudit: This pull request references Bugzilla bug 2223959, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (ODF 4.14.0) matches configured target release for branch (ODF 4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @nehaberry

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

@openshift-ci[bot]: GitHub didn't allow me to request PR reviews from the following users: nehaberry.

Note that only red-hat-storage members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

@agarwal-mudit: This pull request references Bugzilla bug 2223959, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (ODF 4.14.0) matches configured target release for branch (ODF 4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @nehaberry

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

When OSDs flap, ceph stops the OSD daemon if its marked down greater than
5 times in 600 seconds. But OSD pod restarts and marks the OSD `up` again.
This causes the PGs mapped to these OSDs to peer. While the PGs are peering,
IO to these PGs are blocked.

So we need to ensure that if ceph is marking OSD `down` due to flapping, OSD pod
should not restart to mark the OSDs `up` again.

This PR adds a sleep to the OSD pod if the container returned with a 0 exit code
Default behavior is to sleep for 6 hrs. But user can configure it from the
ceph cluster spec.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit 4eb9f62)
Signed-off-by: sp98 <sapillai@redhat.com>
@travisn
Copy link

travisn commented Sep 19, 2023

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sp98, travisn

The full list of commands accepted by this bot can be found 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

@travisn travisn merged commit 94cb343 into red-hat-storage:release-4.14 Sep 19, 2023
44 of 45 checks passed
@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

@sp98: All pull requests linked via external trackers have merged:

Bugzilla bug 2223959 has been moved to the MODIFIED state.

In response to this:

Bug 2223959: osd: make osd pod to sleep when osds are flapping

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants