19438 Commits

Author SHA1 Message Date
c27cda7c99 fix(deps): update module golang.org/x/sync to v0.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-04 17:54:13 +00:00
d9164c95d7 Merge pull request #18467 from containers/renovate/requests-2.x
chore(deps): update dependency requests to ~=2.30.0
2023-05-04 13:52:19 -04:00
773b457048 chore(deps): update dependency requests to ~=2.30.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-04 16:51:16 +00:00
54952270ce Merge pull request #18453 from containers/renovate/common-image-and-storage-deps
fix(deps): update github.com/containers/common digest to ea87b34
2023-05-04 12:50:07 -04:00
071bc5c93e Merge pull request #18464 from edsantiago/ginkgo_logs_optional
ginkgo json output: only in CI, not on laptop runs
2023-05-04 12:44:56 -04:00
0c070ebfbd ginkgo json output: only in CI, not on laptop runs
Followup to #18422: disable --json-report except under CI, which
is where it's useful.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-05-04 08:18:30 -06:00
d1a696acb7 Merge pull request #18385 from dcermak/setup-env-in-init-containers
Run generate.CompleteSpec() for initContainers as well
2023-05-04 10:12:40 -04:00
73d3487cce Allow user quadlets to be stored under /etc
I would like to allow admin to control quadlet containers
in users homedirs.

If an admin sets a quadlet in
/etc/containers/systemd/users, then all users will run these
quadlet services when they login.

If an admin places a quadlet in /etc/containers/systemd/users/$(USERNAME)
then only the USERNAME will execute this quadlet service when
they login.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-05-04 10:06:41 -04:00
8bfb27a3ce Merge pull request #18462 from Luap99/no-cleanup-twice
libpod: do not Cleanup() more than once
2023-05-04 09:55:06 -04:00
4f8a84a310 Merge pull request #18219 from stellarpower/patch-1
[CI:DOCS] Add mention of redir to doc `rootless.md`
2023-05-04 09:36:35 -04:00
41f5fcfd29 Merge pull request #18458 from Luap99/docker-dup-volume
compat container create: match duplicate mounts correctly
2023-05-04 09:34:01 -04:00
334adac745 fix(deps): update github.com/containers/common digest to ea87b34
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-04 13:32:22 +00:00
377b834245 Merge pull request #18455 from containers/renovate/github.com-containers-buildah-digest
fix(deps): update github.com/containers/buildah digest to e925b58
2023-05-04 09:10:46 -04:00
95557a532e libpod: do not Cleanup() more than once
If the container was already cleaned up we should not try to do it
again. Podman stop will always try to call Cleanup() if you look at the
podman event log and just keep calling podman stop --all you see a
cleanup event every time. This is not wanted. Also in case of the host
pidns we report a error every single time, see the linked issue.

Fixes #18460

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-05-04 13:53:40 +02:00
b5387da839 Merge pull request #18456 from hussam-qasem/patch-1
[CI:DOCS] Update podman-completion.1.md
2023-05-04 06:10:47 -04:00
df9344ac4b compat container create: match duplicate mounts correctly
The logic which checks for duplicated volumes here did not work
correctly because it used filepath.Clean(). However the writes to the
volDestinations map did not thus the string no longer matched when you
included a final slash for example.

So we can either call Clean() on all or no paths. I decided to call it
on no path because this is what we do right now. Just the check did it.

Fixed #18454

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-05-04 11:57:02 +02:00
42c8227209 Update podman-completion.1.md
Remove extra period.

Signed-off-by: Hussam Qasem <68053227+hussam-qasem@users.noreply.github.com>
2023-05-04 11:24:24 +03:00
4acc1a14a8 Merge pull request #18451 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.9.4
2023-05-04 04:05:45 -04:00
3d56e4f3ab fix(deps): update github.com/containers/buildah digest to e925b58
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-04 06:35:57 +00:00
75d92f41d8 Run generate.CompleteSpec() for initContainers as well
initContainers in kubernetes deployments had no call to CompleteSpec in the
generation, which means that the default environment is not configured for
these. This causes issues with missing default environment variables like $HOME
or $PÄTH.

Also, switch to using logrus.Warn() instead of fmt.Fprintf(os.Stderr)

This fixes https://github.com/containers/podman/issues/18384

Co-authored-by: Ed Santiago <santiago@redhat.com>
Signed-off-by: Dan Čermák <dcermak@suse.com>
2023-05-04 08:21:57 +02:00
d25356c303 fix(deps): update module github.com/onsi/ginkgo/v2 to v2.9.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-03 22:33:15 +00:00
b98960d1cb Merge pull request #18441 from Luap99/remote-connect-err
remote: return better connect error
2023-05-03 18:27:34 -04:00
8308a6f24f Merge pull request #18367 from rhatdan/man
[CI:DOCS]  Add missing man page links for Docker man pages
2023-05-03 16:28:56 -04:00
e40c920b01 Merge pull request #18440 from edsantiago/egrep_deprecated
Replace egrep/fgrep with grep -E/-F
2023-05-03 12:28:21 -04:00
021b702585 Merge pull request #18437 from Luap99/exec-inspect-remote
remote: exec inspect update exec session status
2023-05-03 12:25:50 -04:00
df8cc7af33 remote: return better connect error
We have a spacial logic to create a better user error that hints at
podman machine, however because we string matched it missed the case of
the ssh connection.

Stop doing string comparison and return a proper error and match it with
errors.As()

[NO NEW TESTS NEEDED]

