Turn on the podman-commands script to verify man pages#6374
Turn on the podman-commands script to verify man pages#6374openshift-merge-robot merged 1 commit intocontainers:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@rhatdan looks like your script is working. Gating is failing due to missing pieces.... |
|
@TomSweeneyRedHat Not sure what you mean? Missing pieces? |
|
@rhatdan pieces == your script had found things that were missing in the docs as it was designed to do and it looked to be failing the gating due to that. |
|
If I run that container and the script within it, it passes every time. What I am trying to figure out is why it is blowing up in CI? |
|
it looks like the first podman command in this instance is going belly up. Notice the error: I wonder if this makes it all wrong from there. @edsantiago WDYT is going on here? |
|
As best I can tell from the error context, that message is coming from $ ./bin/podman help
Error: mount /var/lib/etc etc(without the expected output of podman help). I have to guess that the problem is in the previous line: - '/usr/local/bin/entrypoint.sh podman |& ${TIMESTAMP}'I think this might be succeeding, but leaving behind a corrupt |
|
RUN dnf -y install \
- $(grep "^[^#]" $GOSRC/contrib/dependencies.txt) conmon crun \
+ $(grep "^[^#]" $GOSRC/contrib/dependencies.txt) diffutils containers-common fuse-overlayfs conmon crun runc --exclude container-selinux; \
+ sed -i -e 's|^#mount_program|mount_program|g' /etc/containers/storage.conf \
&& dnf clean allUnfortunately the git commit message doesn't explain why this was added. @rhatdan do you remember what that |
|
That change enabeled fuse-overlayfs inside of the container. |
|
I figured out that much 😉 -- what I don't understand is the why. I assume this solved some problem, but what? And is it possible that this is causing the mount error? And if so, how can we achieve the dual goals of (whatever it was that needs fuse-overlayfs) and (getting the check-podman script to work in the gating container)? |
|
It was an attempt to fix this issue. The error I was seeing when I tested this locally was mounting overlay on overlay, so I added fuse-overlayfs and the local test passed. The problem with this test altogether, is I can't figure out how to do it locally. If you know the Podman command to execute, then we could examine what is going on. If I pull down this container image and run with the libpod directory mounted on /usr/src and run a shell within the container, the script succeeds. We can remove the fuse-overlay line and see if the tests passes. |
|
Okay, here is the shortest recipe I can devise for reproducing the problem: Editing Adding At this point, since I'm playing on my own laptop, I don't want to destabilize anything so I'm giving up for now. I can spin up a virt to continue testing if so desired. |
|
podman run --dev /dev/fuse -it -v /tmp/gate/libpod:/usr/src/libpod:z --entrypoint /bin/bash quay.io/libpod/gate:master |
|
@giuseppe Something is failing when trying to mount fuse-overlayfs, looks like we require CAP_SYSADMIN? Any ideas? |
|
If I run podman above with --device /dev/fuse and then follow @edsantiago Procedure, I am now getting If I add --add-cap SYS_ADMIN the command works. |
|
Looks like the bind mount is failing. |
|
Update:
In no case does podman even make it to fork/execing @giuseppe your expert opinion would be greatly appreciated |
|
If we merge containers/storage#639 then we can set the skip_mount option and allow this to proceed. |
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
|
@baude @edsantiago @vrothberg @giuseppe @mheon @QiWang19 @TomSweeneyRedHat |
|
LGTM |
|
@rhatdan I think we've all had thousand-line PRs that were easier to review than this one! Gating results confirmed. Thank you for persevering in tracking this down. /lgtm |
|
/hold cancel |
Signed-off-by: Daniel J Walsh dwalsh@redhat.com