Commit graph

20268 commits

Author SHA1 Message Date
openshift-merge-bot[bot]
482de43bb2
Merge pull request #21350 from cevich/no_mo_47
[v4.7] Disable CI
2024-01-24 21:10:06 +00:00
Chris Evich
8385230ff9
[v4.7] Disable CI
This branch is no longer maintained, therefore no CI will ever be needed
on it ever again.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-01-24 14:33:04 -05:00
Daniel J Walsh
0f69a09355
Merge pull request #20514 from openshift-cherrypick-robot/cherry-pick-20510-to-v4.7
[v4.7] Do not add powercap mask if no paths are masked
2023-11-17 06:24:07 -05:00
Lokesh Mandvekar
b1e522bfa3
Merge pull request #20544 from lsm5/472-bump
Bump to v4.7.2
2023-10-31 19:14:45 +05:30
Lokesh Mandvekar
1c0ac61e9a
bump to v4.7.3-dev
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2023-10-31 17:29:17 +05:30
Lokesh Mandvekar
750b4c3a7c
v4.7.2
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2023-10-31 17:29:17 +05:30
Lokesh Mandvekar
23d1d4b8f6
Update RELEASE_NOTES.md for v4.7.2
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2023-10-31 17:29:12 +05:30
Lokesh Mandvekar
8d255c8fa7
Merge pull request #20534 from mheon/vendor_buildah_1321
[v4.7] Vendor Buildah v1.32.2
2023-10-31 16:58:07 +05:30
Matt Heon
a03549f46e Vendor Buildah v1.32.2
Signed-off-by: Matt Heon <mheon@redhat.com>
2023-10-30 14:30:42 -04:00
openshift-ci[bot]
7f2852706e
Merge pull request #20512 from openshift-cherrypick-robot/cherry-pick-20508-to-v4.7
[v4.7] compose: try all possible providers before throwing an error
2023-10-27 16:06:35 +00:00
Matthew Heon
0b2738d9bd Do not add powercap mask if no paths are masked
This solves `--security-opt unmask=ALL` still masking the path.

[NO NEW TESTS NEEDED] Can't easily test this as we do not have
access to it in CI.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2023-10-27 16:01:13 +00:00
Matt Heon
801ca64d44
Merge pull request #20509 from openshift-cherrypick-robot/cherry-pick-20501-to-v4.7
[v4.7] Mask /sys/devices/virtual/powercap
2023-10-27 12:00:22 -04:00
Valentin Rothberg
4efa973a3a compose: try all possible providers before throwing an error
Do not error out immediately but collect all errors and report them if
no candidate succeeded.  That'll fix #20502 and improve the quality of
reported errors.

[NO NEW TESTS NEEDED]

Fixes: #20502
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-10-27 14:50:19 +00:00
Matt Heon
afb7d7e52b
Merge pull request #20491 from vrothberg/cherry-pick-20478-to-v4.7
[4.7] fix: check wsl npipe when executing podman compose
2023-10-27 10:17:06 -04:00
Matthew Heon
bd86a52f09 Mask /sys/devices/virtual/powercap
I don't really like this solution because it can't be undone by
`--security-opt unmask=all` but I don't see another way to make
this retroactive. We can potentially change things up to do this
the right way with 5.0 (actually have it in the list of masked
paths, as opposed to adding at spec finalization as now).

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2023-10-27 11:55:42 +00:00
lstocchi
0341384f26 fix: check wsl npipe when executing podman compose
[NO NEW TESTS NEEDED]

Signed-off-by: lstocchi <lstocchi@redhat.com>
Cherry-picked-by: Valentin Rothberg <vrothberg@redhat.com>
2023-10-26 12:39:03 +02:00
openshift-ci[bot]
85b5f57234
Merge pull request #20341 from openshift-cherrypick-robot/cherry-pick-20340-to-v4.7
[v4.7] [CI:DOCS]rtd: implement v2 build file
2023-10-12 13:00:31 +00:00
Brent Baude
d1cb93d792 rtd: implement v2 build file
readthedocs has moved to a new build configuration and our builds are
failing because we have exceeded the grace time.  this pr puts in
compliance with their build system and should allow automatic builds of
our documentation to resume

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-10-11 20:41:28 +00:00
openshift-ci[bot]
bb57ffb58b
Merge pull request #20303 from openshift-cherrypick-robot/cherry-pick-20266-to-v4.7
[v4.7] Adjust to path name change for resolved unit on WSL backend
2023-10-09 13:29:19 +00:00
Jason T. Greene
8d045d4c90 Adjust to path name change for resolved unit
Leave the legacy name around for now

