Bug 2232127
Summary: | Podman's `/build` Docker compatibility API endpoint does not accept "1" as a valid pull parameter. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Matej Vašek <mvasek> |
Component: | podman | Assignee: | Jindrich Novy <jnovy> |
Status: | CLOSED ERRATA | QA Contact: | Alex Jia <ajia> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.9 | CC: | ajia, bbaude, dwalsh, jligon, jnovy, lsm5, mboddu, mheon, pthomas, tsweeney |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | podman-4.6.1-2.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-14 15:30:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matej Vašek
2023-08-15 13:35:40 UTC
https://github.com/containers/podman/pull/19633 is merged, assigning to Jindrich for packaging work "curl" reproducer: tar -cf - Dockerfile | curl -XPOST --unix-socket /tmp/docker.sock -H 'Content-Type: application/x-tar' "http://localhost/v1.41/build?pull=1" --data-binary @- Where Docker file is some simple docker file e.g. `FROM alpine`, and /tmp/docker.sock is a unix socket served by podman. (In reply to Matej Vašek from comment #8) > "curl" reproducer: > tar -cf - Dockerfile | curl -XPOST --unix-socket /tmp/docker.sock -H > 'Content-Type: application/x-tar' "http://localhost/v1.41/build?pull=1" > --data-binary @- > > Where Docker file is some simple docker file e.g. `FROM alpine`, and > /tmp/docker.sock is a unix socket served by podman. Thank you Matej! I can reproduce this bug on podman-4.6.1-1.module+el8.9.0+19648+0d5ae0ec. [testuser@kvm-03-guest12 ~]$ tar -cf - Dockerfile | curl -XPOST --unix-socket /home/testuser/docker.sock -H 'Content-Type: application/x-tar' "http://localhost/v1.41/build?pull=1" --data-binary @- {"cause":"invalid pull policy: \"1\"","message":"failed to parse query parameter 'pull': \"1\": invalid pull policy: \"1\"","response":400} And verified on podman-4.6.1-4.module+el8.9.0+19761+326da906. [testuser@kvm-03-guest12 ~]$ tar -cf - Dockerfile | curl -XPOST --unix-socket /home/testuser/docker.sock -H 'Content-Type: application/x-tar' "http://localhost/v1.41/build?pull=1" --data-binary @- {"stream":"STEP 1/1: FROM quay.io/libpod/alpine:latest\n"} {"stream":"Trying to pull quay.io/libpod/alpine:latest...\n"} {"stream":"Getting image source signatures\n"} {"stream":"Copying blob sha256:9d16cba9fb961d1aafec9542f2bf7cb64acfc55245f9e4eb5abecd4cdc38d749\n"} {"stream":"Copying config sha256:961769676411f082461f9ef46626dd7a2d1e2b2a38e6a44364bcbecf51e66dd4\n"} {"stream":"Writing manifest to image destination\n"} {"stream":"COMMIT\n"} {"stream":"--\u003e 961769676411\n"} {"stream":"961769676411f082461f9ef46626dd7a2d1e2b2a38e6a44364bcbecf51e66dd4\n"} {"aux":{"ID":"sha256:961769676411f082461f9ef46626dd7a2d1e2b2a38e6a44364bcbecf51e66dd4"}} {"stream":"Successfully built 961769676411\n"} Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: container-tools:rhel8 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:6939 |