/run/netns doesn't exist until we create a network namespace
Bug #1799638 reported by
Cédric Jeanneret
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Cédric Jeanneret |
Bug Description
Hello,
Apparently the /run/netns directory doesn't exist until a network namespace is created. This prevent podman containers to start properly after a system reboot.
For the records, podman doesn't create the host directory tree when we mount a volume in a container. Hence, as /run/netns doesn't exist, podman crashes when it tries to start containers having that location bind-mounted.
A possible way to mitigate it would be to add a "ExecPreStart=ip netns add placeholder" or something like that in the systemd unit for container having that mount.
Or create a dedicated unit for that, and make the container depend on that unit.
Changed in tripleo: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /review. rdoproject. org/r/# /c/17078/