[NO NEW TESTS NEEDED]

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2023-10-08 14:20:12 +00:00
openshift-ci[bot]
1670855878
Merge pull request #20272 from lsm5/471-bump
New release: v4.7.1
2023-10-05 16:51:48 +00:00
Lokesh Mandvekar
eb5b5dbc89
Switch version to 4.7.2-dev
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-10-05 09:21:29 -04:00
Lokesh Mandvekar
ef83eeb9c7
New version: v4.7.1
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-10-05 09:21:06 -04:00
Lokesh Mandvekar
cc5acabf04
Update RELEASE_NOTES.md for v4.7.1
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-10-05 09:14:40 -04:00
openshift-ci[bot]
c3efd2553c
Merge pull request #20269 from Luap99/v4.7
[v4.7] Fix env-file regssion + more backports
2023-10-05 12:45:11 +00:00
Paul Holzinger
4564504387
compat API: speed up network list
The network list compat API requires us to include all containers with
their ip addresses for the selected networks. Because we have no network
-> container mapping in the db we have to go through all containers
every time. However the old code did it in the most ineffective way
possible, it quered the containers from the db for each individual
network. The of course is extremely expensive. Now the other expensive
call is calling Inspect() on the container each time. Inspect does for
more than we need.

To fix this we fist query containers only once for the API call, then
replace the inspect call with directly accessing the network status.
This will speed things up a lot!
The reported scenario includes 100 containers and 25 networks,
previously it took 1.5s for the API call not it takes 24ms, that is a
more than a 62x improvement. (tested with curl)

[NO NEW TESTS NEEDED] We have no timing tests.

Fixes #20035

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 12:18:39 +02:00
Paul Holzinger
a2efda96d4
inspect: ignore ENOENT during device lookup
When we walk the /dev tree we need to lookup all device paths. Now in
order to get the major and minor version we have to actually stat each
device. This can again fail of course. There is at least a race between
the readdir at stat call so it must ignore ENOENT errors to avoid
the race condition as this is not a user problem. Second, we should
also not return other errors and just log them instead, returning an
error means stopping the walk and returning early which means inspect
fails with an error which would be bad.

Also there seems to be cases were ENOENT will be returned all the time,
e.g. when a device is forcefully removed. In the reported bug this is
triggered with iSCSI devices.

Because the caller does already lookup the device from the created map
it reports a warning there if the device is missing on the host so it
is not a problem to ignore a error during lookup here.

[NO NEW TESTS NEEDED] Requires special device setup to trigger
consistentlyand we cannot do that in CI.

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

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 12:17:44 +02:00
Paul Holzinger
f931f08a7e
test/system: --env-file test fixes
Now that the newline env file change is reverted we have to adapt the
tests.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 12:16:04 +02:00
Paul Holzinger
297a66c303
Revert "feat(env): support multiline in env-file"
This reverts commit 170a78631b.

This was a breaking change and users are hitting it,
see https://github.com/containers/podman/issues/19565

Fixes #19565

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 12:16:04 +02:00
Paul Holzinger
46a85e0549
Revert "docs(env-file): improve document description"
This reverts commit c67ef7c1a1.

see https://github.com/containers/podman/issues/19565

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 12:16:04 +02:00
Paul Holzinger
6afddf430d
Revert "fix(env): parsing --env incorrect in cli"
This reverts commit 7ce654fea3.

see https://github.com/containers/podman/issues/19565

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 12:16:04 +02:00
Paul Holzinger
c5ca7e5fcb
[CI:DOCS] update swagger version on docs.podman.io
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 12:13:33 +02:00
openshift-ci[bot]
e82b43475f
Merge pull request #20243 from openshift-cherrypick-robot/cherry-pick-20240-to-v4.7
[v4.7] Fix locale issues with WSL version detection
2023-10-03 15:48:57 +00:00
Jason T. Greene
51ee25d3f8 Fix locale issues with WSL version detection
Since wsl --version triggers help, which triggers an error code,
use that instead of text detection.

[NO NEW TESTS NEEDED]

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2023-10-03 13:47:35 +00:00
OpenShift Merge Robot
16a7630c47
Merge pull request #20172 from lsm5/470-bump
New release: v4.7.0
2023-09-27 13:39:43 -04:00
Lokesh Mandvekar
4d15c88a93
switch version to 4.7.1-dev
[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-27 11:35:55 -04:00
Lokesh Mandvekar
073183fe17
Bump to v4.7.0
[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-27 11:35:55 -04:00
Lokesh Mandvekar
44f727fb01
[CI:DOCS] v4.7.0 RELEASE_NOTES update
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-27 11:35:47 -04:00
OpenShift Merge Robot
37169cdeee
Merge pull request #20131 from openshift-cherrypick-robot/cherry-pick-20039-to-v4.7
[v4.7] [CI:BUILD] rpm: remove gvproxy subpackage
2023-09-25 10:57:27 -04:00
Lokesh Mandvekar
2d32314d26 rpm: remove gvproxy subpackage
gvisor-tap-vsock is now a standalone package for Fedora 38 and higher so
we can simplify the rpm spec a lot by removing all subpackage
references.

If we need to bump podman on Fedora 37, that can be handled manually on
Fedora itself. The Packit config can be left unchanged. Any packit PRs created on
Fedora dist-git for Fedora 37 can simply be closed without merging.
Fedora 37 will go EOL soon so not much of a point to changing packit
config to exclude Fedora 37.

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-25 14:27:18 +00:00
OpenShift Merge Robot
ccd3649526
Merge pull request #20096 from openshift-cherrypick-robot/cherry-pick-20086-to-v4.7
[v4.7] specgen, rootless: fix mount of cgroup without a netns
2023-09-25 04:42:49 -04:00
OpenShift Merge Robot
79e0d2af41
Merge pull request #20106 from openshift-cherrypick-robot/cherry-pick-20061-to-v4.7
[v4.7] [CI:BUILD] packit: tag @containers/packit-build team on copr build failure
2023-09-22 14:45:43 -04:00
Lokesh Mandvekar
a2697c0284 packit: tag @containers/packit-build team on copr build failures
This change will auto-tag @containers/packit-build in a github comment on every copr build failure.

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-22 17:20:09 +00:00
OpenShift Merge Robot
1868c7c26d
Merge pull request #20095 from openshift-cherrypick-robot/cherry-pick-20062-to-v4.7
[v4.7] pass --syslog to the cleanup process
2023-09-22 06:49:44 -04:00
Giuseppe Scrivano
54ce0ca7c7 specgen, rootless: fix mount of cgroup without a netns
commit cf364703fc changed the way
/sys/fs/cgroup is mounted when there is not a netns and it now honors
the ro flag.  The mount was created using a bind mount that is a
problem when using a cgroup namespace, fix that by mounting a fresh
cgroup file system.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-09-22 09:08:53 +00:00
Valentin Rothberg
d2f9af717a pass --syslog to the cleanup process
The --syslog flag has not been passed to the cleanup process (i.e.,
conmon's exit args) complicating debugging quite a bit.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-09-22 08:26:52 +00:00
OpenShift Merge Robot
7f72989f71
Merge pull request #20059 from openshift-cherrypick-robot/cherry-pick-20057-to-v4.7
[v4.7] fix --authfile auto-update test
2023-09-20 16:34:11 +02:00
Valentin Rothberg
133e3a4f2e fix --authfile auto-update test
The test started to fail in gating and on workstations.  It turned out
that pushing the test image to the registry recompresses it which in
turn may change the digest.  The digest now started to change; computing
it depends on the toolchain so the test passed before by pure luck it
seems.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-09-20 13:06:48 +00:00
OpenShift Merge Robot
025e14723f
Merge pull request #19998 from lsm5/470rc1
New pre-release: v4.7.0-rc1
2023-09-16 00:47:25 +02:00
Lokesh Mandvekar
2c62815e16
version: switch back from -rc1 to -dev
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-15 16:54:05 -04:00