Commit graph

27378 commits

Author SHA1 Message Date
Paul Holzinger
2393c05d28
Merge pull request #28806 from martinetd/detach_run_tty
cmd/podman: don't warn on `podman run -ti -d` from not a tty
2026-05-29 13:19:14 +02:00
Dominique Martinet
4ec95b5de1 cmd/podman: don't warn on podman run -ti -d from not a tty
`podman run -ti` warns when stdin is not a tty, but if the container is
run in detached state that warning does not make much sense: we just
need the environment where podman attach will be run to be a tty.

Running with `-ti` even in detached state can make sense to avoid
applications buffering their output (for realtime logs) or allowing
later interaction and should not warn users.

Also remove the comment saying that warning will become fatal, as there
seems to be agreement that such a breaking change will not be made

Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
2026-05-29 10:37:26 +09:00
Brent Baude
98fa8c1f1d
Merge pull request #28808 from Luap99/golangci-lint-location
Fix golangci-lint location lookup
2026-05-28 15:52:56 -05:00
Paul Holzinger
5c7ac731e2
Merge pull request #28796 from containers/renovate/golang.org-x-crypto-0.x
Update module golang.org/x/crypto to v0.52.0
2026-05-28 22:37:31 +02:00
Paul Holzinger
2e7178f428
hack/golangci-lint.sh: fix binary lookup order
The install script only reuses the binary from $PATH if the version
matches otherwise installs into ./bin, if the version of $PATH matches
then the binary from ./bin is removed there.

That means the actual run must prefer ./bin as this has a known good
version when it exists unlike $PATH which can be the wrong version.

This fixes the logic added in commit cf021c4ba9.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-28 20:38:49 +02:00
Paul Holzinger
13c6b5d786
pkg/bindings/generator: fall back to golangci-lint from $PATH
Commit cf021c4ba9 switched the logic to also allow golangci-lint in
$PATH but forgot to update the call here.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-28 20:38:49 +02:00
Brent Baude
6fc1073be3
Merge pull request #28804 from Luap99/test-fixes
More test fixes for new CI
2026-05-28 09:51:05 -05:00
Matt Heon
65093e1fe7
Merge pull request #28788 from bit-hope/improvements-for-oci_conmon_common
Improvements for newConmonOCIRuntime() in libpod/oci_conmon_common.go
2026-05-28 09:09:13 -04:00
Paul Holzinger
c4c2778776
test/system: fix "podman kill - concurrent stop"
It is possible that the background podman stop -t 1 completes before we
get to podman kill making the kill fail as the container is not running.

The result is this error in the test:
"Error: can only kill running containers. xxx is in state exited: container state improper"

We can just bump the stop timeout to have a larger time where we can
trigger kill on a stopping container.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-28 13:37:42 +02:00
Paul Holzinger
ea51ae7305
test/system: use DISABLE_HC_SYSTEMD for 2 tests
The problem is by default we create the systemd timers and run hc in the
background. This means any tests who depend on exact hc timing can get
broken by this so use the DISABLE_HC_SYSTEMD=true env which makes podman
skip creating the systemd timers but still allows you to manually run
the commands.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-28 13:37:42 +02:00
Paul Holzinger
a2581cc82f
test/e2e: deduplicate some network subnets
With a high parallel node run we have much more test cases run in
parallel, as such I am seeing a lot of network subnet flakes as they
were using the same one and thus failed since there can only be one
config using it at a time.

Now hard coding this here is ugly, yes. But for now I just need to get
the flakes down in the new CI. Long term we should likely have a helper
that hands out known unused subnets for the tests.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-28 13:36:45 +02:00
Paul Holzinger
d1d0c84a56
test/system: bump "unlock while waiting for timeout" timeout
In parallel runs the timings might be a bit slower than normal. Increase
the timeout here, it should not affect the test as we use a 20s stop
timeout which is more than the ready loop which uses 5s now.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-28 13:36:45 +02:00
Giuseppe Scrivano
c995882ecf
Merge pull request #28802 from inknos/rhel-178653
api/libpod: fix r_limits cleared on update
2026-05-28 08:03:17 +02:00
zhongchunhe.zch
1e0be4dec5 Improvements for newConmonOCIRuntime() in libpod/oci_conmon_common.go
Creating lookup tables for runtime support is unnecessary, simply verify if the target string exists within the arrays.

Signed-off-by: zhongchunhe.zch <zhongchunhe.zch@qq.com>
2026-05-28 10:28:05 +08:00
Giuseppe Scrivano
20c6bd5bdd
Merge pull request #28793 from mheon/blackhole-routes
podman: Add support for blackhole routes
2026-05-27 16:29:48 +02:00
Ashley Cui
93a51990c1
Merge pull request #28794 from Luap99/test-fixes
Test fixes/skips for new CI system
2026-05-27 10:10:14 -04:00
Povilas Kanapickas
daaf8b62ba podman: Add support for blackhole routes
Add support for blackhole, unreachable, and prohibit route types in podman
networks. These route types allow silently discarding packets (blackhole),
rejecting with destination unreachable (unreachable), or rejecting with
administratively prohibited (prohibit).

Note: Blackhole routes require netavark >= 2.0.0. Regular unicast routes
remain backward compatible with all netavark versions.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>

<MH: Rebased atop latest main & fixed cherry-pick conflicts>

Signed-off-by: Matt Heon <matthew.heon@pm.me>
2026-05-27 09:09:19 -04:00
renovate[bot]
0ef5366c6d
Update module golang.org/x/crypto to v0.52.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-27 12:58:05 +00:00
Nicola Sella
e59b9dae8f
api/libpod: fix r_limits cleared on update
Returnin nil when input is empty, to skip rlimit replacement
when r_limits is not present in the request.

Fixes: https://issues.redhat.com/browse/RHEL-178653

Signed-off-by: Nicola Sella <nsella@redhat.com>
2026-05-27 13:32:31 +02:00
Paul Holzinger
b498cefd5c
test/system: do not run "podman pause/unpause" in parallel
podman ps -a causes unexpected timing delays as it tries to take locks for
all containers and parallel tests may cause it to block for a while.

In CI logs I see ps -a take over 3 seconds which is enough to mess with
the expect time and make the test fail. Since testing the ps -a output
as part of the test just switch the test to not run in parallel.

This failed with "delta t between paused and restarted" where it took 10
seconds instead of the max expected 6 seconds.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:40 +02:00
Paul Holzinger
90ba6562d5
test/system: fix "stop container when healthcheck runs" flake
This is a long standing flake but I see it again in the lima CI, the
problem seems to happen when we stop the container before the background
healthcheck fires.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:40 +02:00
Paul Holzinger
34137c40f6
test/system: fix "podman stop - unlock while waiting for timeout"
In highly parallel runs this can fail its timeout due the fact that we
run podman ps -a which takes all contianer locks, even the ones from
unrelated tests. thus this command can take a long time, from a CI log I
see:
[18:22:30.932958589] # /var/tmp/podman/bin/podman  ps -a
[18:22:34.338904713] CONTAINER ID  IMAGE

So like a 4s delay just on that and hence the test later failed with
"Operations took too long" as it took 7 seconds overall.

So since we know podman inspect takes the lock just keep that and not
try to get all containers for no reason.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:40 +02:00
Paul Holzinger
472c53b122
test/e2e: fix static port assignment
This seems to flake in the parallel CI runs as another process might
also use 8080 already.

We can use any port here so use GetPort() which should give us a
conflict free one.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:40 +02:00
Paul Holzinger
0dbe00d272
test/system: skip one new pasta flake
I saw this already in openQA and now with the new rawhide images we hit
it in upstream as well. Skip this for now to not cause so many flakes.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:40 +02:00
Paul Holzinger
97d0279e94
test/e2e: fix some duplciated network subnets
This is really not nice but it is a quick fix to avoid more flakes.

The 10.11.12.0/24 was used by several tests and podman will only allow
the network to be created once with a given subnet so we need to ensure
they are conflict free, otherwise in parallel runs they will fail
randomly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
07e257e7f6
test/e2e: skip "podman run --shm-size-systemd" as root
The container prints "Failed to set RLIMIT_CORE: Operation not permitted"
I do not know why this fails when run with sudo but lets just skip it it
for now.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
1de60ebf7b
test/e2e: skip "sshd and API services required"
The test assumes a local id_ed25519 ssh key exists and is setup to
connect to its own user. That is basically never the case locally so the
test is broken by design.

If the test should run in some special CI setup where that is the case
we need to enable it and guard based on that later.

For now I just like to get the lima VM tests passing.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
39ee9baf66
test/system: fix "add username to /etc/passwd if --userns=keep-id"
The test assumed /home/$USER == $HOME which may not be the case. In fact
it is not the case in the new lima VM runners.

Fix the test to actually use the path we want to test for, $HOME.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
9aca6010ee
test/system: skip "IPv6 default address assignment"
It is not working in all ipv6 setups. In the new lima testing env
default_addr is just null causing the test to fail because the container
address was "fec0::5055:55ff:fe2b:6cc9".

For now skip this until we can figure something better out.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
8cc0a6774e
Merge pull request #28797 from kolyshkin/stop-gap
.cirrus.yml: do not run golangci-lint for freebsd and mac
2026-05-27 12:43:52 +02:00
Kir Kolyshkin
c22f67e729 .cirrus.yml: do not run golangci-lint for freebsd and mac
Since PR 28760 linting is done for all OSes on linux, so there's no need
to run golangci-lint on Mac and FreeBSD separately. This also fixes the
issue of mixing up golangci-lint caches between different Mac OS X runs.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-26 14:23:48 -07:00
Paul Holzinger
cbcd40fb9f
Merge pull request #28791 from TomSweeneyRedHat/dev/tsweeney/6.0-libs-bump
Bump c/common 0.68.0, c/image 5.40.0, c/storage 1.63.0
2026-05-26 21:38:26 +02:00
Tom Sweeney
41a99a651f Bump c/common 0.68.0, c/image 5.40.0, c/storage 1.63.0
Bump the following:

c/common to v0.68.0
c/image to v5.40.0
c/storage to v1.63.0

in preparation for Podman 6.0.

Buildah still needs to be bumped and vendored, but thought I'd get this
part going while waiting for that.

Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
2026-05-26 12:59:40 -04:00
Brent Baude
e581ddc253
Merge pull request #28731 from lstocchi/hyperv_enhancements
Fixes for Hyper-V user experience
2026-05-26 10:30:18 -05:00
Brent Baude
195cceba72
Merge pull request #28756 from containers/renovate/github.com-hugelgupf-p9-0.x
Update module github.com/hugelgupf/p9 to v0.4.1
2026-05-26 10:06:41 -05:00
Brent Baude
ac4099f38f
Merge pull request #28766 from Honny1/fix-tutorial-docs
Clarify inspect example in basic setup tutorial
2026-05-26 10:05:57 -05:00
Brent Baude
320dcc8034
Merge pull request #28775 from Honny1/skip-pesto-tests
Skip pasta forwarder tests pending passt SELinux fix
2026-05-26 08:46:28 -05:00
Matt Heon
faa1f85136
Merge pull request #28780 from erictrue/patch-1
Fix an obvious typo
2026-05-26 08:35:14 -04:00
Paul Holzinger
22c5f3fa55
Merge pull request #28527 from vyasgun/pr/krunkit-timesync
machine: add vfkit timesync device for Apple VMs
2026-05-26 12:23:04 +02:00
Paul Holzinger
1c6d8a0a89
Merge pull request #28759 from kolyshkin/modernize-3
Assorted go modernize fixes
2026-05-26 12:20:31 +02:00
Jan Rodák
5b98ee331f
Merge pull request #28641 from jiwahn/feat/container-annotation-filter
Feat/container annotation filter
2026-05-26 12:00:40 +02:00
Giuseppe Scrivano
cf11327daf
Merge pull request #28786 from OverOrion/add-axoflow-to-adopters
Add Axoflow to ADOPTERS.md
2026-05-26 11:14:34 +02:00
Jan Rodák
751f7c316d
Merge pull request #28714 from christopherbii/main
Fix Missing HostConfig field from API response
2026-05-26 10:26:46 +02:00
Jan Rodák
e99809239c
Merge pull request #28763 from kolyshkin/drop-unused
contrib/cirrus/prebuild.sh: drop unused get_env_key
2026-05-26 10:25:32 +02:00
Jan Rodák
752755025d
Merge pull request #28760 from kolyshkin/hack-golangci
Improvements for hack/golangci-lint.sh
2026-05-26 10:14:25 +02:00
Szilard Parrag
eede8790a0
Add Axoflow to ADOPTERS.md
Signed-off-by: Szilard Parrag <szilard.parrag@axoflow.com>
2026-05-26 08:20:46 +02:00
Kir Kolyshkin
e9ec0ecef5 Makefile: run golangci-lint for all supported OSes
Amend golangci-lint target to also run linters on all supported OSes
in addition to a native run.

Use CGO_ENABLED=0 because Makefile sets CGO_ENABLED=1, and
cross-compilation tools are probably not available.

Use GOARCH=arm64 for darwin because since commit f87cefc Mac builds are
arm64-only.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-25 17:49:14 -07:00
Kir Kolyshkin
cf021c4ba9 hack: reuse already installed golangci-lint
When a specific version of golangci-lint is already available in $PATH,
use it instead of installing one locally.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-25 12:23:30 -07:00
Eric True
ffb05a0921
Update krunkit.entitlements
Signed-off-by: Eric True <272747804+erictrue@users.noreply.github.com>
2026-05-26 02:09:43 +08:00
Jan Rodák
43fc762a47
Merge pull request #28752 from kolyshkin/drop-git-validation
ci: replace git-validation with a small shell script
2026-05-25 15:48:21 +02:00