Commit graph

22113 commits

Author SHA1 Message Date
openshift-merge-bot[bot]
bb81e85a43
Merge pull request #22234 from openshift-cherrypick-robot/cherry-pick-22136-to-v5.0
[v5.0] [skip-ci] Packit: Enable CentOS Stream 10 update job
2024-04-01 16:03:47 +00:00
Lokesh Mandvekar
63f6a78eb1 Packit: Enable CentOS Stream 10 update job
Packit now has recently added support to enable downstream PR updates to
CentOS Stream packages.
Ref:
https://packit.dev/docs/configuration/upstream/propose_downstream#syncing-the-release-to-centos-stream

CentOS Stream support is still in its early stages but this change
should be safe to add to upstream packit config.

Whenever there's a new Podman release, the rpm maintainer would need to
run `packit propose-downstream` using the packit CLI (not github
comment) to actually create the downstream update PR.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-04-01 15:43:02 +00:00
openshift-merge-bot[bot]
1fb4e27ee3
Merge pull request #22231 from mheon/bump_501
Bump to v5.0.1
2024-04-01 13:38:02 +00:00
Matt Heon
e22c9dd658 Bump to v5.0.2-dev
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-01 08:28:48 -04:00
Matt Heon
946d055df3
Bump to v5.0.1
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-01 08:28:31 -04:00
Matt Heon
131f3d0892 Add release notes for v5.0.1
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-01 08:28:08 -04:00
openshift-merge-bot[bot]
1ecd7d06ec
Merge pull request #22219 from TomSweeneyRedHat/dev/tsweeney/v5.0_buildah_1.35.3
[v5.0] Bump Buildah to v1.35.3
2024-03-31 09:39:22 +00:00
Paul Holzinger
2967eb9a26 [v5.0] libpod: restart always reconfigure the netns
Always teardown the network, trying to reuse the netns has caused
a significant amount of bugs in this code here. It also never worked
for containers with user namespaces. So once and for all simplify this
by never reusing the netns. Originally this was done to have a faster
restart of containers but with netavark now we are much faster so it
shouldn't be that noticeable in practice. It also makes more sense to
reconfigure the netns as it is likely that the container exited due
some broken network state in which case reusing would just cause more
harm than good.

The main motivation for this change was the pasta change to use
--dns-forward by default. As the restarted contianer had no idea what
nameserver to use as pasta just kept running.

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-03-30 09:47:15 -04:00
Paul Holzinger
92b3cda79b [v5.0] use new c/common pasta2 setup logic to fix dns
By default we just ignored any localhost reolvers, this is problematic
for anyone with more complicated dns setups, i.e. split dns with
systemd-reolved. To address this we now make use of the build in dns
proxy in pasta. As such we need to set the default nameserver ip now.

A second change is the option to exclude certain ips when generating the
host.containers.internal ip. With that we no longer set it to the same
ip as is used in the netns. The fix is not perfect as it could mean on a
system with a single ip we no longer add the entry, however given the
previous entry was incorrect anyway this seems like the better behavior.

Fixes #22044

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-30 09:46:39 -04:00
tomsweeneyredhat
b1dbd477e1 [v5.0] Bump Buildah to v1.35.3
As the title says, bumping to Buildah v1.35.3 in preparation
of Podman v5.0.1

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-03-29 20:32:09 -04:00
openshift-merge-bot[bot]
631cb9537d
Merge pull request #22171 from openshift-cherrypick-robot/cherry-pick-22154-to-v5.0
[v5.0] libpod: don't warn about cgroupsv1 on FreeBSD
2024-03-26 16:07:14 +00:00
openshift-merge-bot[bot]
a2fe581ee7
Merge pull request #22173 from openshift-cherrypick-robot/cherry-pick-22161-to-v5.0
[v5.0] hyperv: error if not admin
2024-03-26 13:55:09 +00:00
Brent Baude
ebe3f395bd hyperv: error if not admin
creating vsocks in windows requires admin privileges.  there could be
some workarounds made in the future,but the general deal has
always been, you need to be admin.  lets enforce this with an error
until those work-arounds can be implemented.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-03-26 12:27:51 +00:00
Doug Rabson
4b54d18244 libpod: don't warn about cgroupsv1 on FreeBSD
This factors out the check for cgroupsv2 unified mode into a
platform-specific file and stops podman from generating a (harmless)
warning every time it is run on FreeBSD.

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
2024-03-26 12:11:36 +00:00
openshift-merge-bot[bot]
c1a226a0d7
Merge pull request #22162 from openshift-cherrypick-robot/cherry-pick-22150-to-v5.0
[v5.0] Use built-in ssh impl for all non-pty operations
2024-03-26 12:05:08 +00:00
Jason T. Greene
3123138729 Use built-in ssh impl for all non-pty operations
Windows is not guaranteed to have the SSH feature installed, so prefer the use
of the built-in ssh client for all operations other than podman machine ssh,
which requires terminal pty logic. This restores previous behavior in 4.x.

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-03-25 18:19:06 +00:00
openshift-merge-bot[bot]
e852b970f6
Merge pull request #22143 from openshift-cherrypick-robot/cherry-pick-22133-to-v5.0
[v5.0] fix remote build isolation on client side
2024-03-23 13:09:42 +00:00
Paul Holzinger
70fe2a1c95 fix remote build isolation on client side
Follow up to 493179be45 which only fixed the issue on the server despite
me trying to fix it on the client as well, with this change here we
always correctly unset the default on the remote client as the
root/rootless status will be wrong.

This means it is enough for users to either have a new server or client
with the bug fix which should make the update process easier.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-22 19:48:55 +00:00
openshift-merge-bot[bot]
177ea856f5
Merge pull request #22122 from openshift-cherrypick-robot/cherry-pick-22112-to-v5.0
[v5.0] fix remote build isolation when server runs as root
2024-03-21 17:59:57 +00:00
Paul Holzinger
bfc63cc325 fix remote build isolation when server runs as root
I am really not sure why the caller even should have the option to set
this. We should always use the correct isolation type based on the
privileges the server runs under never the client. podman-remote build
seems to send the default based on its local privs which was wrong as
well. To fix this I also changed the client to send the default if the
isolation flag is not set.

Fixes #22109

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-21 15:35:11 +00:00
openshift-merge-bot[bot]
0bf85ac730
Merge pull request #22086 from lsm5/v500-release
v5.0.0 release
2024-03-19 17:21:15 +00:00
Lokesh Mandvekar
f32338dfce
bump version to v5.0.1-dev
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-03-19 15:18:13 +05:30
Lokesh Mandvekar
e71ec6f1d9
New release: v5.0.0
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-03-19 15:17:46 +05:30
Lokesh Mandvekar
6b93d9e119
Update RELEASE_NOTES.md with CVE-2024-1753
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-03-19 15:16:54 +05:30
openshift-merge-bot[bot]
c8d5088436
Merge pull request #22085 from TomSweeneyRedHat/dev/tsweeney/cve-5.0
[v5.0] Bump Buildah to v1.35.1
2024-03-19 01:54:22 +00:00
tomsweeneyredhat
eb2b16d6d6 [v5.0] Bump Buildah to v1.35.1
As the title says.  Bumping to v1.35.1 in preparation
of Podman v5.0.

Addresses: CVE-2024-1753

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-03-18 20:30:42 -04:00
openshift-merge-bot[bot]
537eab09ac
Merge pull request #22072 from openshift-cherrypick-robot/cherry-pick-22062-to-v5.0
[v5.0] Switch to 5.x WSL machine os stream using new automation
2024-03-18 16:30:22 +00:00
Jason T. Greene
43b9ea8b91 Adjust to the standard location of gvforwarder used in new images
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-03-18 14:19:09 +00:00
Jason T. Greene
4a84f39b37 Switch to 5.x WSL machine os stream using new automation
Includes a switch from XZ to ZSTD for significantly improved fetch performance

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-03-18 14:19:09 +00:00
openshift-merge-bot[bot]
fa773a08a8
Merge pull request #22070 from openshift-cherrypick-robot/cherry-pick-22042-to-v5.0
[v5.0] [skip-ci] rpm: use macro supported vendoring
2024-03-18 13:56:24 +00:00
Lokesh Mandvekar
a03de4c14d rpm: use macro supported vendoring
This removes the need for any `Provides: bundled()` we needed in spec
files.

The updated Provides will be visible in the build logs and can also be
verified with `rpm -q --provides $RPM_FILE`.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-03-18 13:43:33 +00:00
openshift-merge-bot[bot]
daacb1cc7a
Merge pull request #22051 from mheon/bump_500_rc7
Bump to v5.0.0-RC7
2024-03-15 13:09:15 +00:00
Matt Heon
069439820d Bump to v5.0.0-dev
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-03-14 18:13:46 -04:00
Matt Heon
f8888a13b1
Bump to v5.0.0-RC7
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-03-14 18:13:29 -04:00
Matt Heon
2e387df07f Add release notes for v5.0.0-rc7
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-03-14 18:13:14 -04:00
openshift-merge-bot[bot]
ad413ee62e
Merge pull request #22050 from openshift-cherrypick-robot/cherry-pick-21979-to-v5.0
[v5.0] fix invalid HTTP header values when hijacking a connection
2024-03-14 21:50:44 +00:00
openshift-merge-bot[bot]
891d8a27d1
Merge pull request #22047 from openshift-cherrypick-robot/cherry-pick-22032-to-v5.0
[v5.0] podman machine start: make checkExclusiveActiveVM check race free
2024-03-14 19:52:32 +00:00
Denys Knertser
d36ce9c2bd fix invalid HTTP header values when hijacking a connection
Signed-off-by: Denys Knertser <denys@avassa.io>
2024-03-14 19:40:44 +00:00
openshift-merge-bot[bot]
ce3be722f4
Merge pull request #22048 from openshift-cherrypick-robot/cherry-pick-22041-to-v5.0
[v5.0] Use faster gzip for compression for 3x build speedup for large context send to remote
2024-03-14 18:49:17 +00:00
Garth Bushell
8891d592b7 Use faster gzip for compression for 3x speedup for sending large contexts to remote
Signed-off-by: Garth Bushell <garth@garthy.com>
2024-03-14 17:21:59 +00:00
Paul Holzinger
59512272b3 pkg/machine: make checkExclusiveActiveVM race free
We need to take another lock to prevent concurrent starts from different
machines.

I manually tested it by starting three VM in parallel with:
podman machine start & podman machine start test1 & podman machine start test2

I also added a CI test that seems to work as expected (failed with the
old binary, worked with the new)

Before this patch I was able to start more than VM, with this patch it
now only starts one of them and the other ones will fail to start with
a proper error.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-14 17:19:13 +00:00
Paul Holzinger
51eee609ce pkg/machine/wsl: remove unused CheckExclusiveActiveVM()
This function is not used, it has been refactored in the general
starting good higher up the stack.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-14 17:19:13 +00:00
Paul Holzinger
412648207d pkg/machine: CheckExclusiveActiveVM should also check for starting
Also make the error message there better.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-14 17:19:13 +00:00
Paul Holzinger
1ca93f3fb6 pkg/machine: refresh config after we hold lock
Currently we first read the conf and then lock, this is racy because
while we wait for the lock another process might change the state so
the only way to have the actual current state is to read the file
while holding the lock.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-14 17:19:13 +00:00
openshift-merge-bot[bot]
4b718141c9
Merge pull request #22039 from openshift-cherrypick-robot/cherry-pick-22030-to-v5.0
[v5.0] [skip-ci] rpm: update containers-common dep on f40+
2024-03-14 13:44:00 +00:00
Lokesh Mandvekar
71320df8ee rpm: update containers-common dep on f40+
This commit bumps containers-common dep such that passt and netavark become hard
deps for podman on fedora 40+.
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=2269148

With this commit, f40+ envs will use the min name-version-release for
containers-common-extra while other deps will use whatever's available.
This change can be reverted after a few releases to keep conditionals to
a minimum.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-03-14 10:56:57 +00:00
openshift-merge-bot[bot]
075bf503ec
Merge pull request #22033 from Luap99/validate-test-included
Makefile: drop tests-included from validate target
2024-03-13 19:39:41 +00:00
openshift-merge-bot[bot]
358ac20a1e
Merge pull request #22028 from n1hility/fix-api-socket
Change API socket to be machine name isolated
2024-03-13 19:36:56 +00:00
openshift-merge-bot[bot]
87896d3f43
Merge pull request #21963 from mheon/release_notes_500
[CI:DOCS] Add release notes for v5.0.0
2024-03-13 18:36:28 +00:00
Jason T. Greene
e58cb97de1 Change API socket to be machine name isolated
- Fixes conflicts such as removal of second machine deleting a socket of a
  the first machine while it's running
- Move API socket into runtime directory for consistency
- Add API and gvproxy sockets to removal list
- Cleanup related logic

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-03-13 13:28:14 -05:00