Commit Graph

25081 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 79a820ac3b
Merge pull request #25832 from jakecorrenti/handle-sigint
Handle machine start state when sent a signal
2025-04-29 17:22:13 +00:00
openshift-merge-bot[bot] 8e97c6f6ba
Merge pull request #26011 from Luap99/5.6-dev
bump main to 5.6-dev
2025-04-29 17:03:06 +00:00
Jake Correnti 24267452e6
Handle signal preventing Start from completing
In the instance where the user sends a signal, such as SIGINT (Ctl-c)
when a Podman Machine is in the middle of starting, make sure the state
doesn't get stuck in the "Currently Starting" status.

Resolves: #24416

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2025-04-29 10:09:58 -04:00
openshift-merge-bot[bot] 1e4287d54c
Merge pull request #26010 from Luap99/bindings-pull
pkg/bindings: fix infinite loop/memory leak in image pull
2025-04-29 13:10:54 +00:00
Paul Holzinger 8d65e0e36c
bump main to 5.6-dev
Also remove the outdated comment that said to update the version in the
README.md file, that is no longer there since commit 8e7f98ae65
("docs(readme): add status badges and remove hardcoded release info").

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-29 14:08:03 +02:00
Paul Holzinger 579b17425e
pkg/bindings: wrap image push decode error
If this fails we should know exactly what failed. The underlying
connection error might just be unexpected EOF or somthing which is not
helpful.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-29 12:20:37 +02:00
Paul Holzinger 6c0e581fa9
pkg/bindings: fix infinite loop/memory leak in image pull
In the case of an Decoder error which is not EOF we loop forever, as the
Decoder stores some errors each next Decode() call will keep returning
the same error. Thus we loop forever until we run out of memory as each
error was stored in pullErrors array as described in [1].

Note this does not actually fix whatever causes the underlying
connection error in the issue, it just fixes the loop/memory leak.

[1] https://github.com/containers/podman/issues/25974

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-29 12:19:37 +02:00
openshift-merge-bot[bot] b4954ac2e8
Merge pull request #26004 from containers/renovate/github.com-opencontainers-cgroups-0.x
fix(deps): update module github.com/opencontainers/cgroups to v0.0.2
2025-04-29 09:34:47 +00:00
openshift-merge-bot[bot] 8c78fe204d
Merge pull request #26009 from arixmkii/check-c-gcc-15
Update "check.c" to be C23 compliant
2025-04-29 09:31:35 +00:00
Arthur Sengileyev ae9e85bfc5 Update "check.c" to be C23 compliant
Fixes compilation errors with GCC 15.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2025-04-29 11:10:45 +03:00
openshift-merge-bot[bot] ce0bac24e5
Merge pull request #25986 from Honny1/fix-unlimited-ulimits
Fix handling of "r_limits" in Podman REST API /libpod/containers/create
2025-04-28 22:27:40 +00:00
openshift-merge-bot[bot] 9e9b531dd1
Merge pull request #26002 from Honny1/fix-name
OWNERS: Fix GitHub handle
2025-04-28 18:20:53 +00:00
renovate[bot] 6c9f378a9b
fix(deps): update module github.com/opencontainers/cgroups to v0.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 18:19:46 +00:00
openshift-merge-bot[bot] a2d542df37
Merge pull request #26001 from ygalblum/quadlet-consolidate-service-init
Quadlet - use helper function to initialize service struct
2025-04-28 18:18:08 +00:00
Ygal Blum 3f56de0199 Quadlet - use helper function to initialize service struct
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2025-04-28 12:54:56 -04:00
openshift-merge-bot[bot] 2679304aa8
Merge pull request #25983 from matejvasek/fix-inherit-label
Fix: inheritlabels=true if query param absent
2025-04-28 16:02:48 +00:00
Jan Rodák fd444bd7d7
OWNERS: Fix Github handle
The `OWNERS` file contains an incorrect Github handle `honny1`. The correct Github handle is `Honny1`. This causes `/approve` comments to have no effect on PR. The `MAINTAINERS.md` file contains the correct Github handle.

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-04-28 16:58:18 +02:00
openshift-merge-bot[bot] d03d994835
Merge pull request #25975 from ygalblum/quadlet-consolidate-add-keys
Quadlet - use helper function for handling key=val type keys
2025-04-28 14:03:56 +00:00
Jan Rodák e66ff395b7
Fix handling of "r_limits" in Podman REST API /libpod/containers/create
The JSON decoder correctly cannot decode (overflow) negative values (e.g., `-1`) for fields of type `uint64`, as `-1` is used to represent `max` in `POSIXRlimit`. To handle this, we use `tmpSpecGenerator` to decode the request body. The `tmpSpecGenerator` replaces the `POSIXRlimit` type with a `tmpRlimit` type that uses the `json.Number` type for decoding values. The `tmpRlimit` is then converted into the `POSIXRlimit` type and assigned to the `SpecGenerator`.

