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 machine] Port auto-forwarding does not work in macOS when used with podman play kube #12248

Closed
christopherchong94 opened this issue Nov 10, 2021 · 7 comments · Fixed by #12271
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@christopherchong94
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

I run podman machine on MacOS. When I try to spin up containers by using podman play kube on k8s yaml file, I cannot seem to access my rootless container - automatic port forwarding by gvproxy does not work when I start the container and expose the port.

Steps to reproduce the issue:

  1. Start the podman machine.
    podman machine start

  2. Start the containers defined in k8s yaml below.
    podman play kube pod.yaml

apiVersion: v1
kind: Pod
metadata:
  labels:
    app: prefect-pod
  name: prefect-pod
spec:
  containers:
  - name: apollo
    command:
    - 'bash'
    - '-c'
    - './post-start.sh && npm run serve'
    env:
    - name: GRAPHQL_SERVICE_HOST
      value: http://localhost
    - name: GRAPHQL_SERVICE_PORT
      value: 4201
    - name: HASURA_API_URL
      value: http://localhost:3000/v1alpha1/graphql
    - name: PREFECT_API_HEALTH_URL
      value: http://localhost:4201/health
    - name: PREFECT_API_URL
      value: http://localhost:4201/graphql/
    - name: PREFECT_SERVER__TELEMETRY__ENABLED
      value: "true"
    image: prefecthq/apollo:core-0.15.7
    ports:
    - containerPort: 4200
      hostPort: 4200
  - name: graphql
    command:
    - 'bash'
    - '-c'
    - 'prefect-server database upgrade -y && python src/prefect_server/services/graphql/server.py'
    env:
    - name: PREFECT_CORE_VERSION
      value: 0.15.7
    - name: PREFECT_SERVER_DB_CMD
      value: prefect-server database upgrade -y
    - name: PREFECT_SERVER__DATABASE__CONNECTION_URL
      value: postgresql://prefect:test-password@localhost:5432/prefect_server
    - name: PREFECT_SERVER__HASURA__ADMIN_SECRET
      value: hasura-secret-admin-secret
    - name: PREFECT_SERVER__HASURA__HOST
      value: localhost
    image: prefecthq/server:core-0.15.7
    ports:
    - containerPort: 4201
      hostPort: 4201
  - name: hasura
    command:
    - 'graphql-engine'
    - 'serve'
    env:
    - name: HASURA_GRAPHQL_DATABASE_URL
      value: postgresql://prefect:test-password@localhost:5432/prefect_server
    - name: HASURA_GRAPHQL_ENABLE_CONSOLE
      value: "true"
    - name: HASURA_GRAPHQL_LOG_LEVEL
      value: warn
    - name: HASURA_GRAPHQL_QUERY_PLAN_CACHE_SIZE
      value: 100
    - name: HASURA_GRAPHQL_SERVER_PORT
      value: '3000'
    image: hasura/graphql-engine:v1.3.3
    ports:
    - containerPort: 3000
      hostPort: 3000
  - name: postgres
    env:
    - name: POSTGRES_DB
      value: prefect_server
    - name: POSTGRES_PASSWORD
      value: test-password
    - name: POSTGRES_USER
      value: prefect
    image: postgres:11
    ports:
    - containerPort: 5432
      hostPort: 5432
  - name: towel
    command:
    - 'python'
    - 'src/prefect_server/services/towel/__main__.py'
    env:
    - name: PREFECT_SERVER__HASURA__ADMIN_SECRET
      value: hasura-secret-admin-secret
    - name: PREFECT_SERVER__HASURA__HOST
      value: localhost
    image: prefecthq/server:core-0.15.7
  - name: ui
    command:
    - '/intercept.sh'
    env:
    - name: PREFECT_SERVER__APOLLO_URL
      value: http://localhost:4200/graphql
    image: prefecthq/ui:core-0.15.7
    ports:
    - containerPort: 8080
      hostPort: 8080`

Describe the results you received:
Containers are spun up, but I cannot access the port exposed on localhost.

(base) christopher.chong@BPKUL-MAC0011 prefect-server % podman ps
CONTAINER ID  IMAGE                                   COMMAND     CREATED            STATUS                PORTS                                                                                                     NAMES
3d18291663ea  k8s.gcr.io/pause:3.5                                About an hour ago  Up About an hour ago  0.0.0.0:3000->3000/tcp, 0.0.0.0:4200-4201->4200-4201/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:8080->8080/tcp  95725074940b-infra
3a4c40a99b69  docker.io/prefecthq/apollo:core-0.15.7              About an hour ago  Up About an hour ago  0.0.0.0:3000->3000/tcp, 0.0.0.0:4200-4201->4200-4201/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:8080->8080/tcp  prefect-pod-apollo
f64e5b56b8ff  docker.io/prefecthq/server:core-0.15.7              About an hour ago  Up About an hour ago  0.0.0.0:3000->3000/tcp, 0.0.0.0:4200-4201->4200-4201/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:8080->8080/tcp  prefect-pod-graphql
822d9f4aaab7  docker.io/hasura/graphql-engine:v1.3.3              About an hour ago  Up About an hour ago  0.0.0.0:3000->3000/tcp, 0.0.0.0:4200-4201->4200-4201/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:8080->8080/tcp  prefect-pod-hasura
2098b59854ef  docker.io/library/postgres:11           postgres    About an hour ago  Up About an hour ago  0.0.0.0:3000->3000/tcp, 0.0.0.0:4200-4201->4200-4201/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:8080->8080/tcp  prefect-pod-postgres
d2bffbd764a5  docker.io/prefecthq/server:core-0.15.7              About an hour ago  Up About an hour ago  0.0.0.0:3000->3000/tcp, 0.0.0.0:4200-4201->4200-4201/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:8080->8080/tcp  prefect-pod-towel
daec45f0da48  docker.io/prefecthq/ui:core-0.15.7                  About an hour ago  Up About an hour ago  0.0.0.0:3000->3000/tcp, 0.0.0.0:4200-4201->4200-4201/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:8080->8080/tcp  prefect-pod-ui
(base) christopher.chong@BPKUL-MAC0011 prefect-server % curl http://localhost:8080
curl: (7) Failed to connect to localhost port 8080: Connection refused

Describe the results you expected:
Able to connect to localhost port 8080.

Additional information you deem important (e.g. issue happens only occasionally):
I am facing the same situation as described here (#11396 (comment)). Setting the rootless_networking = "cni" in the local containers.conf doesn't work also.

Output of podman version:

Client:
Version:      3.4.1
API Version:  3.4.1
Go Version:   go1.17.2
Built:        Wed Oct 20 05:14:42 2021
OS/Arch:      darwin/amd64

Server:
Version:      3.4.1
API Version:  3.4.1
Go Version:   go1.16.8
Built:        Wed Oct 20 22:35:28 2021
OS/Arch:      linux/amd64

Output of podman info --debug:

host:
  arch: amd64
  buildahVersion: 1.23.1
  cgroupControllers:
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.0.30-2.fc34.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.30, commit: '
  cpus: 1
  distribution:
    distribution: fedora
    variant: coreos
    version: "34"
  eventLogger: journald
  hostname: localhost
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 5.14.14-200.fc34.x86_64
  linkmode: dynamic
  logDriver: k8s-file
  memFree: 742617088
  memTotal: 2061860864
  ociRuntime:
    name: crun
    package: crun-1.2-1.fc34.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 1.2
      commit: 4f6c8e0583c679bfee6a899c05ac6b916022561b
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
  os: linux
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  security:
    apparmorEnabled: false
    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: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: true
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.1.12-2.fc34.x86_64
    version: |-
      slirp4netns version 1.1.12
      commit: 7a104a101aa3278a2152351a082a6df71f57c9a3
      libslirp: 4.4.0
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.0
  swapFree: 0
  swapTotal: 0
  uptime: 4h 31m 32.13s (Approximately 0.17 days)
plugins:
  log:
  - k8s-file
  - none
  - journald
  network:
  - bridge
  - macvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /var/home/core/.config/containers/storage.conf
  containerStore:
    number: 14
    paused: 0
    running: 7
    stopped: 7
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /var/home/core/.local/share/containers/storage
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  imageStore:
    number: 14
  runRoot: /run/user/1000/containers
  volumePath: /var/home/core/.local/share/containers/storage/volumes
version:
  APIVersion: 3.4.1
  Built: 1634740528
  BuiltTime: Wed Oct 20 14:35:28 2021
  GitCommit: ""
  GoVersion: go1.16.8
  OsArch: linux/amd64
  Version: 3.4.1

Package info (e.g. output of rpm -q podman or apt list podman):

podman: stable 3.4.1 (bottled), HEAD
Tool for managing OCI containers and pods
https://podman.io/
/usr/local/Cellar/podman/3.4.1 (170 files, 39.5MB) *
  Poured from bottle on 2021-11-05 at 17:10:57
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/podman.rb
License: Apache-2.0
==> Dependencies
Build: go ✘, go-md2man ✘
Required: qemu ✔
==> Options
--HEAD
	Install HEAD version
==> Caveats
zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Analytics
install: 14,220 (30 days), 34,358 (90 days), 62,198 (365 days)
install-on-request: 14,220 (30 days), 34,359 (90 days), 62,129 (365 days)
build-error: 2 (30 days)

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)

Yes

Additional environment details (AWS, VirtualBox, physical, etc.):
macOS Monterey version 12.0.1

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 10, 2021
@karthikeyansundararajan-agi

Facing the same issue.
macOS Monterey version 12.0.1
Podman:
version:
APIVersion: 3.4.1
Built: 1634740316
BuiltTime: Wed Oct 20 14:31:56 2021
GitCommit: ""
GoVersion: go1.16.8
OsArch: linux/amd64
Version: 3.4.1

@Luap99
Copy link
Member

Luap99 commented Nov 10, 2021

Can you try with podman play kube --network bridge pod.yaml?

@christopherchong94
Copy link
Author

Can you try with podman play kube --network bridge pod.yaml?

I got the following error

(base) christopher.chong@BPKUL-MAC0011 prefect-server % podman play kube --network=bridge pod.yaml
Error: error playing YAML file: invalid value passed to --network: bridge or host networking must be configured in YAML

According to https://docs.podman.io/en/latest/markdown/podman-play-kube.1.html#network-mode-net, the network mode bridge needs to be defined in k8s yaml — how do I define that in my pod.yaml?

@Luap99
Copy link
Member

Luap99 commented Nov 10, 2021

I do not think you can set bridge explicitly. Unless host networking is set in the yaml it should use bridge.
Can you provide the output of podman inspect $(podman pod inspect --format {{.InfraContainerID}} <podname>).
Also could you try with podman play kube --network podman pod.yaml

@christopherchong94
Copy link
Author

I do not think you can set bridge explicitly. Unless host networking is set in the yaml it should use bridge. Can you provide the output of podman inspect $(podman pod inspect --format {{.InfraContainerID}} <podname>). Also could you try with podman play kube --network podman pod.yaml

podman play kube --network podman pod.yaml works! I can access my container via localhost.

Output from podman inspect $(podman pod inspect --format {{.InfraContainerID}} <podname>)

[
    {
        "Id": "8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a",
        "Created": "2021-11-11T03:09:19.370317749Z",
        "Path": "/pause",
        "Args": [
            "/pause"
        ],
        "State": {
            "OciVersion": "1.0.2-dev",
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 3096,
            "ConmonPid": 3092,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2021-11-11T03:09:41.771793777Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "Healthcheck": {
                "Status": "",
                "FailingStreak": 0,
                "Log": null
            }
        },
        "Image": "ed210e3e4a5bae1237f1bb44d72a05a2f1e5c6bfe7a7e73da179e2534269c459",
        "ImageName": "k8s.gcr.io/pause:3.5",
        "Rootfs": "",
        "Pod": "29e82f8d07d5d909650698749c88ff4099ec94c8bf0e88a5737ef6547c9f1de7",
        "ResolvConfPath": "/run/user/1000/containers/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata/resolv.conf",
        "HostnamePath": "/run/user/1000/containers/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata/hostname",
        "HostsPath": "/run/user/1000/containers/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata/hosts",
        "StaticDir": "/var/home/core/.local/share/containers/storage/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata",
        "OCIConfigPath": "/var/home/core/.local/share/containers/storage/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata/config.json",
        "OCIRuntime": "crun",
        "ConmonPidFile": "/run/user/1000/containers/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata/conmon.pid",
        "PidFile": "/run/user/1000/containers/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata/pidfile",
        "Name": "29e82f8d07d5-infra",
        "RestartCount": 0,
        "Driver": "overlay",
        "MountLabel": "system_u:object_r:container_file_t:s0:c132,c868",
        "ProcessLabel": "system_u:system_r:container_t:s0:c132,c868",
        "AppArmorProfile": "",
        "EffectiveCaps": [
            "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"
        ],
        "BoundingCaps": [
            "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"
        ],
        "ExecIDs": [],
        "GraphDriver": {
            "Name": "overlay",
            "Data": {
                "LowerDir": "/var/home/core/.local/share/containers/storage/overlay/dee215ffc666313e1381d3e6e4299a4455503735b8df31c3fa161d2df50860a8/diff",
                "MergedDir": "/var/home/core/.local/share/containers/storage/overlay/0bcce79a74d65fb47c3da99aa8df4ffbcb683dd4b8639040f88adb692284ae04/merged",
                "UpperDir": "/var/home/core/.local/share/containers/storage/overlay/0bcce79a74d65fb47c3da99aa8df4ffbcb683dd4b8639040f88adb692284ae04/diff",
                "WorkDir": "/var/home/core/.local/share/containers/storage/overlay/0bcce79a74d65fb47c3da99aa8df4ffbcb683dd4b8639040f88adb692284ae04/work"
            }
        },
        "Mounts": [],
        "Dependencies": [],
        "NetworkSettings": {
            "EndpointID": "",
            "Gateway": "",
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "MacAddress": "",
            "Bridge": "",
            "SandboxID": "",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "3000/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3000"
                    }
                ],
                "4200/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4200"
                    }
                ],
                "4201/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4201"
                    }
                ],
                "5432/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "5432"
                    }
                ],
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "SandboxKey": "/run/user/1000/netns/cni-313e0b9b-b1b7-7f49-46e1-0dd093259fb3",
            "Networks": {
                "podman": {
                    "EndpointID": "",
                    "Gateway": "10.88.0.1",
                    "IPAddress": "10.88.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "de:a9:3a:50:3a:60",
                    "NetworkID": "podman",
                    "DriverOpts": null,
                    "IPAMConfig": null,
                    "Links": null
                }
            }
        },
        "ExitCommand": [
            "/usr/bin/podman",
            "--root",
            "/var/home/core/.local/share/containers/storage",
            "--runroot",
            "/run/user/1000/containers",
            "--log-level",
            "info",
            "--cgroup-manager",
            "systemd",
            "--tmpdir",
            "/run/user/1000/libpod/tmp",
            "--runtime",
            "crun",
            "--storage-driver",
            "overlay",
            "--events-backend",
            "journald",
            "container",
            "cleanup",
            "8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a"
        ],
        "Namespace": "",
        "IsInfra": true,
        "Config": {
            "Hostname": "prefect-pod",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "TERM=xterm",
                "container=podman",
                "HOSTNAME=prefect-pod"
            ],
            "Cmd": null,
            "Image": "k8s.gcr.io/pause:3.5",
            "Volumes": null,
            "WorkingDir": "/",
            "Entrypoint": "/pause",
            "OnBuild": null,
            "Labels": null,
            "Annotations": {
                "io.container.manager": "libpod",
                "io.kubernetes.cri-o.Created": "2021-11-11T03:09:19.370317749Z",
                "io.kubernetes.cri-o.TTY": "false",
                "io.podman.annotations.autoremove": "FALSE",
                "io.podman.annotations.init": "FALSE",
                "io.podman.annotations.privileged": "FALSE",
                "io.podman.annotations.publish-all": "FALSE",
                "org.opencontainers.image.stopSignal": "15"
            },
            "StopSignal": 15,
            "Umask": "0000",
            "Timeout": 0,
            "StopTimeout": 10
        },
        "HostConfig": {
            "Binds": [],
            "CgroupManager": "systemd",
            "CgroupMode": "private",
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "k8s-file",
                "Config": null,
                "Path": "/var/home/core/.local/share/containers/storage/overlay-containers/8df8d9761a6f6534618f9868c4ed7b32030bcc6bbbe35fb2e4fc91796fb6293a/userdata/ctr.log",
                "Tag": "",
                "Size": "0B"
            },
            "NetworkMode": "bridge",
            "PortBindings": {
                "3000/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3000"
                    }
                ],
                "4200/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4200"
                    }
                ],
                "4201/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "4201"
                    }
                ],
                "5432/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "5432"
                    }
                ],
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": [],
            "CapDrop": [
                "CAP_AUDIT_WRITE",
                "CAP_MKNOD",
                "CAP_NET_RAW"
            ],
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": [],
            "GroupAdd": [],
            "IpcMode": "private",
            "Cgroup": "",
            "Cgroups": "default",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "private",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [],
            "Tmpfs": {},
            "UTSMode": "private",
            "UsernsMode": "",
            "ShmSize": 65536000,
            "Runtime": "oci",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "user.slice",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": 0,
            "OomKillDisable": false,
            "PidsLimit": 2048,
            "Ulimits": [],
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "CgroupConf": null
        }
    }
]

@Luap99
Copy link
Member

Luap99 commented Nov 11, 2021

The podman inspect output is from the working pod, right?

@christopherchong94
Copy link
Author

The podman inspect output is from the working pod, right?

Yep!

Luap99 added a commit to Luap99/libpod that referenced this issue Nov 12, 2021
We need to use the config network mode when no network mode was set. To
do so we have to keep the nsmode empty, MakeContainer() will use the
correct network mode from the config when needed.

Fixes containers#12248

Signed-off-by: Paul Holzinger <[email protected]>
mheon pushed a commit to mheon/libpod that referenced this issue Dec 6, 2021
We need to use the config network mode when no network mode was set. To
do so we have to keep the nsmode empty, MakeContainer() will use the
correct network mode from the config when needed.

Fixes containers#12248

Signed-off-by: Paul Holzinger <[email protected]>

<MH: Fixed cherry-pick conflicts>

Signed-off-by: Matthew Heon <[email protected]>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants