Cannot Start Pod: infra-image throws invalid switch
/kind bug Description Starting a pod after creation fails using locally generated podman-pause 4.0.x infrastructure image. Logs indicate that catatonit is executing with an invalid -P switch
Steps to reproduce the issue:
- Remove existing localhost/podman-pause and k8s.gcr.io/pause images
- Create New Pod
- Start New Pod
- Examine
podman pod lsandpodman ps -a. Infrastructure Container will have Exited - Examine logs from infrastructure container
Describe the results you received:
$ pod create test
Error: `podman pod create` takes no arguments
$ podman pod create --name test
1e611f9693d6abfc381dac717d2919a0ea7a4085bc9efb461042273864aa278b
$ podman pod start test
1e611f9693d6abfc381dac717d2919a0ea7a4085bc9efb461042273864aa278b
$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c166197c2f29 localhost/podman-pause:4.0.3-1649289600 10 seconds ago Exited (1) 2 seconds ago 1e611f9693d6-infra
$ podman pod ls
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
1e611f9693d6 test Exited 38 seconds ago c166197c2f29 1
$ podman logs 1e611f9693d6-infra
/catatonit: invalid option -- 'P'
usage: catatonit [-ghLV] [--] <progname> [<arguments>...]
Describe the results you expected: Pod Infrastructure Container should run and stay up
Additional information you deem important (e.g. issue happens only occasionally): Creating Pod with k8s.gcr.io/pause infrastructure image works without issues
$ podman pod create --name test --infra-image k8s.gcr.io/pause:3.7
66a753026702425782e866c63ac7fc6843d8538b89b1f2f854775c8fe3d67e8b
$ podman pod start test
66a753026702425782e866c63ac7fc6843d8538b89b1f2f854775c8fe3d67e8b
$ podman pod ls
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
66a753026702 test Running 35 seconds ago 42c27c895a71 1
$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
42c27c895a71 k8s.gcr.io/pause:3.7 40 seconds ago Up 10 seconds ago 66a753026702-infra
Output of podman version:
$ podman version
Client: Podman Engine
Version: 4.0.3
API Version: 4.0.3
Go Version: go1.16.15
Built: Wed Apr 6 17:00:00 2022
OS/Arch: linux/amd64
Output of podman info --debug:
array:/srv/tse.sys/operations # podman info --debug
host:
arch: amd64
buildahVersion: 1.24.3
cgroupControllers:
- cpuset
- cpu
- io
- memory
- hugetlb
- pids
- rdma
- misc
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.0.30-1.3.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.30, commit: unknown'
cpus: 12
distribution:
distribution: '"opensuse-microos"'
version: "20220408"
eventLogger: journald
hostname: array.tse.sys
idMappings:
gidmap: null
uidmap: null
kernel: 5.17.1-1-default
linkmode: dynamic
logDriver: journald
memFree: 65108443136
memTotal: 67274489856
networkBackend: cni
ociRuntime:
name: runc
package: runc-1.1.1-1.1.x86_64
path: /usr/bin/runc
version: |-
runc version 1.1.1
commit: v1.1.1-0-g52de29d7e0f8
spec: 1.0.2-dev
go: go1.17.8
libseccomp: 2.5.3
os: linux
remoteSocket:
path: /run/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_AUDIT_WRITE,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_MKNOD,CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: false
seccompEnabled: true
seccompProfilePath: /etc/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns-1.1.11-1.4.x86_64
version: |-
slirp4netns version 1.1.11
commit: unknown
libslirp: 4.6.1
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.3
swapFree: 0
swapTotal: 0
uptime: 4h 3m 54.84s (Approximately 0.17 days)
plugins:
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries:
search:
- registry.opensuse.org
- docker.io
store:
configFile: /etc/containers/storage.conf
containerStore:
number: 1
paused: 0
running: 1
stopped: 0
graphDriverName: btrfs
graphOptions: {}
graphRoot: /var/lib/containers/storage
graphStatus:
Build Version: 'Btrfs v5.16.1 '
Library Version: "102"
imageCopyTmpDir: /var/tmp
imageStore:
number: 11
runRoot: /var/run/containers/storage
volumePath: /var/lib/containers/storage/volumes
version:
APIVersion: 4.0.3
Built: 1649289600
BuiltTime: Wed Apr 6 17:00:00 2022
GitCommit: ""
GoVersion: go1.16.15
OsArch: linux/amd64
Version: 4.0.3
Package info (e.g. output of rpm -q podman or apt list podman):
podman-4.0.3-1.1.x86_64
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
You need to update catatonit to version 0.1.7. Podman 4.0 depends on that.