Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libpod/container_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ func (c *Container) cleanup() error {

// Clean up network namespace, if present
if err := c.cleanupNetwork(); err != nil {
lastError = nil
lastError = err
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This had been non-fatal since #302, but I don't see any discussion there about why it was non-fatal then.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only think I can think of was there is an issue where the cleanupNetwork can return an error that states the network does not exist, since it was cleaned up previously but there is no current way for us to check for that error because the oci network code does not use constants.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think were were just being overly cautious there, given that we were already only warning on errors from teardownNetwork() in cleanupNetwork().

}

if err := c.cleanupCgroups(); err != nil {
Expand Down