see https://github.com/containers/podman/discussions/18426

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-05-03 18:19:58 +02:00
b638341bcb Merge pull request #18393 from containers/renovate/github.com-digitalocean-go-qemu-digest
fix(deps): update github.com/digitalocean/go-qemu digest to f035778
2023-05-03 10:28:11 -04:00
61985a6104 Add missing man page links for Docker man pages
Generate all docker man pages to match podman man pages
including links.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-05-03 10:26:30 -04:00
cf29dad400 Merge pull request #18402 from baude/applehvpass1
MVP for Podman Machine with AppleHV
2023-05-03 10:17:51 -04:00
f877d7dcd0 Replace egrep/fgrep with grep -E/-F
There are days when I really, really, really hate GNU. Remember
when someone decided that 'head -1' would no longer work, and
that it was OK to break an infinite number of legacy production
scripts? Someone now decided that egrep/fgrep are deprecated,
and our CI logs (especially pr-should-include-tests) are now
filled with hundreds of warning lines, making it difficult
to find actual errors.

I expect that those warnings will be removed quickly after
furious community backlash, just like the 'head -1' fiasco
was quietly reverted, but ITM the warnings are annoying
so I capitulate.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-05-03 07:32:42 -06:00
19aabf440e remote: exec inspect update exec session status
The remote API will wait 300s by default before conmon will call the
cleanup. In the meantime when you inspect an exec session started with
ExecStart() (so not attached) and it did exit we do not know that. If
a caller inspects it they think it is still running. To prevent this we
should sync the session based on the exec pid and update the state
accordingly.

For a reproducer see the test in this commit or the issue.

Fixes #18424

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-05-03 14:54:00 +02:00
f149d49335 Merge pull request #18394 from containers/renovate/github.com-godbus-dbus-v5-digest
fix(deps): update github.com/godbus/dbus/v5 digest to 6cc540d
2023-05-03 08:17:44 -04:00
1502e2258c Merge pull request #18433 from containers/renovate/github.com-containers-buildah-digest
fix(deps): update github.com/containers/buildah digest to f353690
2023-05-03 07:16:05 -04:00
a4e37ad659 Merge pull request #18354 from Luap99/reset
system reset: show graphRoot/runRoot before removal
2023-05-03 05:26:01 -04:00
0d9b5f6f6e Merge pull request #18429 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.9.3
2023-05-03 05:20:02 -04:00
ac61657504 Merge pull request #18418 from containers/renovate/github.com-moby-term-0.x
fix(deps): update module github.com/moby/term to v0.5.0
2023-05-03 05:17:02 -04:00
305bad1846 fix(deps): update github.com/digitalocean/go-qemu digest to f035778
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-03 09:16:54 +00:00
999c620d5a fix(deps): update github.com/godbus/dbus/v5 digest to 6cc540d
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-03 09:15:18 +00:00
38f9935432 fix(deps): update github.com/containers/buildah digest to f353690
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-03 08:13:50 +00:00
04c45cebcd Merge pull request #18411 from flouthoc/bindings-fix-invalid-platform
bindings, build: don't pass invalid platform in case of none
2023-05-03 04:12:02 -04:00
1b2b0d0315 fix(deps): update module github.com/onsi/ginkgo/v2 to v2.9.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-03 05:35:43 +00:00
0851d6475d Merge pull request #18345 from vrothberg/fix-18092
api: fix parsing filters
2023-05-02 17:09:53 -04:00
09c11a8d95 Merge pull request #17627 from umohnani8/pod-restart
Add --restart flag to pod create
2023-05-02 16:46:52 -04:00
6577e3f297 Merge pull request #18409 from Luap99/e2e-cni
test/e2e: do not remove CNI directory
2023-05-02 15:29:54 -04:00
31a5573cd1 Merge pull request #18422 from edsantiago/ginkgo_try_json
e2e tests: try writing & preserving ginkgo json artifacts
2023-05-02 14:45:47 -04:00
dc7515dc32 MVP for Podman Machine with AppleHV
this pr is the first pass at enabling podman machine to use the apple hypervisor. there are still several TODO
areas like host networking.  once the decision is handled on what host networking should look like, these TODOs
should be fairly quick to resolve.  they also will impact the remove methods.

you must also have vfkit (https://github.com/crc-org/vfkit)

Signed-off-by: Brent Baude <bbaude@redhat.com>

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-05-02 13:09:56 -05:00
434f4a2e57 Merge pull request #18420 from edsantiago/rollback_logformatter_stream
Revert "logformatter: anchors: link to test summary, not name"
2023-05-02 13:52:58 -04:00
54fd0d752e e2e tests: try writing & preserving ginkgo json artifacts
ginkgo v2 has new options, --junit-report and --json-report.
The JUNIT one is utterly worthless: no timing data, no
separation between test output (podman commands) and
ginkgo output (filenames, linenumbers). JSON goes the
other direction, super-complicated, but I think I can
work with it. Let's try it.

This PR does not actually _do_ anything with the json; all
we do is save it. Over time, I'll download and play with it
and see what I can do with it.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-05-02 10:57:39 -06:00
1c5ab9e7bf vendor: bump buildah to v1.30.1-0.20230501124043-3908816d5310
Signed-off-by: Aditya R <arajan@redhat.com>
2023-05-02 21:47:01 +05:30
e1e03a0e34 bindings, build: don't pass invalid platform in case of none
In case of no `platform` , bindings should not add `platform` to
parameters at all instead it adds `/` as platform string which is
invalid.

[NO NEW TESTS NEEDED]
Exsiting test should pass with new buildah from upstream.

Closes: https://github.com/containers/buildah/issues/4768

Signed-off-by: Aditya R <arajan@redhat.com>
2023-05-02 21:46:57 +05:30