Commit Graph

21626 Commits

Author SHA1 Message Date
OpenShift Merge Robot 52e1acf86c
Merge pull request #19850 from containers/renovate/actions-checkout-4.x
[skip-ci] Update actions/checkout action to v4
2023-09-05 22:48:08 +02:00
Matt Heon 71549c642f Ignore spurious container-removal errors
When removing a container's dependency, getting an error that the
container has already been removed (ErrNoSuchCtr and
ErrCtrRemoved) should not be fatal. We wanted the container gone,
it's gone, no need to error out.

[NO NEW TESTS NEEDED] This is a race and thus hard to test for.

Fixes #18874

Signed-off-by: Matt Heon <mheon@redhat.com>
2023-09-05 14:35:37 -04:00
renovate[bot] e5bf0f96d7
fix(deps): update module golang.org/x/net to v0.15.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 18:05:34 +00:00
Ed Santiago fdf694fcff systests: manifest zstd test: lots of tiny cleanups
Primarily, build test images FROM scratch, not alpine, to
avoid image pulls and network flakes and potential pull-
the-rug-out errors if the base alpine image changes.

This was much more complicated than it should've been,
because creating unique arch-specific FROM-scratch images
triggered a weird manifest bug, filed as #19860.

Also:
- add a teardown() to clean up manifests
- remove test for skopeo (skopeo is required for sys tests)
- remove unnecessary intermediate tmpdir
- deduplicate, by looping over amd+arm
- fix indentation
- and, finally, clean up dangling images (this was the initial
  reason behind my diving in here. Such a simple thing, I thought.)

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-09-05 11:36:29 -06:00
OpenShift Merge Robot 0e3b492faa
Merge pull request #19849 from giuseppe/increase-inotify-watchers
machine: increase max number of inotify instances
2023-09-05 05:24:11 +02:00
OpenShift Merge Robot 8914caf476
Merge pull request #19843 from giuseppe/clamp-oom-score-adj
linux, rootless: clamp oom_score_adj if it is too low
2023-09-05 01:27:22 +02:00
OpenShift Merge Robot 203c2b815a
Merge pull request #19854 from giuseppe/bump-runc-to-main
vendor: update github.com/opencontainers/runc to main
2023-09-05 01:24:41 +02:00
Giuseppe Scrivano 9730c03735
vendor: update github.com/opencontainers/runc to main
it is not possible yet to drop the override since the latest released
version has an indirect dependency on github.com/cilium/ebpf that
causes the binary to grow by ~1MB.  Once there is a new runc version,
we can drop the override.

For now just bump to the latest version on main, since we are using a
year old version at this point.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-09-04 15:58:23 +02:00
renovate[bot] e825bd5d5e
[skip-ci] Update actions/checkout action to v4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-04 12:51:33 +00:00
Giuseppe Scrivano 8b4a79a744
linux, rootless: clamp oom_score_adj if it is too low
when running rootless, if the specified oom_score_adj for the
container process is lower than the current value, clamp it to the
current value and print a warning.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-09-04 14:44:14 +02:00
Giuseppe Scrivano 681b6db3f3
machine: increase max number of inotify instances
increase the number of inotify instances to 524288 instead of using
the default value of 128.

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

[NO NEW TESTS NEEDED]

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-09-04 14:02:57 +02:00
OpenShift Merge Robot 9bcab496e7
Merge pull request #19835 from Juneezee/refactor/redundant-nil-check
Remove redundant nil checks in system connection remove
2023-09-04 08:48:13 +02:00
OpenShift Merge Robot 8f7453f9c8
Merge pull request #19840 from containers/renovate/golang.org-x-term-0.x
fix(deps): update module golang.org/x/term to v0.12.0
2023-09-04 08:43:05 +02:00
renovate[bot] 302d153347
fix(deps): update module golang.org/x/term to v0.12.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-03 17:23:15 +00:00
OpenShift Merge Robot d58fe4e68e
Merge pull request #19837 from containers/renovate/golang.org-x-text-0.x
fix(deps): update module golang.org/x/text to v0.13.0
2023-09-03 15:36:10 +02:00
OpenShift Merge Robot d6b538a794
Merge pull request #19836 from containers/renovate/golang.org-x-sys-0.x
fix(deps): update module golang.org/x/sys to v0.12.0
2023-09-03 15:32:45 +02:00
OpenShift Merge Robot 6f43c9f10d
Merge pull request #19833 from containers/renovate/github.com-containers-libhvee-digest
fix(deps): update github.com/containers/libhvee digest to 2bf7930
2023-09-03 15:27:36 +02:00
Eng Zer Jun f094884c1b
Remove redundant nil checks in system connection remove
From the Go specification:

  "3. If the map is nil, the number of iterations is 0." [1]

Therefore, an additional nil check for before the loop is unnecessary.

[NO NEW TESTS NEEDED]

[1]: https://go.dev/ref/spec#For_range

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-09-03 15:42:41 +08:00
renovate[bot] 17037af48f
fix(deps): update module golang.org/x/text to v0.13.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 14:20:51 +00:00
OpenShift Merge Robot 1361fa2304
Merge pull request #19820 from ashley-cui/gvproxytest
Add port forwarding and gvproxy machine test
2023-09-02 16:19:21 +02:00
renovate[bot] 1d51cd14a9
fix(deps): update module golang.org/x/sys to v0.12.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 13:48:35 +00:00
renovate[bot] f542d21a76
fix(deps): update github.com/containers/libhvee digest to 2bf7930
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-02 01:29:09 +00:00
OpenShift Merge Robot ab579a90a8
Merge pull request #19831 from noritada/fix/readme-broken-link
[CI:DOCS] Fix a broken link in README
2023-09-01 22:12:40 +02:00
OpenShift Merge Robot 7cde6ab521
Merge pull request #19477 from lsm5/copr-rpm-fcos
[CI:BUILD] Podman FCOS image from main
2023-09-01 20:35:49 +02:00
Noritada Kobayashi d4fedb288c docs(readme): fix a broken link
The destination `pkg/hooks/README.md` has been moved to a separate
project.

Fixes: ffe5da20a0 ("pkg,libpod: remove pkg/hooks and use hooks from c/common")
Signed-off-by: Noritada Kobayashi <noritada.kobayashi@gmail.com>
2023-09-01 23:07:28 +09:00
Lokesh Mandvekar 50cd072bf6
[CI:BUILD] Podman FCOS image from main
Fixes: #19446, #19447, #19448

[NO NEW TESTS NEEDED]

Co-authored-by: Chris Evich <cevich@redhat.com>
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-09-01 09:50:59 -04:00
OpenShift Merge Robot 99a5347c6d
Merge pull request #19816 from giuseppe/fix-parsing-base
libpod: do not parse --hostuser in base 8
2023-09-01 08:55:28 +02:00
OpenShift Merge Robot 3033f1e9e2
Merge pull request #19826 from containers/renovate/golang.org-x-exp-digest
Update golang.org/x/exp digest to d852ddb
2023-09-01 08:39:56 +02:00
renovate[bot] 58a0b7ac82
Update golang.org/x/exp digest to d852ddb
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-01 02:19:27 +00:00
OpenShift Merge Robot 66fa48af42
Merge pull request #19804 from nishipy/ja_index
[CI:DOCS] Add Japanese locale and translation of index
2023-08-31 22:47:37 +02:00
Ashley Cui fe7bafb83c Add port forwarding and gvproxy machine test
Added a test that checks that gvproxy properly starts and stops when running podman machine, and that containers properly forward ports to the host when running podman using machine.

Signed-off-by: Ashley Cui <acui@redhat.com>
2023-08-31 10:19:35 -04:00
Daniel J Walsh c2f34ed869
Merge pull request #19818 from testwill/typo
fix: default typo
2023-08-31 06:42:32 -04:00
Giuseppe Scrivano 702709a916
libpod: do not parse --hostuser in base 8
fix the parsing of --hostuser to treat the input in base 10.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-08-31 12:34:58 +02:00
guoguangwu 13342e5039 fix: default typo
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-08-31 18:14:59 +08:00
OpenShift Merge Robot 77fe460d13
Merge pull request #19805 from vrothberg/fix-19801
kube play: fix pull policy
2023-08-31 11:10:35 +02:00
OpenShift Merge Robot 779bc49967
Merge pull request #19802 from edsantiago/e2e_exit_cleanly_matcher
e2e: new ExitCleanly matcher
2023-08-31 10:49:26 +02:00
Takuya Nishimura 3a6fc8d2b7 Add Japanese locale and translation of index
Signed-off-by: Takuya Nishimura <goodisonev4@gmail.com>

Fix typo

Signed-off-by: Takuya Nishimura <goodisonev4@gmail.com>

Fix typo

Signed-off-by: Takuya Nishimura <goodisonev4@gmail.com>
2023-08-31 13:53:48 +09:00
OpenShift Merge Robot 9320efe0b8
Merge pull request #19814 from lsm5/remove-rhcontainerbot-email
remove rh.container.bot@gmail.com
2023-08-30 23:16:40 +02:00
OpenShift Merge Robot 2194bd098b
Merge pull request #19812 from baude/hypervciprep
Tweaks and cleanups to prepare hyperv for CI
2023-08-30 23:11:08 +02:00
OpenShift Merge Robot e5ab4fbc52
Merge pull request #19810 from edsantiago/bats_cleanup
system tests: housekeeping: various small fixes
2023-08-30 22:19:43 +02:00
OpenShift Merge Robot bb9256a39d
Merge pull request #19808 from zeehio/minor-doc-fixes
[CI:DOCS] Fix gidmap command in example
2023-08-30 22:17:10 +02:00
OpenShift Merge Robot bd7579a62a
Merge pull request #19806 from vrothberg/vendor-common
vendor containers/common@12405381ff
2023-08-30 22:14:35 +02:00
OpenShift Merge Robot 4051a8a23f
Merge pull request #19790 from flouthoc/conf_add_compression
manifest,push: support `add_compression` from `containers.conf`
2023-08-30 22:11:57 +02:00
Lokesh Mandvekar 39c5b7face
remove rh.container.bot@gmail.com
Don't need this email as we have podman-monitor email listed wherever
relevant.

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-08-30 15:01:16 -04:00
Brent Baude a62abfe3d6 Tweaks and cleanups to prepare hyperv for CI
Small fixes for bugs in the hyperv code that were made obvious when
manually preparing to run pkg/machine/e2e with windows and hyperv.

Also includes vendoring a new libhvee and solves bug where json config
was not being removed.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-08-30 12:44:50 -05:00
Ed Santiago a0738e7e68 system tests: housekeeping: various small fixes
Fix unquoted string vars. Something like this:

   is $output "what we expect"

...will fail with a misleading error message if $output is "".

Also fix typos in a diagnostic; this was causing unhelpful message
on failure

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-08-30 10:06:16 -06:00
Ed Santiago 4082b67f6e CI: e2e: first use of new ExitCleanly() matcher
A nearly-trivial first effort to use the new ExitCleanly().
Requires using the new CITEST_IMAGE (see prior commit)
because nginx causes the tests to fail:

   [FAILED] Unexpected warnings seen on stderr: \
            level=warning \
            msg="HEALTHCHECK is not supported for OCI image format ...

Oh, I also took the liberty of rewriting "play kube" -> "kube play".

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-08-30 08:41:25 -06:00
Ed Santiago 6cbd17c0f4 CI: e2e: new ginkgo matcher, ExitCleanly()
Combined test for (exitcode == 0) && (nothing on stderr).
Returns more useful diagnostic messages than the default:

  old: Expected N to equal 0

  new: Command failed with exit status N
  new: Unexpected warnings seen on stderr: "...."

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-08-30 08:41:23 -06:00
Ed Santiago da1246d587 CI: e2e: fetch the standard system-test image
Finally, after so many years, let's start using testimage:YYYYMMDD.
Use it in place of LABELS_IMAGE, which nothing/nowhere was using.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-08-30 08:11:43 -06:00
Valentin Rothberg d20b5869f8 kube play: fix pull policy
Use the `newer` pull policy only for the "latest" tag and default to
using `missing` otherwise.  This speeds up `kube play` as it'll skip
reaching out to the registry and also fixes other side-effects described
in #19801.

Fixes: #19801
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-08-30 13:49:49 +02:00