We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b5912 commit bad86a3Copy full SHA for bad86a3
pkg/controller/init.go
@@ -853,6 +853,14 @@ func (c *Controller) initNodeChassis() error {
853
for _, node := range nodes {
854
chassisName := node.Annotations[util.ChassisAnnotation]
855
if chassisName != "" {
856
+ existChasisId, err := c.ovnLegacyClient.GetChassis(node.Name)
857
+ if err != nil {
858
+ klog.Errorf("failed to get chassis id: %v", err)
859
+ return err
860
+ }
861
+ if existChasisId == chassisName {
862
+ continue
863
864
exist, err := c.ovnLegacyClient.ChassisExist(chassisName)
865
if err != nil {
866
klog.Errorf("failed to check chassis exist: %v", err)
0 commit comments