Skip to content

Commit

Permalink
cmd/microcloud: Show a warning if the OVN underlay network and the Mi…
Browse files Browse the repository at this point in the history
…croCeph cluster network share traffic on the same network interface

Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
  • Loading branch information
gabrielmougard committed Dec 2, 2024
1 parent 906c70a commit f303379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/microcloud/main_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ func (c *initConfig) validateSystems(s *service.Handler) (err error) {
return fmt.Errorf("OVN underlay IP %q is invalid", sys.OVNGeneveAddr)
}

if subnet.Contains(underlayIP) {
fmt.Printf("Warning: OVN underlay IP (%s) is shared with the Ceph cluster network (%s)\n", underlayIP.String(), subnet.String())
if sys.OVNGeneveIface == sys.MicroCephInternalNetworkIface {
fmt.Printf("Warning: OVN underlay (IP: %s) is shared on the same network interface %q with the Ceph cluster network (IP: %s)\n", underlayIP.String(), sys.OVNGeneveIface, subnet.String())

break
}
Expand Down

0 comments on commit f303379

Please sign in to comment.