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 1751246: openshift-sdn: add better ovs liveness/readiness probe #321

Merged
merged 1 commit into from Oct 3, 2019
Merged

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Sep 20, 2019

This changes the liveness/readiness probe for OVS to (hopefully) a more rigorous end-to-end check. The challenge is to find one that doesn't rely on br0 being present, which won't happen until openshift-sdn is up and running.

So, we do ovs-ctl status, which checks that the pidfiles have pids that are up and running. It also adds an ovs-appctl command to verify that the vswitchd is running, and a ovs-vsctl check to see that the DB is running.

/cc @orgcandman

@openshift-ci-robot
Copy link
Contributor

@squeed: This pull request references Bugzilla bug 1751246, which is invalid:

  • expected the bug to target the "4.2.0" release, but it targets "4.3.0" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1751246: openshift-sdn: add better ovs liveness/readiness probe

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-robot openshift-ci-robot added bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 20, 2019
@squeed
Copy link
Contributor Author

squeed commented Sep 20, 2019

This can wait until v4.3 cuts.
/hold

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 20, 2019
@danwinship
Copy link
Contributor

This changes the liveness/readiness probe for OVS to (hopefully) a more rigorous end-to-end check.

do you have any examples of situations where the current probes are failing us?

@squeed
Copy link
Contributor Author

squeed commented Sep 24, 2019

do you have any examples of situations where the current probes are failing us?

Nothing conclusive, but the linked bug (1751246) hints at this being a possibility. So it would be good to get some more confidence.

@squeed
Copy link
Contributor Author

squeed commented Sep 24, 2019

@orgcandman thanks for the feedback. Are there any other commands that would provide a useful end-to-end test of ovs-vswitchd or ovsdb? Suggestions?

@orgcandman
Copy link
Contributor

the appctl command should cover it for ovs-vswitchd. You can make an appctl command to ovsdb also (test something like: ovs-appctl -t ovsdb-server list-commands). But if ovs-vsctl returns then the db is up.

Copy link
Contributor

@danwinship danwinship left a comment

Choose a reason for hiding this comment

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

this is un-/hold-able now right?

bindata/network/openshift-sdn/sdn-ovs.yaml Outdated Show resolved Hide resolved
This changes the liveness/readiness probe for OVS to (hopefully) a more
rigorous end-to-end check. The challenge is to find one that doesn't
rely on br0 being present, which won't happen until openshift-sdn is up
and running.

So, we do ovs-ctl status, which checks that the pidfiles have pids that
are up and running. It also adds an ovs-appctl command to verify that the
vswitchd is running, and a ovs-vsctl check to see that the DB is
running.
@squeed
Copy link
Contributor Author

squeed commented Oct 3, 2019

/hold cancel
/bugzilla refresh

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 3, 2019
@openshift-ci-robot
Copy link
Contributor

@squeed: This pull request references Bugzilla bug 1751246, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

/hold cancel
/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-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Oct 3, 2019
@danwinship
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 3, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, squeed

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

@openshift-merge-robot openshift-merge-robot merged commit ce9f3ef into openshift:master Oct 3, 2019
@openshift-ci-robot
Copy link
Contributor

@squeed: All pull requests linked via external trackers have merged. Bugzilla bug 1751246 has been moved to the MODIFIED state.

In response to this:

Bug 1751246: openshift-sdn: add better ovs liveness/readiness probe

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
approved Indicates a PR has been approved by an approver from all required OWNERS files. 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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants