Commit Graph

22574 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 22ca67a753
Merge pull request #22732 from lsm5/main-bump-520
bump main to 5.2.0-dev
2024-05-20 16:15:21 +00:00
openshift-merge-bot[bot] f7bd15d527
Merge pull request #22754 from containers/renovate/github.com-containernetworking-plugins-1.x
fix(deps): update module github.com/containernetworking/plugins to v1.5.0
2024-05-20 12:38:08 +00:00
openshift-merge-bot[bot] 8bb86586f8
Merge pull request #22740 from Luap99/rootlessnetns-hosts
fix incorrect host.containers.internal entry for rootless bridge mode
2024-05-20 12:35:22 +00:00
renovate[bot] e590cced06
fix(deps): update module github.com/containernetworking/plugins to v1.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-20 08:51:58 +00:00
openshift-merge-bot[bot] 34d2d20d46
Merge pull request #21670 from tnk4on/rosetta-support
applehv: Rosetta support
2024-05-17 20:39:40 +00:00
Paul Holzinger fb2ab832a7
fix incorrect host.containers.internal entry for rootless bridge mode
We have to exclude the ips in the rootless netns as they are not the
host. Now that fix only works if there are more than one ip one the
host available, if there is only one we do not set the entry at all
which I consider better as failing to resolve this name is a much better
error for users than connecting to a wrong ip. It also matches what
--network pasta already does.

The test is bit more compilcated as I would like, however it must deal
with both cases one ip, more than one so there is no way around it I
think.

Fixes #22653

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-17 12:28:44 +02:00
Paul Holzinger 54ce5c6af1
vendor latest c/common main
Includes a new libnetwork API to get the rootlessnetns ips.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-17 11:32:20 +02:00
openshift-merge-bot[bot] cb658b061e
Merge pull request #22525 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.17.3
2024-05-17 09:31:47 +00:00
Shion Tanaka fe7cc67ef4 Add Rosetta support for Apple Silicon mac
Signed-off-by: Shion Tanaka <shtanaka@redhat.com>
2024-05-17 17:53:28 +09:00
openshift-merge-bot[bot] 77db54a78a
Merge pull request #22731 from nalind/defined-constant
Use a defined constant instead of a hard-coded magic value
2024-05-17 07:49:53 +00:00
Lokesh Mandvekar ad297b1823
bump main to 5.2.0-dev
v5.1 has been branched.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-05-16 16:21:49 -04:00
Nalin Dahyabhai 8afa06ee89 Use a defined constant instead of a hard-coded magic value
Use specV1.AnnotationTitle instead of hard-coding its value when we go
looking for podman-machine images.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-05-16 15:50:12 -04:00
openshift-merge-bot[bot] 349ef318a4
Merge pull request #22717 from ashley-cui/bindoc
[CI:DOCS] Fix Mac pkg link
2024-05-16 19:28:54 +00:00
openshift-merge-bot[bot] 1afeb13d0b
Merge pull request #22362 from tnk4on/e2e-macos-tmpdir
Change tmpDir when running e2e localmachine test on macOS
2024-05-16 18:11:55 +00:00
openshift-merge-bot[bot] f7a30461e0
Merge pull request #22658 from giuseppe/libpod-wait-for-healthy-on-main-thread
libpod: wait for healthy on main thread
2024-05-16 15:59:54 +00:00
openshift-merge-bot[bot] d1dd720d54
Merge pull request #22723 from containers/renovate/github.com-containers-gvisor-tap-vsock-digest
fix(deps): update github.com/containers/gvisor-tap-vsock digest to 01a1a0c
2024-05-16 13:23:12 +00:00
openshift-merge-bot[bot] 31bfabf6af
Merge pull request #22715 from rhatdan/volumes1
Return StatusNotFound when multiple volumes matching occurs
2024-05-16 12:52:56 +00:00
renovate[bot] 943ddfb0fe
fix(deps): update github.com/containers/gvisor-tap-vsock digest to 01a1a0c
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-16 06:43:35 +00:00
openshift-merge-bot[bot] c4631dc2d9
Merge pull request #22409 from Luap99/test-doc
test: cleanup unused files/doc
2024-05-15 19:09:12 +00:00
Ashley Cui 4b0ae78e00 [CI:DOCS] Fix Mac pkg link
Fix download link to CI mac pkg and include universal pkg.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-05-15 14:55:31 -04:00
Paul Holzinger 061bcc06ea
test: remove test_podman* scripts
They are not run in CI and to my knowledge are not used by anyone, we
have much more/better tests in test/e2e and test/system that should
cover everything done in these scripts so just delete them to not
confuse contributors.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-15 13:08:39 +02:00
Paul Holzinger cb905f59ea
test/system: fix documentation
First, point users to hack/bats for running them locally. Second, remove
TODO.md as it doesn't contain any helpful information. Basically all the
missing tests there have been added so this does not serve any purpose
and is missleading.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-15 13:08:39 +02:00
Daniel J Walsh 6408a05927
Return StatusNotFound when multiple volumes matching occurs
Fixes #22616

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-05-15 06:21:14 -04:00
openshift-merge-bot[bot] 759e546217
Merge pull request #22691 from nalind/events-bad-filters
`podman events`: check for an error after we finish reading events
2024-05-15 09:08:13 +00:00
Giuseppe Scrivano 35375e0af8
container_api: do not wait for healtchecks if stopped
do not wait for the healthcheck status to change if the container is
stopped.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-05-15 09:34:08 +02:00
Giuseppe Scrivano b06c58b4a5
libpod: wait for healthy on main thread
wait for the healthy status on the thread where the container lock is
held.  Otherwise, if it is performed from a go routine, a different
thread is used (since the runtime.LockOSThread() call doesn't have any
effect), causing pthread_mutex_unlock() to fail with EPERM.

Closes: https://github.com/containers/podman/issues/22651

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-05-14 22:55:02 +02:00
openshift-merge-bot[bot] 87bd77538e
Merge pull request #22587 from gmpify/main
Fix updating connection when SSH port conflict happens
2024-05-14 17:30:26 +00:00
Nalin Dahyabhai c46884aa93 `podman events`: check for an error after we finish reading events
The function that's handing us events will return an error after closing
the channel over which it's sending events, and its caller (in its own
goroutine) will then send that error over another channel.

The logic that started the goroutine is likely to notice that the events
channel is closed before noticing that the error channel has a result
for it to read, so any error that would have been communicated would be
lost.

When we finish reading events, check if the reader returned an error
before telling our caller that there was no error.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-05-14 13:18:51 -04:00
Gabriel Parreiras 277312d282
Fix updating connection when SSH port conflict happens
Signed-off-by: Gabriel Parreiras <gabriel.parreiras@shopify.com>
2024-05-14 16:15:56 +01:00
openshift-merge-bot[bot] ef6619019f
Merge pull request #22689 from lsm5/packit-podman-next
[skip-ci] Packit: use only one value for `packages` key for `trigger: commit` copr builds
2024-05-14 13:39:27 +00:00
openshift-merge-bot[bot] a6aa5c8fcf
Merge pull request #22673 from tnk4on/fix-farm-remote
Fix podman-remote support for `podman farm build`
2024-05-14 13:14:36 +00:00
openshift-merge-bot[bot] 8ae59f8923
Merge pull request #22688 from containers/renovate/github.com-crc-org-crc-v2-2.x
Update module github.com/crc-org/crc/v2 to v2.36.0
2024-05-14 12:41:36 +00:00
openshift-merge-bot[bot] d7d48705a4
Merge pull request #22669 from ashley-cui/act
[CI:DOCS] Trigger windows installer action properly
2024-05-14 12:22:33 +00:00
openshift-merge-bot[bot] f568afec05
Merge pull request #22695 from Luap99/rootless-reexec
rootless: fix reexec to use /proc/self/exe
2024-05-14 12:16:53 +00:00
openshift-merge-bot[bot] 5044a0bb03
Merge pull request #22690 from edsantiago/exitwitherror-final
ExitWithError() - final push to strict mode
2024-05-14 10:04:52 +00:00
Paul Holzinger 2a609b0f74
rootless: fix reexec to use /proc/self/exe
Under some circumstances podman might be executed with a different argv0
than the actual path to the podman binary. This breaks the reexec logic
as it tried to exec argv0 which failed.

This is visible when using podmansh as login shell which get's the
special -podmansh on argv0 to signal the shell it is a login shell.

To fix this we can simply use /proc/self/exe as command path which is
much more robust and the argv array is still passed correctly.

Fixes #22672

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-14 12:02:19 +02:00
openshift-merge-bot[bot] f03dc68f00
Merge pull request #22654 from ashley-cui/val
[CI:DOCS] Improvements to make validatepr
2024-05-13 20:36:22 +00:00
openshift-merge-bot[bot] 443e37719c
Merge pull request #22640 from WxNzEMof/runtimes-without-paths
Don't panic if a runtime was configured without paths
2024-05-13 20:33:27 +00:00
Ed Santiago d4e40fedaf ExitWithError() - enforce required exit status & stderr
Final followup to #22270. That PR added a temporary convention
allowing a new form of ExitWithError(), one with an exit code
and stderr substring. In order to allow bite-size progress,
the old no-args form was still allowed. This PR removes
support for no-args ExitWithError().

This PR also adds one piece of new functionality: passing ""
(empty string) as the stderr arg means "expect exit code
but fail if there's anything at all in stderr".

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-13 13:59:17 -06:00
Ed Santiago 82f9811a8d ExitWithError() - a few that I missed
Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-13 13:59:17 -06:00
openshift-merge-bot[bot] aff18ba393
Merge pull request #22388 from xduugu/podman-remote-static-goos
Makefile: do not hardcode `GOOS` in `podman-remote-static` target
2024-05-13 19:46:45 +00:00
openshift-merge-bot[bot] c9808e7edf
Merge pull request #22533 from Luap99/e2e-tmp-ci
run e2e test on tmpfs
2024-05-13 18:21:28 +00:00
openshift-merge-bot[bot] e778d9851a
Merge pull request #22687 from TomSweeneyRedHat/dev/tsweeney/bumpbuildahmain2
Address CVE-2024-3727
2024-05-13 18:18:42 +00:00
openshift-merge-bot[bot] abfd0228d9
Merge pull request #22398 from andremarianiello/graceful-kube-down
Graceful shutdown during podman kube down
2024-05-13 16:45:14 +00:00
Lokesh Mandvekar 44825ab428
[skip-ci] Packit: use only one value for `packages` key for `trigger: commit` copr builds
Without this key, there are duplicate copr jobs being created on
podman-next copr for `podman-fedora` and `podman-centos`.

Picking just one of `podman-fedora` / `podman-centos` should trigger
builds for all targets specified on the podman-next copr.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-05-13 12:25:15 -04:00
openshift-merge-bot[bot] dfab103bd3
Merge pull request #22660 from edsantiago/exitwitherror-rmi
ExitWithError() - rmi_test
2024-05-13 15:52:59 +00:00
openshift-merge-bot[bot] 3049bc4533
Merge pull request #22661 from edsantiago/exitwitherror-r
ExitWithError() - more r files
2024-05-13 15:35:43 +00:00
openshift-merge-bot[bot] 7fa103f277
Merge pull request #22582 from edsantiago/exitwitherror-part6
ExitWithError() - s files
2024-05-13 15:32:49 +00:00
openshift-merge-bot[bot] d047ca034a
Merge pull request #22581 from edsantiago/exitwitherror-part5
ExitWithError() - more run_xxx tests
2024-05-13 15:29:58 +00:00
Paul Holzinger 92338642d1
Revert "Temporarily disable rootless debian e2e testing"
This reverts commit 02b8fd7156.
The new CI images should have a apparmor workaround.

Fixes #22625

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-13 17:27:11 +02:00