Skip to content

Commit

Permalink
Add hint on still existing problem
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Oct 10, 2024
1 parent 58c6457 commit 8172e86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/metal-api/internal/datastore/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ func (rs *RethinkStore) ConnectMachineWithSwitches(m *metal.Machine) error {
s2 := newSwitches[1]
cons1 := s1.MachineConnections[m.ID]
cons2 := s2.MachineConnections[m.ID]

// FIXME this error will occur even if Partition.MachineNetworkRequirements.MinimumNeighbors is set to < 2
connectionMapError := fmt.Errorf("twin-switches do not have a connection map that is mirrored crosswise for machine %v, switch %v (connections: %v), switch %v (connections: %v)", m.ID, s1.Name, cons1, s2.Name, cons2)

if len(cons1) != len(cons2) {
return connectionMapError
}
Expand Down

0 comments on commit 8172e86

Please sign in to comment.