Commit graph

20250 commits

Author SHA1 Message Date
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
Lokesh Mandvekar
7845dd175a
New pre-release: v4.7.0-rc1
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-15 16:54:05 -04:00
Lokesh Mandvekar
49f76e95ec
[CI:DOCS] Update release notes for v4.7.0-rc1
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-15 16:53:55 -04:00
Lokesh Mandvekar
fa6f94001b
Cirrus: Update operating branch
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-15 08:29:21 -04:00
OpenShift Merge Robot
3e4e39d1e8
Merge pull request #19984 from lsm5/main-release-notes
[CI:DOCS] bump release notes on main with the latest release
2023-09-15 13:10:38 +02:00
OpenShift Merge Robot
d501d45c74
Merge pull request #19981 from containers/renovate/github.com-opencontainers-image-spec-1.x
fix(deps): update module github.com/opencontainers/image-spec to v1.1.0-rc5
2023-09-15 12:57:05 +02:00
OpenShift Merge Robot
3f8f4946ee
Merge pull request #19979 from edsantiago/ci_trace_setup
CI: trace setup and runner scripts
2023-09-15 12:41:46 +02:00
OpenShift Merge Robot
c361d076b4
Merge pull request #19960 from umohnani8/build-common
Move podman build opts to common file
2023-09-15 12:39:06 +02:00
OpenShift Merge Robot
348f9fe0d9
Merge pull request #19988 from baude/wslrmdashf
Add ability for machine rm -f for WSL
2023-09-15 10:36:35 +02:00
OpenShift Merge Robot
04b85765e5
Merge pull request #19972 from baude/hypervenablee2e
Plumbing to run machine tests with hyperv
2023-09-15 10:16:45 +02:00
Urvashi Mohnani
0728a10c65 Move podman build opts to common file
Move the podman build opts to cmd/common so that
it can be used by podman build and podman farm build
[NO NEW TESTS NEEDED]

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2023-09-14 20:48:33 -04:00
OpenShift Merge Robot
e106d6e49f
Merge pull request #19985 from TomSweeneyRedHat/dev/tsweeney/buildahbump_1.32.0
Bump to Buildah v1.32.0
2023-09-15 01:08:53 +02:00
Brent Baude
8a9f778e23 Add ability for machine rm -f for WSL
When passing the force flag to machine rm, wsl needs to stop the VM if
it is running before attempting to remove it.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-09-14 17:18:01 -05:00
Brent Baude
919dce1315 Plumbing to run machine tests with hyperv
this pr has the basic plumbing that allows the e2e machine tests to run
with the hyperv provider.

it requires a special fcos image right now because gvforwarder was not
in the upstream fcos images for hyperv.

changed the way "provider" is set; moved GetProvider functions to
pkg/machine/provider.  provider is now set at the machine level.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-09-14 15:57:35 -05:00
Ed Santiago
ade0c4932a CI: trace setup and runner scripts
Every few months we get a new CI failure that requires
scanning through logs that give no indication of what
is happening or where. Tracking down the error can
cost many hours.

Solution: pepper cirrus scripts with showrun(), which echoes
the command _and_ displays the source filename + lineno.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-09-14 14:44:03 -06:00
TomSweeneyRedHat
c37443e8b2 Bump to Buildah v1.32.0
As the title says.  This is in preparation for
Podman v4.7.0

[NO NEW TESTS NEEDED]

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2023-09-14 15:59:44 -04:00
OpenShift Merge Robot
7c05595e33
Merge pull request #19980 from rhatdan/completions
Add --filter pod= autocompletion
2023-09-14 21:49:28 +02:00
Lokesh Mandvekar
9b36f334d3
[CI:DOCS] bump release notes on main with the latest release
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-14 15:47:41 -04:00
renovate[bot]
cae110f8bb
fix(deps): update module github.com/opencontainers/image-spec to v1.1.0-rc5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 19:10:02 +00:00