Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Aug 21, 2024
1 parent fbf7758 commit 1a9cf4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd/microcloud/ask.go
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,7 @@ func (c *initConfig) askOVNNetwork(sh *service.Handler) error {
return err
}

fmt.Printf("Using %q for OVN underlay traffic on %q\n", ip.String(), peer)
system.OVNGeneveAddr = ip.String()
}
}
Expand Down
14 changes: 9 additions & 5 deletions cmd/microcloud/main_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,17 @@ func (c *initConfig) setupCluster(s *service.Handler) error {

if s.Type() == types.MicroOVN {
microOvnBootstrapConf := make(map[string]string)
for _, system := range c.systems {
// If the system needs to be bootstrapped with a custom ovn encapsulation ip for geneve, add it to the init config.
if system.OVNGeneveAddr != "" {
microOvnBootstrapConf["ovn-encap-ip"] = system.OVNGeneveAddr
}
if bootstrapSystem.OVNGeneveAddr != "" {
microOvnBootstrapConf["ovn-encap-ip"] = bootstrapSystem.OVNGeneveAddr
}

// for _, system := range c.systems {
// // If the system needs to be bootstrapped with a custom ovn encapsulation ip for geneve, add it to the init config.
// if system.OVNGeneveAddr != "" {
// microOvnBootstrapConf["ovn-encap-ip"] = system.OVNGeneveAddr
// }
// }

if len(microOvnBootstrapConf) > 0 {
s.SetConfig(microOvnBootstrapConf)
}
Expand Down
1 change: 1 addition & 0 deletions test/suites/basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ test_interactive() {
export CEPH_CLUSTER_NETWORK="${ceph_cluster_subnet_prefix}.0/24"
export OVN_UNDERLAY_NETWORK="yes"
export OVN_UNDERLAY_FILTER="${ovn_underlay_subnet_prefix}"

microcloud_interactive | lxc exec micro01 -- sh -c "microcloud init > out"

lxc exec micro01 -- tail -1 out | grep "MicroCloud is ready" -q
Expand Down

0 comments on commit 1a9cf4a

Please sign in to comment.