Skip to content

Commit 9486e8e

Browse files
committed
docs: improved ipam error message when it cannot acquire an ip
1 parent e03ebe2 commit 9486e8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/ipam/initialize.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ func (lipam *LiqoIPAM) initializeIPs(ctx context.Context) error {
7474
// Initialize the IPs.
7575
for ip, net := range ips {
7676
if err := lipam.ipAcquireWithAddr(ip, net); err != nil {
77-
klog.Errorf("Failed to reserve IP %q (network %q): %v", ip.String(), net.String(), err)
77+
klog.Errorf("Failed to reserve IP %q (network %q): %v",
78+
ip.String(), net.String(), err)
79+
klog.Errorf("The IP resource %q might be part of an old installation. "+
80+
"Please delete all the IP resources and remove their finalizers if necessary.",
81+
ip.String())
7882
return err
7983
}
8084
}

0 commit comments

Comments
 (0)