Skip to content

Commit

Permalink
add error detail
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchenglong01 authored and luckymrwang committed Oct 28, 2021
1 parent 1fed9d5 commit 5840d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ipam/ipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (ipam *IPAM) AddOrUpdateSubnet(name, cidrStr string, excludeIps []string) e
for podName, ip := range subnet.V4PodToIP {
mac := subnet.PodToMac[podName]
if _, _, err := subnet.GetStaticAddress(podName, ip, mac, true, true); err != nil {
klog.Errorf("%s address not in subnet %s new cidr %s", podName, name, cidrStr)
klog.Errorf("%s address not in subnet %s new cidr %s: %v", podName, name, cidrStr, err)
}
}
}
Expand All @@ -174,7 +174,7 @@ func (ipam *IPAM) AddOrUpdateSubnet(name, cidrStr string, excludeIps []string) e
for podName, ip := range subnet.V6PodToIP {
mac := subnet.PodToMac[podName]
if _, _, err := subnet.GetStaticAddress(podName, ip, mac, true, true); err != nil {
klog.Errorf("%s address not in subnet %s new cidr %s", podName, name, cidrStr)
klog.Errorf("%s address not in subnet %s new cidr %s: %v", podName, name, cidrStr, err)
}
}
}
Expand Down

0 comments on commit 5840d50

Please sign in to comment.