Skip to content

Pass network firewall driver in use to the runtime for checkpoint/restore #24799

@danishprakash

Description

@danishprakash

Netavark supports nftables out of the box and it has also been set as default conditionally at least for fedora 41. At the same time, criu supports --network-lock to allow users to set the firewall driver of choice but defaults to iptables to perform network [un]locking. But which firewall driver is being used isn't being passed onto criu currently and so, if you build netavark with nftables on a system that doesn't have iptables installed, upon trying to checkpoint/restore a container, criu tries to use iptables utils and fails.

--network-lock support has been added to crun, and I'm testing the same changes for runc. What remains is to pass the firewall driver to the runtime from podman, @Luap99 on IRC mentioned that it's possible to get this info but it might not be straightforward, can we discussion possible solutions?


The issue was caught during [open]QA when we started building netavark with nftables by default in Tumbleweed and removed our iptables dependency from podman in the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.networkNetworking related issue or featurestale-issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions