Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
podman build can not mount /usr/share/rhel/secrets with NFS storage, it will report "error applying correct labels: lsetxattr ... operation not supported "
Version-Release number of selected component (if applicable):
podman-3.4.5-0.4.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Create a docker file
FROM quay.io/libpod/testimage:20210610
RUN ls /run/secrets/etc-pki-entitlement
2. build the image with it
# podman build .
STEP 1/2: FROM quay.io/libpod/testimage:20210610
STEP 2/2: RUN ls /run/secrets/etc-pki-entitlement
WARN[0000] error mounting subscriptions, skipping entry in /usr/share/containers/mounts.conf: error applying correct labels: lsetxattr /var/lib/containers/storage/overlay-containers/435e67b9a17fc0ed96bd0c3ae03dca2f4efb8f781fd63bc4ca64c1ba8337ed7b/userdata/run/secrets/etc-pki-entitlement: operation not supported
ls: /run/secrets/etc-pki-entitlement: No such file or directory
Error: error building at STEP "RUN ls /run/secrets/etc-pki-entitlement": error while running runtime: exit status 1
Actual results:
mount failed during the build process
Expected results:
It can mounted as expected and can be used.
Additional info:
The mount works with podman run:
# podman run quay.io/libpod/testimage:20210610 ls /run/secrets/etc-pki-entitlement
4953058520223425924-key.pem
4953058520223425924.pem
Yes I know what the error is, but I want to know what is on an NFS share. We should not have storage on NFS. So I would like to know why this is happening.
If this is testing with an NFS server, then the labeling between the NFS client and Server should be supporting NFS Labels, which would allow the labels to work.
(In reply to Tom Sweeney from comment #9)
> Closing as I know we've done other internal NFS testing without an issue.
> @ypu if this is still an issue, please open a new BZ.
@yujiang please help confirm the above question, thanks!