Skip to content
/ incus Public
forked from lxc/incus

Commit

Permalink
incusd/network/ovn: Handle chassis group having been deleted
Browse files Browse the repository at this point in the history
This case happens when a network was deleted by the cluster leader but
some other servers in the cluster are yet to stop the network and remove
themselves as chassis in the HA group.

Closes lxc#709

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Apr 1, 2024
1 parent a5ed6c0 commit 2926e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/network/driver_ovn.go
Original file line number Diff line number Diff line change
Expand Up @@ -2698,7 +2698,7 @@ func (n *ovn) deleteChassisGroupEntry() error {
}

err = n.state.OVNNB.SetChassisGroupPriority(context.TODO(), n.getChassisGroupName(), chassisID, -1)
if err != nil {
if err != nil && err != ovs.ErrNotFound {
return fmt.Errorf("Failed deleting OVS chassis %q from chassis group %q: %w", chassisID, n.getChassisGroupName(), err)
}

Expand Down

0 comments on commit 2926e5a

Please sign in to comment.