Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman bridge and epairs sometimes down after S3 suspend and resume #21

Open
matias-pizarro opened this issue Nov 1, 2024 · 0 comments

Comments

@matias-pizarro
Copy link

  • After S3 suspend and resume any of Podman bridge and host-side epairs sometimes end up down.
  • This is not consistent and I have not yet identified an unequivocal way to reproduce it.
  • It sometimes also happened after long period of idleness but I still need to rule out other causes (local scripts) for this

This hacky palliative restores things to a working state and can be added to /etc/rc.resume or executed as root on the command line:

PODMAN_BRIDGE='cni-podman0'
ifconfig ${PODMAN_BRIDGE} inet 10.88.0.1/24
ifconfig ${PODMAN_BRIDGE} up
for EPAIR_HOST in $(ifconfig ${PODMAN_BRIDGE} | grep member | awk '{print $2}'); do
  ifconfig ${EPAIR_HOST} | grep description \
  | while read noop noop noop noop JAIL_NAME noop noop EPAIR_JAIL
    do
      ifconfig -j ${JAIL_NAME} ${EPAIR_JAIL} up;
    done
  ifconfig ${EPAIR_HOST} up;
done

Why I think suspend/resume resilience is important:

  • devs and admins being able to run oci containers not only in server context but also on their laptops / daily drivers fosters familiarity, confidence and observability and facilitates experimenting and prototyping
  • inversely, podman networking apparently dying in random ways sends all kind of alarm signals and leads non-experts to associate to associate container on FreeBSD with friction and frustration

many thanks to @Crest for his help in debugging this and teaching me a number of thiings in the process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant