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

Backport #23083 to 4.9 ("restore: fix missing network setup") #24851

Closed
hanwen-flow opened this issue Dec 16, 2024 · 2 comments
Closed

Backport #23083 to 4.9 ("restore: fix missing network setup") #24851

hanwen-flow opened this issue Dec 16, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@hanwen-flow
Copy link

Issue Description

I am using podman 4.9.3 (the last 4.x release, which is included in Ubuntu 24.04 LTS release) to build a feature on top of checkpoint/restore.

I am being bitten by #22901, specifically, /etc/resolv.conf is empty after restoring, disabling DNS.

It looks like #23083 fixed this; would it be possible to backport this fix to 4.9 ?

While I would like to upgrade to 5.x (and indeed have some ambitious plans to improve checkpoint/restore performance), having checkpoint work correctly in the Ubuntu stable release out of the box makes it easier to collaborate with my colleagues.

Steps to reproduce the issue

follow instructions on https://podman.io/docs/checkpoint, exec cat /etc/resolv.conf in restored container

Describe the results you received

resolv.conf empty, dns broken.

Describe the results you expected

working dns.

podman info output

$ sudo podman info
host:
  arch: amd64
  buildahVersion: 1.33.7
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - rdma
  - misc
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon_2.1.10+ds1-1build2_amd64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: unknown'
  cpuUtilization:
    idlePercent: 99.01
    systemPercent: 0.37
    userPercent: 0.62
  cpus: 16
  databaseBackend: boltdb
  distribution:
    codename: noble
    distribution: ubuntu
    version: "24.04"
  eventLogger: journald
  freeLocks: 2006
  hostname: hanwen-flow
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 6.8.0-49-generic
  linkmode: dynamic
  logDriver: journald
  memFree: 39419514880
  memTotal: 62820511744
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns_1.4.0-5_amd64
      path: /usr/lib/podman/aardvark-dns
      version: aardvark-dns 1.4.0
    package: netavark_1.4.0-4_amd64
    path: /usr/lib/podman/netavark
    version: netavark 1.4.0
  ociRuntime:
    name: crun
    package: Unknown
    path: /usr/local/bin/crun
    version: |-
      crun version 1.18.2
      commit: 00ab38af875ddd0d1a8226addda52e1de18339b5
      rundir: /run/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt_0.0~git20240220.1e6f92b-1_amd64
    version: |
      pasta unknown version
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: true
    path: /run/podman/podman.sock
  security:
    apparmorEnabled: true
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns_1.2.1-1build2_amd64
    version: |-
      slirp4netns version 1.2.1
      commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.5
  swapFree: 2046816256
  swapTotal: 2046816256
  uptime: 119h 1m 22.00s (Approximately 4.96 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries: {}
store:
  configFile: /usr/share/containers/storage.conf
  containerStore:
    number: 42
    paused: 0
    running: 36
    stopped: 6
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /var/lib/containers/storage
  graphRootAllocated: 981132795904
  graphRootUsed: 293343223808
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "true"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 11
  runRoot: /run/containers/storage
  transientStore: false
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 4.9.3
  Built: 0
  BuiltTime: Thu Jan  1 01:00:00 1970
  GitCommit: ""
  GoVersion: go1.22.2
  Os: linux
  OsArch: linux/amd64
  Version: 4.9.3

Podman in a container

No

Privileged Or Rootless

Privileged

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@hanwen-flow hanwen-flow added the kind/bug Categorizes issue or PR as related to a bug. label Dec 16, 2024
@Luap99
Copy link
Member

Luap99 commented Dec 16, 2024

We only support the latest upstream release, there will be no further 4.9 releases. And if we would make a release there is no guarantee that you distro updates to that.

So I suggest you report this to the distro's bug tracker and request a backport there.

@Luap99 Luap99 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
@hanwen-flow
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants