Skip to content

Commit

Permalink
Merge pull request #140 from openshift-cherrypick-robot/cherry-pick-1…
Browse files Browse the repository at this point in the history
…37-to-release-4.7

[release-4.7] Bug 1962949:  Keepalived- verify that unicast peers list isn't empty on master nodes
  • Loading branch information
openshift-merge-robot committed May 26, 2021
2 parents 4e6ac5e + 91b1689 commit 9c5da32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitor/dynkeepalived.go
Expand Up @@ -81,7 +81,7 @@ func doesConfigChanged(curConfig, appliedConfig *config.Node) bool {
// we want to apply new config to master nodes only after nodes appears in etcd, with this
// approach we should avoid asymetric configuration
if curConfig.EnableUnicast {
if os.Getenv("IS_BOOTSTRAP") == "no" && len(curConfig.LBConfig.Backends) == 0 {
if os.Getenv("IS_BOOTSTRAP") == "no" && len(curConfig.LBConfig.Backends) < 2 {
validConfig = false
}
}
Expand Down

0 comments on commit 9c5da32

Please sign in to comment.