Skip to content

Commit

Permalink
Bug 1984049: Slow OVN Recovery on SNO
Browse files Browse the repository at this point in the history
Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
  • Loading branch information
flavio-fernandes committed Aug 2, 2021
1 parent 65f9484 commit 8abb965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindata/network/ovn-kubernetes/ovnkube-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ spec:
- /var/run/ovn/ovnnb_db.ctl
- exit
readinessProbe:
initialDelaySeconds: 90
initialDelaySeconds: {{.OVN_DB_PROBE_INITIAL_DELAY}}
timeoutSeconds: 5
exec:
command:
Expand Down Expand Up @@ -711,7 +711,7 @@ spec:
- /var/run/ovn/ovnsb_db.ctl
- exit
readinessProbe:
initialDelaySeconds: 90
initialDelaySeconds: {{.OVN_DB_PROBE_INITIAL_DELAY}}
timeoutSeconds: 5
exec:
command:
Expand Down
2 changes: 2 additions & 0 deletions pkg/network/ovn_kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ func renderOVNKubernetes(conf *operv1.NetworkSpec, bootstrapResult *bootstrap.Bo

if len(bootstrapResult.OVN.MasterIPs) == 1 {
data.Data["IsSNO"] = true
data.Data["OVN_DB_PROBE_INITIAL_DELAY"] = 0
} else {
data.Data["IsSNO"] = false
data.Data["OVN_DB_PROBE_INITIAL_DELAY"] = 90
}

manifests, err := render.RenderDir(filepath.Join(manifestDir, "network/ovn-kubernetes"), &data)
Expand Down

0 comments on commit 8abb965

Please sign in to comment.