Commit Graph

22154 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] e64d81481d
Merge pull request #22124 from diplane/annotations
Add support for annotations
2024-03-25 18:37:24 +00:00
openshift-merge-bot[bot] 5f5cd60a89
Merge pull request #22106 from containers/renovate/common-image-and-storage-deps
fix(deps): update github.com/containers/common digest to bc5f97c
2024-03-25 18:29:11 +00:00
openshift-merge-bot[bot] 099978ebca
Merge pull request #22150 from n1hility/pref-builtin-ssh
Use built-in ssh impl for all non-pty operations
2024-03-25 18:18:11 +00:00
Jason T. Greene 11415b3e74 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-24 21:25:22 -05:00
openshift-merge-bot[bot] 2aad385b51
Merge pull request #22131 from availhang/main
chore: remove repetitive words
2024-03-22 20:24:16 +00:00
openshift-merge-bot[bot] 4248d2f3e5
Merge pull request #22135 from Luap99/release-notes-5.0-env
[CI:DOCS] 5.0 release note fix typo in cgroupv1 env var
2024-03-22 19:50:56 +00:00
openshift-merge-bot[bot] d42a400373
Merge pull request #22133 from Luap99/remote-buildah-isolation-client
fix remote build isolation on client side
2024-03-22 19:48:14 +00:00
diplane 83fe867c14 Add support for annotations
Fix following issues:
- create container API handler ignores Annotations from HostConfig
- inspect container API handler does not provide Annotations as
  part of HostConfig

Signed-off-by: diplane <diplane3d@gmail.com>
2024-03-22 19:38:22 +00:00
Paul Holzinger 3c611c47e4
5.0 release note fix typo in cgroupv1 env var
The cgroupv1 warning uses PODMAN_IGNORE_CGROUPSV1_WARNING in the code
while the text says PODMAN_CGROUPSV1_WARNING.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-22 15:09:02 +01:00
openshift-merge-bot[bot] 4f76c7a0c7
Merge pull request #22120 from garthy/dont_stage_tarfile
Dont save remote build context in temp file but stream and extract
2024-03-22 13:34:11 +00:00
Paul Holzinger 3a9968ef81
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 11:49:47 +01:00
availhang 17aa152459 chore: remove repetitive words
Signed-off-by: availhang <mayangang@outlook.com>
2024-03-22 15:11:29 +08:00
Garth Bushell b2d0b92db2 Dont save remote context in temp file but stream and extract
Signed-off-by: Garth Bushell <garth@garthy.com>
2024-03-21 15:39:01 +00:00
openshift-merge-bot[bot] aaa6dc3cc6
Merge pull request #22112 from Luap99/remote-buildah-isolation
fix remote build isolation when server runs as root
2024-03-21 15:34:12 +00:00
openshift-merge-bot[bot] fcdff471da
Merge pull request #22054 from lsm5/main-bump-510-dev
bump main to 5.1.0-dev
2024-03-21 13:24:56 +00:00
Paul Holzinger 493179be45
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 14:17:55 +01:00
openshift-merge-bot[bot] b21ef16555
Merge pull request #22110 from giuseppe/fix-default-propagation-for-bind
util: use private propagation with bind
2024-03-21 12:38:11 +00:00
Giuseppe Scrivano 4740367330
util: use private propagation with bind
when the "bind" option is used, do not use the "rprivate" propagation
as it would inhibit the effect of "bind", instead default to "private".

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:58 +01:00
Giuseppe Scrivano 9a13b8f17d
util: add some tests for ProcessOptions
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:57 +01:00
Giuseppe Scrivano 50d764b0e6
util: refactor ProcessOptions into an internal function
this is needed to add tests for the function without accessing the
file system.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:02 +01:00
Giuseppe Scrivano 49ab250cf9
util: rename files to snake case
use the same convention used for other files.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:02 +01:00
openshift-merge-bot[bot] 8241cd0e59
Merge pull request #21481 from loongson-zjl/main
Add LoongArch support for libpod
2024-03-21 09:06:24 +00:00
JiaLing Zhang c03256e23c Add LoongArch support for libpod
Change Makefile.

[NO NEW TESTS NEEDED]

Signed-off-by: JiaLing Zhang <zhangjialing@loongson.cn>
2024-03-21 15:56:25 +08:00
openshift-merge-bot[bot] b3ce94b1d7
Merge pull request #22104 from containers/renovate/golangci-golangci-lint-1.x
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.1
2024-03-21 07:19:10 +00:00
renovate[bot] f2073ca397
fix(deps): update github.com/containers/common digest to bc5f97c
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-21 00:25:22 +00:00
openshift-merge-bot[bot] 68453daf65
Merge pull request #22100 from containers/renovate/go-github.com/docker/docker-vulnerability
fix(deps): update module github.com/docker/docker to v25.0.5+incompatible [security]
2024-03-20 21:10:25 +00:00
renovate[bot] 5e017a87a0
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 21:08:23 +00:00
openshift-merge-bot[bot] 7ccf4d22d6
Merge pull request #22099 from containers/renovate/github.com-onsi-gomega-1.x
fix(deps): update module github.com/onsi/gomega to v1.32.0
2024-03-20 21:07:40 +00:00
renovate[bot] 5fe1945e41
fix(deps): update module github.com/docker/docker to v25.0.5+incompatible [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 18:40:45 +00:00
renovate[bot] 77c4cb5721
fix(deps): update module github.com/onsi/gomega to v1.32.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 16:32:58 +00:00
openshift-merge-bot[bot] 4e77baec60
Merge pull request #22098 from containers/renovate/golangci-golangci-lint-1.x
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.0
2024-03-20 16:29:57 +00:00
renovate[bot] c66400f624
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 15:54:55 +00:00
openshift-merge-bot[bot] 3a327fa16e
Merge pull request #22096 from containers/renovate/github.com-cpuguy83-go-md2man-v2-2.x
Update module github.com/cpuguy83/go-md2man/v2 to v2.0.4
2024-03-20 15:54:11 +00:00
openshift-merge-bot[bot] 5bcafe7ae0
Merge pull request #22019 from saschagrunert/cri-o-annotations
Remove CRI-O related annotations
2024-03-20 15:51:29 +00:00
openshift-merge-bot[bot] d5a2c4166e
Merge pull request #22089 from edsantiago/minikube-debug
minikube: instrument tests, to allow debugging failures
2024-03-20 15:40:26 +00:00
openshift-merge-bot[bot] c35fa14616
Merge pull request #22083 from giuseppe/drop-conversion
utils: drop conversion float->string->float
2024-03-20 15:37:42 +00:00
openshift-merge-bot[bot] 8bfe9e4bba
Merge pull request #22081 from edsantiago/logformatter-windows
logformatter: handle Windows logs
2024-03-20 11:54:56 +00:00
openshift-merge-bot[bot] 2efbba0e34
Merge pull request #22080 from giuseppe/fix-duplicate-mapping-keep-id
utils: do not generate duplicate range
2024-03-20 11:52:10 +00:00
renovate[bot] a872003a2a
Update module github.com/cpuguy83/go-md2man/v2 to v2.0.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 11:43:15 +00:00
openshift-merge-bot[bot] e5059fcf19
Merge pull request #22079 from TomSweeneyRedHat/dev/tsweeney/cve-main
CVE-2024-1753 fix for main + pasta setup changes
2024-03-20 11:41:10 +00:00
openshift-merge-bot[bot] 1edbc2832b
Merge pull request #22091 from n1hility/fix-typeo
[CI:BUILD] Fix type-o
2024-03-19 20:11:39 +00:00
openshift-merge-bot[bot] d398b926b5
Merge pull request #22090 from n1hility/correct-extension
Use correct extension in suite
2024-03-19 19:41:26 +00:00
Jason T. Greene b1fd03f9f5 Fix type-o
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-03-19 13:27:42 -05:00
Jason T. Greene 3f2b8bb314 Use correct extension in suite
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-03-19 13:07:45 -05:00
Ed Santiago aa5c4879b4 minikube: instrument tests, to allow debugging failures
New run_minikube() helper, modeled after run_podman(). Echoes
each command being run and its output. On failure, runs minikube logs.

Addresses (does not close) #21931 which is hitting us hard in CI.
Probably quay flakes, but it's impossible to tell without logs.

Also: bug fix: one "run podman" fixed to run_podman

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-03-19 11:11:44 -06:00
Paul Holzinger 15b8bb72a8
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.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-19 12:21:18 +01:00
Paul Holzinger dc1795b4b2
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

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-19 12:09:31 +01:00
Giuseppe Scrivano 2566ee2f38
utils: drop conversion float->string->float
remove unclear conversion to string to handle float precision.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-18 23:06:06 +01:00
Giuseppe Scrivano 816c7279e1
utils: do not generate duplicate range
do not generate a duplicated range when --userns=keep-id:uid=0 or
--userns=keep-id:gid=0 are used.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-18 22:31:51 +01:00
Ed Santiago f16ab115ed logformatter: handle Windows logs
C-colon and backslashes and ^Ms oh my

Tested on sample failure and success logs, seems to work.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-03-18 15:28:24 -06:00