Commit graph

22146 commits

Author SHA1 Message Date
Lokesh Mandvekar
bf6422a5eb 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-14 17:00:47 +00:00
openshift-merge-bot[bot]
14f224d58b
Merge pull request #22665 from mheon/bump_503
Bump to v5.0.3
2024-05-10 17:56:11 +00:00
Matt Heon
fa382cb95c Bump to v5.0.4-dev
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-05-10 11:38:07 -04:00
Matt Heon
d08315df35
Bump to v5.0.3
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-05-10 11:37:14 -04:00
Matt Heon
db9561446d Update release notes for v5.0.3
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-05-10 11:36:52 -04:00
openshift-merge-bot[bot]
c5f5bf075a
Merge pull request #22664 from TomSweeneyRedHat/dev/tsweeney/v5.0_Buildah_1.35.4
[v5.0] Bump Buildah to v1.35.4 CVE-2024-3727
2024-05-10 15:14:00 +00:00
tomsweeneyredhat
2b6570d9be [v5.0] Bump Buildah to v1.35.4 CVE-2024-3727
Bump Buildah to v1.35.4, c/common to v0.58.3, and c/image to v5.30.

Addresses: CVE-2024-3727

https://issues.redhat.com/browse/OCPBUGS-33266
https://issues.redhat.com/browse/RHEL-35439
https://issues.redhat.com/browse/RHEL-35442

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-05-10 09:43:22 -04:00
openshift-merge-bot[bot]
0d996e1e88
Merge pull request #22656 from ashley-cui/cherryp-action
[v5.0] [CI:DOCS] Backport release actions
2024-05-10 13:01:58 +00:00
Ashley Cui
431b9ff41d [CI:DOCS] Fix artifact action
Fix a bug where the check uploads section didn't actually mark the os/arch to be built.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-05-09 09:50:20 -04:00
Ashley Cui
5c7632dd09 [CI:DOCS] Build & upload release artifacts with GitHub Actions
Add a new GitHub Action that builds and uploads release artifacts. This action is triggered by publishing a release on GitHub. The action will only build if the specfic artifact is missing.

This action also triggers the Windows installer action, since the Windows installer action depends on an uploaded artifact.

Note that the action runs on ubuntu-22.04

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-05-09 09:50:05 -04:00
openshift-merge-bot[bot]
a6f64a51b6
Merge pull request #22568 from ashley-cui/cherrypmounts
[v5.0] Fix machine volumes with long path and paths with dashes
2024-05-03 15:05:46 +00:00
Ashley Cui
49930a4c83 Fix machine volumes with long path and paths with dashes
AppleHV accepts a max 36 bytes for mount tags. Instead of using the fully qualified path for the mount tag, SHA256 the path, and truncate the shasum to 36 bytes.
Also correctly escape dashes in mounted paths.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-05-02 09:25:38 -04:00
Chris Evich
eb2b3e98c3 Disable failing bud test
This is a RHEL release-branch, with test failing for unknown reason,
not currently worth effort to debug.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-05-02 09:24:30 -04:00
openshift-merge-bot[bot]
0d1538a919
Merge pull request #22523 from openshift-cherrypick-robot/cherry-pick-22520-to-v5.0
[v5.0] [skip-ci] Remove unncessary lines at the end of specfile summary
2024-04-26 18:49:20 +00:00
joshua-stone
27f98f0697 Remove unncessary lines at the end of specfile summary
Signed-off-by: joshua-stone <joshua.gage.stone@gmail.com>
2024-04-26 18:44:31 +00:00
openshift-merge-bot[bot]
5fc761566b
Merge pull request #22416 from openshift-cherrypick-robot/cherry-pick-22253-to-v5.0
[v5.0] [CI:DOCS] Add GitHub action to update version on Podman.io
2024-04-18 14:11:18 +00:00
Ashley Cui
da08cd9c19 Add GitHub action to update version on Podman.io
Introduce a new GitHub action that will update Podman.io to the newest version of Podman. This action will run on a release being published to GitHub, or by clicking the run workflow button on GitHub. The action will check if the release version is higher than the current version on the website, and open a PR to update the version if a PR does not already exist. The commit will be signed off by the user who triggered the action, so whoever creates the release or presses the run workflow button. The PR will be opened by the podmanbot GitHub account.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-04-17 20:42:40 +00:00
openshift-merge-bot[bot]
58fdb37819
Merge pull request #22393 from mheon/bump_502
Bump to v5.0.2
2024-04-17 19:00:32 +00:00
Matt Heon
961422c8eb Bump to v5.0.3-dev
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-17 10:22:43 -04:00
Matt Heon
3304dd95b8 Bump to v5.0.2
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-17 10:22:43 -04:00
Matt Heon
96e78438d2 Update release notes for v5.0.2
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-17 10:22:43 -04:00
openshift-merge-bot[bot]
1981a2a9e0
Merge pull request #22405 from openshift-cherrypick-robot/cherry-pick-22403-to-v5.0
[v5.0] Emergency fix (well, skip) for failing bud tests
2024-04-17 13:45:32 +00:00
Ed Santiago
095b984243 Emergency fix (well, skip) for failing bud tests
nixery registry has been down all day. Disable test.

Someone will need to fix this on the buildah end.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-17 12:22:01 +00:00
openshift-merge-bot[bot]
04d45beb07
Merge pull request #22389 from Luap99/5.0-swagger
[v5.0] fix swagger doc
2024-04-16 15:02:38 +00:00
Paul Holzinger
d33cdd32f2
swagger fix infinitive recursion on some types
Commit 668d517af9 moved a lot of type definitions and by that also
copied a bucnh of swagger:model comments, this caused swagger to create
a incorrect yaml that can no longer be parsed by redoc due
"Self-referencing circular pointer".

The yaml basically defined the type with a name and the pointed to the
same name definition again so it caused a infinitive recursion where
redoc just throws an error but the swagger style ignored the case so it
seemed like it worked but obviously the type information was not
working.

Fixes #22351

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-16 12:08:53 +02:00
Paul Holzinger
3b4d2a183a
install swagger from source
First of all this removes the need for a network connection, second
renovate can update the version as it is tracked in go.mod.

However the real important part is that the binary downloads are
broken[1]. For some reason the swagger created with them does not
include all the type information for the examples. However when building
from source the same thing works fine.

[1] https://github.com/go-swagger/go-swagger/issues/2842

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-16 12:08:51 +02:00
Jhon Honce
3fbe579535
Update go-swagger version
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2024-04-16 12:07:04 +02:00
openshift-merge-bot[bot]
faf4548076
Merge pull request #22386 from TomSweeneyRedHat/dev/tsweeney/v5.0_common-0.58.2
[v5.0] Bump c/common to v0.58.2
2024-04-16 09:28:12 +00:00
tomsweeneyredhat
1d1be2b959 [v5.0] Bump c/common to v0.58.2
Bumping c/common to v0.58.2 in preparation for
Podman v5.0.2

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-04-15 16:27:51 -04:00
openshift-merge-bot[bot]
ea5834884d
Merge pull request #22335 from openshift-cherrypick-robot/cherry-pick-22332-to-v5.0
[v5.0] fix "concurrent map writes" in network ls compat endpoint
2024-04-11 10:41:20 +00:00
Paul Holzinger
2b93cdc32d fix "concurrent map writes" in network ls compat endpoint
Not sure why this only triggers now but this code was broken for a
while. It is racy as reported on the issue but because it changes the
actual map part of the network backend it means it can also alter the
behavior of the network which is very bad.

Fixes #22330

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-10 18:06:22 +00:00
openshift-merge-bot[bot]
0a8914d217
Merge pull request #22321 from openshift-cherrypick-robot/cherry-pick-22290-to-v5.0
[v5.0] Fix relabeling failures with Z/z volumes on Mac
2024-04-10 10:21:53 +00:00
Jason T. Greene
d1670573d0 Fix relabeling failures with Z/z volumes on Mac
Non-Linux systems, such as BSD kernels, constrain xatter updates
according to file permissions. This is in contrast to Linux selinux
attr writes, which are governed by an selinux policy. By dafault this
policy apllows users to relabel files owned by themselves even if file
perms would otherwise disallow write.

This results in robust container relabeling results on Linux, and
fragile results everywhere else. Therefore, change the mac policy to
force the nfs_t context on all files, and ignore all relabel
events.

As a side-effect, this will disallow any ability to store custom
selinux constants on files. However, this is of limited use in
a machine context, since files in these volumes are externally
managed on systems which do not support SELinux.

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-04-09 17:58:35 +00:00
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