Page MenuHomePhabricator

Container fails to start due to change in poetry binary deploy location
Closed, ResolvedPublicBUG REPORT

Description

Warning  Failed     7m56s (x3 over 8m16s)   kubelet            Error: failed to start container "toolhub-main": Error response from daemon: OCI runtime create failed: container_linux.go:377: starting container process caused: exec: "/usr/local/bin/poetry": stat /usr/local/bin/poetry: no such file or directory: unknown

Caused by T357548: Blubber Python builder: Always use a virtualenv changing where poetry is installed during the Release Pipeline (Blubber) managed container build. Poetry is now:

$ which poetry
/opt/lib/venv/bin/poetry

Event Timeline

bd808 changed the task status from Open to In Progress.May 23 2024, 5:31 PM
bd808 claimed this task.
bd808 triaged this task as High priority.
bd808 moved this task from Backlog to In Progress on the Toolhub board.

This was not caught by anything in the CI pipeline in part because the "production" variant is the only place where we invoke poetry as the fully qualified path to the binary. In all other variants we invoke poetry from inside a sh -c ... entrypoint and trust PATH to find it for us.

I think a reasonable fix would be to also trust PATH when invoking poetry as the container entrypoint.

Change #1035531 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] blubber: Invoke `poetry` as entrypoint without full path

https://gerrit.wikimedia.org/r/1035531

Change #1035531 merged by jenkins-bot:

[wikimedia/toolhub@main] blubber: Invoke `poetry` as entrypoint without full path

https://gerrit.wikimedia.org/r/1035531

Change #1035555 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/deployment-charts@master] toolhub: Bump container version to 2024-05-23-193216-production

https://gerrit.wikimedia.org/r/1035555

Change #1035555 merged by jenkins-bot:

[operations/deployment-charts@master] toolhub: Bump container version to 2024-05-23-193216-production

https://gerrit.wikimedia.org/r/1035555