This approach ensures compatibility with the Podman CLI and remote API, which already handle `-1` by casting it to `uint64` (`uint64(-1)` equals `MaxUint64`) to signify `max`.

Fixes: https://issues.redhat.com/browse/RUN-2859
Fixes: https://github.com/containers/podman/issues/24886

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-04-28 15:02:19 +02:00
openshift-merge-bot[bot] 4be34dedc5
Merge pull request #25991 from arixmkii/fix-named-volume-test
Disable FS mount in volume only test
2025-04-28 11:47:55 +00:00
openshift-merge-bot[bot] 42cee9d977
Merge pull request #25946 from ninja-quokka/docker_compat_force_image_remove
bug: Correct Docker compat REST API image delete endpoint
2025-04-28 11:03:41 +00:00
openshift-merge-bot[bot] b75a0f5135
Merge pull request #25995 from containers/renovate/setuptools-80.x
chore(deps): update dependency setuptools to v80
2025-04-28 10:11:09 +00:00
openshift-merge-bot[bot] b5f5738a14
Merge pull request #25982 from mheon/add_mohan
Add Mohan Boddu as community manager
2025-04-28 07:53:54 +00:00
renovate[bot] 7819879776
chore(deps): update dependency setuptools to v80
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-27 17:44:15 +00:00
Lewis Roy 6e7de438cc
bug: Correct Docker compat REST API image delete endpoint
The Docker `-XDELETE image/$name?force=true` endpoint only removes
containers using an image if they are in a non running state.

In Podman, when forcefully removing images we also forcefully delete
containers using the image including running containers.

This patch changes the Docker image force delete compat API to act like the
Docker API while maintaining commands like `podman rmi -f $imagename`

It also corrects the API return code returned when an image is requested
to be deleted with running containers using it.

