podman-desktop icon indicating copy to clipboard operation
podman-desktop copied to clipboard

Podify fails to create multi-container pod

Open ScrewTSW opened this issue 1 year ago • 11 comments

Bug description

Trying to follow the redis-python-app.

Using quay.io/centos7/redis-5-centos7 and quay.io/slemeur/python-app as containers, when I try to podify them into a single application, I get a crun mount error and redis container fails to start

Operating system

Windows 10 22H2

Installation Method

Installer from website/GitHub releases

Version

next (development version)

Steps to reproduce

  • Download and install podman-desktop v0.0.202401231458-a739864
  • Create a rootful machine
  • Pull both images, create containers, with python-app add redis as an extra host
  • Verify the application is running correctly
  • In containers view, select both containers and try to podify them

Relevant log output

Error: starting container <id1>: crun: mount '/var/lib/containers/storage/columes/<id2>/_data' to `var/lib/redis/data`: No such device: OCI runtime error

Additional context

Podman_Desktop_xOOBrVoMZy Podman_Desktop_jaxjAAdrZo

ScrewTSW avatar Jan 24 '24 11:01 ScrewTSW

locally built images from https://github.com/redhat-developer/podman-desktop-demo/tree/main Dockerfiles seem to be working correctly

ScrewTSW avatar Jan 24 '24 11:01 ScrewTSW

could you try with the images quay.io/podman-desktop-demo/podify-demo-backend:v1 and quay.io/podman-desktop-demo/podify-demo-frontend:v1

these one are built by the CI

benoitf avatar Jan 24 '24 12:01 benoitf

can it be related to https://github.com/containers/podman-desktop/pull/5640 @lstocchi or not related ?

benoitf avatar Jan 24 '24 12:01 benoitf

Don't reproduce with deployed images but I'm using Podman 4.8.3

jeffmaury avatar Jan 24 '24 13:01 jeffmaury

can it be related to #5640 @lstocchi or not related ?

it could be as that PR fixed a problem with the mounting but then even before it was not working properly because it was missing the mounting part. We have to verify

lstocchi avatar Jan 24 '24 13:01 lstocchi

could you try with the images quay.io/podman-desktop-demo/podify-demo-backend:v1 and quay.io/podman-desktop-demo/podify-demo-frontend:v1

these one are built by the CI

I think that with these images it works. At least given that we are using the images in play kubernetes yaml test.

odockal avatar Jan 24 '24 13:01 odockal

Pod created from above mentioned demo images is spinning up correctly.

odockal avatar Jan 24 '24 13:01 odockal

@ScrewTSW It is still an issue? Or can we close as out-of-date?

odockal avatar Feb 20 '24 20:02 odockal

@ScrewTSW It is still an issue? Or can we close as out-of-date?

I don't remember seeing that during the last testing session. I'll re-test and close as out of date if appropriate

ScrewTSW avatar Feb 20 '24 21:02 ScrewTSW

it's still an issue when trying to podify containers that have a mounted volume. This is with Podman Desktop v1.11.1.

image

If I use the podman CLI directly it works. eg.

podman pod create mypod
podman run -d --pod mypod \
    --name postgres \
    -e POSTGRES_DB=quarkus -e POSTGRES_USER=quarkus -e POSTGRES_PASSWORD=quarkus \
    -v pg-data:/var/lib/postgresql/data:Z \
    --replace docker.io/library/postgres:14
podman run -d --pod mypod --name quarkus-app \
    -e QUARKUS_DATABASE_USERNAME=quarkus -e QUARKUS_DATABASE_PASSWORD=quarkus -e quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/quarkus?loggerLevel=OFF \
    --replace quay.io/kevindubois/quarkus-observability:latest

kdubois avatar Jun 26 '24 14:06 kdubois

@benoitf this is the same issue I mentioned last month in slack, fyi.

kdubois avatar Jun 26 '24 15:06 kdubois

Upstream issue: https://github.com/containers/podman/issues/23337

jeffmaury avatar Jul 19 '24 07:07 jeffmaury