Skip to content

Commit

Permalink
fix: add empty chassis check in ovn db (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
lut777 committed Apr 26, 2022
1 parent d631f8f commit 0db6322
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,10 @@ func (c *Controller) checkChassisDupl(node *v1.Node) error {
klog.Errorf("failed to get node %s chassisID, %v", node.Name, err)
return err
}
if chassisAdd == "" {
klog.Errorf("chassis of node %s is empty", node.Name)
return err
}
chassisAnn := node.Annotations[util.ChassisAnnotation]
if chassisAnn == chassisAdd || chassisAnn == "" {
return nil
Expand Down

0 comments on commit 0db6322

Please sign in to comment.