Fixes: https://github.com/containers/podman/issues/25871

Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-04-27 20:51:11 +10:00
Arthur Sengileyev 585f046e95 Disable FS mount in volume only test
The test is checking that named volumes could be used. FS mount is not
needed and there is no code testing anything around it.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2025-04-26 13:44:36 +03:00
flouthoc 4268c61dd0 Added tests for inheritlabel fix
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2025-04-25 19:29:18 +02:00
Matej Vašek 0c4d023822
Fix: inheritlabels=true if query param absent
The inheritlabels param must default to true if query param is absent.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2025-04-25 19:17:00 +02:00
openshift-merge-bot[bot] 5c5ecdea88
Merge pull request #24150 from dfr/freebsd-system-reset
libpod: fix a confusing error message from 'podman system reset' on F…
2025-04-25 15:34:00 +00:00
Matt Heon 75f05a9807 Add Mohan Boddu as community manager
This PR nominates Mohan Boddu as a new Community Manager for the
Podman Container Tools project.

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-04-25 10:55:57 -04:00
openshift-merge-bot[bot] ac12341046
Merge pull request #25942 from rcmadhankumar/set-default-mount-option
Remove using `rw` as a default mount option
2025-04-25 13:35:29 +00:00
openshift-merge-bot[bot] 2c317bb519
Merge pull request #25977 from containers/renovate/golangci-golangci-lint-2.x
chore(deps): update dependency golangci/golangci-lint to v2.1.5
2025-04-25 11:53:53 +00:00
openshift-merge-bot[bot] 463e3a5d8a
Merge pull request #25978 from containers/renovate/github.com-cpuguy83-go-md2man-v2-2.x
fix(deps): update module github.com/cpuguy83/go-md2man/v2 to v2.0.7
2025-04-25 10:44:50 +00:00
renovate[bot] 710c077342
chore(deps): update dependency golangci/golangci-lint to v2.1.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 10:20:27 +00:00
renovate[bot] 7e14a03409
fix(deps): update module github.com/cpuguy83/go-md2man/v2 to v2.0.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 00:30:23 +00:00
openshift-merge-bot[bot] c28fd3cbd8
Merge pull request #25966 from Luap99/start-rm
remote: don't print bogus error when starting container attached
2025-04-24 18:58:00 +00:00
Ygal Blum 633f727f2d Quadlet - use helper function for handling key=val type keys
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2025-04-24 14:15:39 -04:00
openshift-merge-bot[bot] 2b647bf3f8
Merge pull request #25964 from SuNNjek/quadlet-pod-labels
Add Label to quadlet pod
2025-04-24 15:31:07 +00:00
openshift-merge-bot[bot] 83d989f3c3
Merge pull request #25960 from ricardobranco777/bats_tap_option
hack/bats: Pass --tap (-t) option to bats
2025-04-24 14:41:07 +00:00
Robin Heinemeier 802fc15b1e Add Label to quadlet pod
Signed-off-by: Robin Heinemeier <sunnerlp@gmail.com>
2025-04-24 13:37:42 +00:00
Paul Holzinger 0eac57ed31
podman start: remove container if needed
Like podman run --rm, start --attach must also ensure the contianer is
removed before it exist. Otherwise there is a race where the container
still exist after the command exits, because removal would only happen
by the cleanup process in the background.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-24 15:32:50 +02:00
openshift-merge-bot[bot] 5a823e33ef
Merge pull request #25963 from lsm5/packit-no-merge-pr-in-ci
Packit: couple of fixes for release process
2025-04-24 12:32:29 +00:00
Paul Holzinger 3a2d7587fe
remote: don't print bogus error when starting container attached
This looks like debug leftover, in any case this is not an error so
simply remove the line.

Fixes #25965

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-24 14:31:22 +02:00
Lokesh Mandvekar 9b751a27b9
[skip-ci] Packit: do not merge PR in CI
Packit's default behaviour of merging commits on PR copr build jobs ends
up creating a HEAD commit ID that doesn't exist upstream. This commit
disables that behaviour.

This way, copr builds from release PR can be used for podman-machine-os
builds.

Co-authored-by: Matej Focko <mfocko@users.noreply.github.com>
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-04-24 16:48:33 +05:30
Lokesh Mandvekar e443bffe5a
[skip-ci] Packit: re-enable fedora-41 targets
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-04-24 16:17:22 +05:30
Ricardo Branco 4dd9340a56
hack/bats: Pass --tap (-t) option to bats
Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-04-24 11:38:29 +02:00
openshift-merge-bot[bot] bc81470714
Merge pull request #25956 from ricardobranco777/hack_bats_multiple
hack/bats: Fix to allow multiple tests
2025-04-24 07:51:08 +00:00
Ricardo Branco bfd5de309f
hack/bats: Fix to allow multiple tests
Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-04-23 18:43:05 +02:00
openshift-merge-bot[bot] c55353f1d0
Merge pull request #25955 from ricardobranco777/podman_rootless_user
hack/bats: Allow specifying PODMAN_ROOTLESS_USER
2025-04-23 14:11:52 +00:00
openshift-merge-bot[bot] 7e57bb1474
Merge pull request #25953 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.1.1+incompatible
2025-04-23 12:40:34 +00:00