You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding safeguards against a potential core situation in confman.
Both in Reserve() and Free() calls core can theoretically occur when
the chosen interface profile does not have "Alloc".
This practically can only occur if a network was created in env
where webhook was not running.
return0, errors.New("VNI allocations for interface:"+iface.Name+" is corrupt! Are you running without webhook?")
29
+
}
27
30
vnis, err:=cpuset.Parse(iface.VniRange)
28
31
iferr!=nil {
29
32
return0, errors.New("vniRange for interface:"+iface.Name+" cannot be parsed because:"+err.Error())
@@ -84,11 +87,14 @@ func Free(danmClient danmclientset.Interface, tconf *danmtypes.TenantConfig, dne
84
87
" as the used network details (interface name, VNI type) doe not match any entries in TenantConfig. This means your APIs were possibly tampered with!")
0 commit comments