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

[ovsdb-server] Move db initialization to an init container #341

Merged

Conversation

karelyatin
Copy link
Contributor

@karelyatin karelyatin commented Aug 13, 2024

There is a potential race condition where ovs-vswitchd containers can run ovs db commands and fails while ovsdb-server stops and restarts after db initialization. This makes ovs-vswitchd container to fail and restart and it eventually recovers and it's better to avoid this.

This patch moves the db initialization part to init container to avoid this race.

Resolves: OSPRH-637

There is a potential race condition where ovs-vswitchd containers
can run ovs db commands and fails while ovsdb-server stops and restarts
after db initialization. This makes ovs-vswitchd container to fail
and restart and it eventually recovers and it's better to avoid this.

This patch moves the db initialization part to init container to
avoid this race.

Resolves: OSPRH-637
@openshift-ci openshift-ci bot requested review from abays and olliewalsh August 13, 2024 08:56
@karelyatin karelyatin requested review from booxter and averdagu August 13, 2024 13:06
pkg/ovncontroller/daemonset.go Show resolved Hide resolved
Copy link
Contributor

openshift-ci bot commented Aug 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: booxter, karelyatin

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

@booxter
Copy link
Contributor

booxter commented Aug 19, 2024

/lgtm

@karelyatin
Copy link
Contributor Author

/test ovn-operator-build-deploy-kuttl

@openshift-merge-bot openshift-merge-bot bot merged commit 9459682 into openstack-k8s-operators:main Aug 20, 2024
6 checks passed
@karelyatin
Copy link
Contributor Author

/cherry-pick 18.0.0-proposed

@openshift-cherrypick-robot

@karelyatin: new pull request created: #343

In response to this:

/cherry-pick 18.0.0-proposed

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants