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

Silverblue toolbox script broke because rootless 'podman start' fails #1535

Closed
debarshiray opened this issue Sep 25, 2018 · 9 comments
Closed
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@debarshiray
Copy link
Member

/kind bug

Description

Here is the toolbox script that we have been working on for Fedora Silverblue.

If you follow the README.md until the fedora-toolbox enter step, then you'll see that the podman start ... command fails:

$ ./fedora-toolbox --verbose enter
unable to start container "fedora-toolbox-rishi:28": error reading container (probably exited) json message: EOF
./fedora-toolbox: failed to start container fedora-toolbox-rishi:28

This works fine if I use podman-0.9.1.1 with the fix for #1452 cherry-picked on top, but breaks if I use the 0.9.3 release.

Note that you'll need the patch from runc PR #1862 or you have to rollback to fedora-toolbox commit a878a1fe40e4c24a.

Output of podman version:

Version:       0.9.3
Go Version:    go1.10.4
OS/Arch:       linux/amd64

Output of podman info:

host:
  Conmon:
    package: podman-0.9.3-4.gita723353.fc28.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.12.0-dev, commit: 0fc9fe1e482dc5cb8dfca6d485cb1e27ec738f9d-dirty'
  MemFree: 11055898624
  MemTotal: 16696311808
  OCIRuntime:
    package: runc-1.0.0-53.1.dev.git70ca035.fc28.x86_64
    path: /usr/bin/runc
    version: 'runc version spec: 1.0.0'
  SwapFree: 4208979968
  SwapTotal: 4208979968
  arch: amd64
  cpus: 4
  hostname: bollard
  kernel: 4.18.7-200.fc28.x86_64
  os: linux
  uptime: 12m 24.61s
insecure registries:
  registries: []
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: []
  GraphRoot: /var/home/rishi/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 2
  RunRoot: /run/user/1000/run

Additional environment details (AWS, VirtualBox, physical, etc.):

This is a physical laptop running Fedora 28 Silverblue 28.20180918.0, with podman and runc overlaid on top (see above).

@giuseppe
Copy link
Member

I think this is fixed with c4b15ce, could you please check it?

@giuseppe
Copy link
Member

as a workaround for this issue, you could try to pull the image separately (podman pull image) before creating the container

@debarshiray
Copy link
Member Author

I think this is fixed with c4b15ce, could you please check it?

Yes, #1522 is fixed. If I cherry-pick c4b15ce on top of the podman-0.9.2 release, then things work. However, if I use the podman-0.9.3 release, then I hit this bug.

@mheon
Copy link
Member

mheon commented Sep 25, 2018 via email

@debarshiray
Copy link
Member Author

Known issue with 0.9.3 - SELinux labelling broke runc in this case
(specifically the tmpfs mount contexts added in the mount flag pr). We're
looking into getting a patch out to resolve this and cutting a 0.9.3.1
today.

I see, ok.

Note that I have SELinux set to permissive in the host, and the toolbox container is created with --security-opt label=disable.

@mheon
Copy link
Member

mheon commented Sep 25, 2018 via email

@mheon mheon added the bug label Sep 25, 2018
@rhatdan
Copy link
Member

rhatdan commented Sep 25, 2018

Could someone give me a command that causes this?

@rhatdan
Copy link
Member

rhatdan commented Sep 25, 2018

Fixed in #1541

@rhatdan rhatdan closed this as completed Sep 25, 2018
@debarshiray
Copy link
Member Author

Yes, indeed, this works for me with podman-0.9.3.1. Thanks a lot for the quick fix!

@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 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

4 participants