Bug#985379: podman: fails to run on freshly installed Bullseye, runtime "crun" not found: invalid argument

2021-04-18 Thread Filippo Giunchedi
Hello,

On Sun, Apr 18, 2021 at 10:38:34AM -0400, Reinhard Tartler wrote:
> Thank you for your report. I have to admit that I'm a bit confused,
> according to attached
> data, it seems you have both 'runc' as well as 'crun' installed. In that
> case, changing
> the order of the dependencies won't make a difference.
> 
> Please confirm what packages of 'crun' and 'runc' you have installed.

You are quite right, the reportbug metadata is confusing in this case! I ran
reportbug on a different host (with both crun and runc installed) than the one
I attached the output from. My apologies!

'host1' had indeed only 'runc' installed.

> It seems that I indeed missed this commit:
> https://salsa.debian.org/go-team/packages/golang-github-containers-common/-/commit/6475ef3063d4a1f50fc84b2e1ceac759f09fbeee
> that changes the default from runc to crun in version
> 0.30.1. Switching the dependency order to read 'crun | runc' instead of
> 'runc | crun' seems appropriate, and I'll
> do that in the next upload.

Thank you so much!

best,
Filippo



Bug#985379: podman: fails to run on freshly installed Bullseye, runtime "crun" not found: invalid argument

2021-04-18 Thread Reinhard Tartler
Thank you for your report. I have to admit that I'm a bit confused,
according to attached
data, it seems you have both 'runc' as well as 'crun' installed. In that
case, changing
the order of the dependencies won't make a difference.

Please confirm what packages of 'crun' and 'runc' you have installed.

Note that the default container runtime is configured in
/etc/containers/containers.conf, which
is provided by the golang-github-containers-common package. I notice your
comment that your
system doesn't have that file at that location. I assume that you deleted
it. Please refer to
https://manpages.debian.org/experimental/golang-github-containers-common/containers.conf.5.en.html
for fallback locations of that file.

You can verify the default on
https://salsa.debian.org/go-team/packages/golang-github-containers-common/-/blob/ec3c1e1123cb9c682c988905fdf967fe8a88a829/pkg/config/containers.conf#L397-399
.

It seems that I indeed missed this commit:
https://salsa.debian.org/go-team/packages/golang-github-containers-common/-/commit/6475ef3063d4a1f50fc84b2e1ceac759f09fbeee
that changes the default from runc to crun in version
0.30.1. Switching the dependency order to read 'crun | runc' instead of
'runc | crun' seems appropriate, and I'll
do that in the next upload.

Thanks!
-rt


On Tue, Mar 16, 2021 at 5:30 PM Filippo Giunchedi 
wrote:

> Package: podman
> Version: 3.0.1+dfsg1-1
> Severity: important
>
> This is the same as #971253. Specifically, 'runc' is installed as the first
> Depend, however podman defaults to 'crun'. I think podman should depend on
> 'crun' first so it works out of the box (and with cgroups v2).
>
> root@host1:~# podman images
> Error: default OCI runtime "crun" not found: invalid argument
> root@host1:~# ls -la /etc/containers/containers.conf
> ls: cannot access '/etc/containers/containers.conf': No such file or
> directory
>
>
> -- System Information:
> Debian Release: bullseye/sid
>   APT prefers testing-security
>   APT policy: (500, 'testing-security'), (400, 'testing')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
> not set
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages podman depends on:
> ii  conmon   2.0.25+ds1-1
> ii  containernetworking-plugins  0.9.0-1+b2
> ii  crun 0.17+dfsg-1
> ii  golang-github-containers-common  0.33.4+ds1-1
> ii  init-system-helpers  1.60
> ii  libc62.31-9
> ii  libdevmapper1.02.1   2:1.02.175-2.1
> ii  libgpgme11   1.14.0-1+b2
> ii  libseccomp2  2.5.1-1
> ii  runc 1.0.0~rc93+ds1-2+b1
>
> Versions of packages podman recommends:
> ii  buildah   1.19.6+dfsg1-1
> ii  catatonit 0.1.5-2
> ii  fuse-overlayfs1.4.0-1
> ii  golang-github-containernetworking-plugin-dnsname  1.1.1+ds1-4+b3
> ii  slirp4netns   1.0.1-1
> ii  tini  0.19.0-1
> ii  uidmap1:4.8.1-1
>
> Versions of packages podman suggests:
> ii  containers-storage  1.24.8+dfsg1-1
> pn  docker-compose  
>
> -- no debconf information
>
>

-- 
regards,
Reinhard


Bug#985379: podman: fails to run on freshly installed Bullseye, runtime "crun" not found: invalid argument

2021-03-16 Thread Filippo Giunchedi
Package: podman
Version: 3.0.1+dfsg1-1
Severity: important

This is the same as #971253. Specifically, 'runc' is installed as the first
Depend, however podman defaults to 'crun'. I think podman should depend on
'crun' first so it works out of the box (and with cgroups v2).

root@host1:~# podman images
Error: default OCI runtime "crun" not found: invalid argument
root@host1:~# ls -la /etc/containers/containers.conf
ls: cannot access '/etc/containers/containers.conf': No such file or directory


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (400, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages podman depends on:
ii  conmon   2.0.25+ds1-1
ii  containernetworking-plugins  0.9.0-1+b2
ii  crun 0.17+dfsg-1
ii  golang-github-containers-common  0.33.4+ds1-1
ii  init-system-helpers  1.60
ii  libc62.31-9
ii  libdevmapper1.02.1   2:1.02.175-2.1
ii  libgpgme11   1.14.0-1+b2
ii  libseccomp2  2.5.1-1
ii  runc 1.0.0~rc93+ds1-2+b1

Versions of packages podman recommends:
ii  buildah   1.19.6+dfsg1-1
ii  catatonit 0.1.5-2
ii  fuse-overlayfs1.4.0-1
ii  golang-github-containernetworking-plugin-dnsname  1.1.1+ds1-4+b3
ii  slirp4netns   1.0.1-1
ii  tini  0.19.0-1
ii  uidmap1:4.8.1-1

Versions of packages podman suggests:
ii  containers-storage  1.24.8+dfsg1-1
pn  docker-compose  

-- no debconf information