From b6954758bb17f846f81fada71385a94b5072e91c Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 9 Mar 2020 16:06:43 -0400 Subject: Attempt manual removal of CNI IP allocations on refresh We previously attempted to work within CNI to do this, without success. So let's do it manually, instead. We know where the files should live, so we can remove them ourselves instead. This solves issues around sudden reboots where containers do not have time to fully tear themselves down, and leave IP address allocations which, for various reasons, are not stored in tmpfs and persist through reboot. Fixes #5433 Signed-off-by: Matthew Heon --- libpod/networking_unsupported.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod/networking_unsupported.go') diff --git a/libpod/networking_unsupported.go b/libpod/networking_unsupported.go index 7f343cf35..32b354a44 100644 --- a/libpod/networking_unsupported.go +++ b/libpod/networking_unsupported.go @@ -23,3 +23,7 @@ func (r *Runtime) createNetNS(ctr *Container) (err error) { func (c *Container) getContainerNetworkInfo() (*InspectNetworkSettings, error) { return nil, define.ErrNotImplemented } + +func getCNINetworksDir() (string, error) { + return "", define.ErrNotImplemented +} -- cgit v1.2.3-54-g00ecf