22392 Commits

Author SHA1 Message Date
4b2c7f272e Merge pull request #22319 from Luap99/exposed-ports-ps
podman ps: show exposed ports under PORTS as well
2024-04-12 10:11:43 +00:00
df69b36ee5 (minor) prefetch systemd image before use
Two system tests were relying on $SYSTEMD_IMAGE but were not
running _prefetch. This led to baffling flakes that wasted
my time. (Quay flakes, of course. New manifestation.)

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-11 13:48:27 -06:00
7b95a8af80 Merge pull request #22349 from jwhonce/wip/swagger_serve
[CI:DOCS] Swap out javascript engine
2024-04-11 18:23:44 +00:00
49729c82a9 Update go-swagger version
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2024-04-11 10:48:10 -07:00
1b6e8d73aa Swap out javascript engine
* Replace redoc with swagger javascript engine. redoc was causing an
  error

Signed-off-by: Jhon Honce <jhonce@redhat.com>
Reported-by: Brent Baude <bbaude@redhat.com>
2024-04-11 10:16:11 -07:00
3418405351 fix(deps): update module github.com/docker/docker to v26.0.1+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 16:36:51 +00:00
d65f3996dd Merge pull request #21889 from containers/renovate/pytest-8.x
chore(deps): update dependency pytest to v8
2024-04-11 15:09:50 +00:00
8a7c3ea2f5 Merge pull request #22266 from baude/run2077
Add os, arch, and ismanifest to libpod image list
2024-04-11 15:01:32 +00:00
c64f440a70 Merge pull request #22267 from containers/renovate/github.com-gorilla-schema-1.x
Update module github.com/gorilla/schema to v1.3.0
2024-04-11 14:40:32 +00:00
a1e23b6b49 Merge pull request #22340 from containers/renovate/github.com-containers-gvisor-tap-vsock-digest
fix(deps): update github.com/containers/gvisor-tap-vsock digest to d744d71
2024-04-11 14:18:10 +00:00
2388b4571b Merge pull request #22331 from edsantiago/tools-ginkgo-update
vendor ginkgo 2.17.1 into test/tools
2024-04-11 14:05:03 +00:00
08a49389c8 Add os, arch, and ismanifest to libpod image list
when listing images through the restful service, consumers want to know
if the image they are listing is a manifest or not because the libpod
endpoint returns both images and manifest lists.

in addition, we now add `arch` and `os` as fields in the libpod endpoint
for image listing as well.

Fixes: #22184
Fixes: #22185

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-04-11 08:46:37 -05:00
0b0335259e Merge pull request #22260 from baude/validatepr
[CI:DOCS]Initial PR validation
2024-04-11 13:18:55 +00:00
e773ed42b3 [CI:DOCS]Initial PR validation
This PR is only a first step towards being able to validate developer
code locally prior to pushing a PR and using CI.  Right now, we have a
prepared image in a temporary spot (will change when done).  That image
can be used to exercise various podman builds, make validate, and DCO
check.

The idea here is we have a make target that spins a podman container (or
machine) and then execute a small script to perform the actual builds.
Note, these builds are to verify code, not make production binaries so
corners are cut.  As of now, we choose to not build cross-arch binaries
because most of our problems thus far have been operating system builds
and not arch.

Of course this can be expanded in the future.  This is just step one to
start getting some of it in place.  The rest of the work is tracked in
JIRA under two cards.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-04-11 07:49:03 -05:00
4a07131f83 fix(deps): update github.com/containers/gvisor-tap-vsock digest to d744d71
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 00:29:10 +00:00
67c6d7ec80 vendor ginkgo 2.17.1 into test/tools
...to match the version in root dir, to get rid of the mismatch
warning on every ginkgo run.

The last bump was done by renovatebot; I don't know why bot didn't
do it this time.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-10 15:18:42 -06:00
2f603fc372 Merge pull request #22332 from Luap99/concurrent-map-write
fix "concurrent map writes" in network ls compat endpoint
2024-04-10 18:05:28 +00:00
999d6c0750 fix "concurrent map writes" in network ls compat endpoint
Not sure why this only triggers now but this code was broken for a
while. It is racy as reported on the issue but because it changes the
actual map part of the network backend it means it can also alter the
behavior of the network which is very bad.

Fixes #22330

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-10 18:41:20 +02:00
17f36a3690 Merge pull request #22270 from edsantiago/redefine-ExitWithError
e2e: redefine ExitWithError() to require exit code
2024-04-10 14:58:29 +00:00
26f866b5df chore(deps): update dependency pytest to v8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 12:39:09 +00:00
2d9159821a e2e: redefine ExitWithError() to require exit code
...and an optional error-message string, to be checked
against stderr.

This is a starting point and baby-steps progress toward #18188.
There are 249 ExitWithError() checks in test/e2e. It will take
weeks to fix them all. This commit enables new functionality:

    Expect(ExitWithError(125, "expected substring"))

...while also allowing the current empty-args form. Once
all 249 empty-args uses are modernized, the matcher code
will be cleaned up.

I expect it will take several months of light effort to get
all e2e tests transitioned to the new form. I am choosing to
do so in pieces, for (relative) ease of review. This PR:

  1) makes the initial changes described above; and
  2) updates a small subset of e2e _test.go files such that:
     a) ExitWithError() is given an exit code and error string; and
     b) Exit(Nonzero) is changed to ExitWithError(Nonzero, "string")
        (when possible)

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-10 06:35:52 -06:00
8de92ec912 docs: fix missleading run/create --expose description
The --expose option doesn't actually affect port forwarding or anything
like that.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-10 14:24:32 +02:00
0bedf7f1d2 podman ps: show exposed ports under PORTS as well
Docker shows exposed ports as just PORT/PROTO so match that behavior. It
is not clear to me why someone needs that information in ps as "expose"
doesn't effect anything networking related.

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

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-10 14:24:23 +02:00
2debcf6531 Merge pull request #21822 from containers/renovate/github.com-crc-org-crc-v2-2.x
Update module github.com/crc-org/crc/v2 to v2.34.1
2024-04-10 12:22:52 +00:00
f455f4a5f9 Merge pull request #22328 from giuseppe/drop-ReadMappingsProc
rootless: drop function ReadMappingsProc
2024-04-10 12:20:07 +00:00
140470863f Merge pull request #22324 from edsantiago/new-pasta-0405
New CI VMs, to give us pasta 2024-04-05
2024-04-10 12:17:24 +00:00
aee1e1408d rootless: drop function ReadMappingsProc
use the equivalent GetHostIDMappings from the storage unshare package.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-04-10 11:55:35 +02:00
b59993ce09 Merge pull request #22325 from containers/renovate/github.com-vbauerster-mpb-v8-8.x
fix(deps): update module github.com/vbauerster/mpb/v8 to v8.7.3
2024-04-10 09:13:10 +00:00
9d18a48803 fix(deps): update module github.com/vbauerster/mpb/v8 to v8.7.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 23:28:27 +00:00
0313693d48 New CI VMs, to give us pasta 2024-04-05
Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-09 14:51:07 -06:00
3a20c72759 Merge pull request #22323 from cevich/add_gha_warning
[skip-ci] Add big warning to GHA workflow
2024-04-09 20:50:37 +00:00
394820c4f0 Add big warning to GHA workflow
A simple file rename quickly broke the same workflow in both the Buildah
and Skopeo repos.  Add a big-fat warning comment to prevent this from
happening again.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-04-09 16:41:22 -04:00
9fc46dfb67 Merge pull request #22314 from edsantiago/blow-a-fuse
e2e tests: remove requirement for fuse-overlayfs
2024-04-09 19:33:40 +00:00
6f4b1c10a8 Merge pull request #22299 from lvyaoting/main
[CI:DOCS] chore: fix function names in comment
2024-04-09 18:00:15 +00:00
52e1d38bb1 Merge pull request #22290 from n1hility/fix-z-mac
Fix relabeling failures with Z/z volumes on Mac
2024-04-09 17:57:35 +00:00
918e4a30db Merge pull request #22304 from cevich/fix_res_inacs_by_int
[skip-ci] GHA: Fix intermittent workflow error
2024-04-09 17:18:53 +00:00
929d8caf45 Merge pull request #22315 from containers/renovate/golang.org-x-tools-0.x
fix(deps): update module golang.org/x/tools to v0.20.0
2024-04-09 15:45:23 +00:00
7f0268a2e7 GHA: Fix intermittent workflow error
Periodically, the discussion-lock workflow throws the error: `Resource
not accessible by integration`

This was identified in the
[upstream](https://github.com/dessant/lock-threads)
issue 47, as caused by a version-5 change that adds support for
management of discussions but requires additional permissions
and possibly settings.  Given the low notification traffic from
discussions, old discussions may remain valid for a long while, and are
a useful community-interface:  Disable management of discussions.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-04-09 11:19:08 -04:00
266801bf2d fix(deps): update module golang.org/x/tools to v0.20.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 11:42:31 +00:00
4452d307ec Merge pull request #22311 from paomian/paomian-patch-1
[CI:DOCS] update Quadlet volume Options desc
2024-04-09 11:40:38 +00:00
847ca1f9ea e2e tests: remove requirement for fuse-overlayfs
As of April 2024, it's no longer included in rawhide by default.
We could force-install it, but it's 2024 and it seems likely
that all systems on which Podman 5 will run will have kernels
that support native overlay.

I also added two debugging printfs to the 'podman info' test
that initially failed on an (unpublished) rawhide VM. Without
these printfs it was impossible to diagnose the failure.

Updating docs is left as a future exercise.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-09 05:25:20 -06:00
5989f99d44 Merge pull request #22308 from containers/renovate/golang.org-x-sync-0.x
fix(deps): update module golang.org/x/sync to v0.7.0
2024-04-09 10:26:24 +00:00
37b1edc5f3 Merge pull request #22300 from Luap99/make-docs
Makefile: fix annoying errors in docs generation
2024-04-09 10:12:39 +00:00
36e4d512b3 docs: update Quadlet volume Options desc
Signed-off-by: localhost <xpaomian@gmail.com>
2024-04-09 11:37:20 +08:00
b8670a3834 fix(deps): update module golang.org/x/sync to v0.7.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 19:46:19 +00:00
6487940534 Merge pull request #22301 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.24.0
2024-04-08 19:43:35 +00:00
0b36126e92 Fix relabeling failures with Z/z volumes on Mac
Non-Linux systems, such as BSD kernels, constrain xatter updates
according to file permissions. This is in contrast to Linux selinux
attr writes, which are governed by an selinux policy. By dafault this
policy apllows users to relabel files owned by themselves even if file
perms would otherwise disallow write.

This results in robust container relabeling results on Linux, and
fragile results everywhere else. Therefore, change the mac policy to
force the nfs_t context on all files, and ignore all relabel
events.

As a side-effect, this will disallow any ability to store custom
selinux constants on files. However, this is of limited use in
a machine context, since files in these volumes are externally
managed on systems which do not support SELinux.

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-04-08 10:06:44 -05:00
f8533c71c4 fix(deps): update module golang.org/x/net to v0.24.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 12:28:28 +00:00
076a8157e5 Merge pull request #22281 from containers/renovate/golang.org-x-crypto-0.x
fix(deps): update module golang.org/x/crypto to v0.22.0
2024-04-08 12:26:42 +00:00
b9a8a2c61c Makefile: fix annoying errors in docs generation
Currently when we run make docs we will see 100+ lines of
`grep: docs/build/man/links: Is a directory` printed.
This makes no sense as we should only try to validate the man page.

The manpage target is structured in a way that it runs the generation
for each file individually. As such the current way of grep'ing the
entire directory for each page is wrong. It should only validate the on
page that was created by the command above.

To fix this first define a OUTFILE var for the target to not have to
call the substitution every time we use the path and then only grep this
one file and not everything in the dir.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-08 14:13:17 +02:00