-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
":Z" option for datastorage makes Quay not able to start #145
Comments
Hey @PhilippeRaven out of curiosity, what is the filesystem on |
Thanks for the reply :) |
@PhilippeRaven is it an NFS export that you're mounting? Also, if not, are you doing any mount options for the EXT4 filesystem? The error you're seeing is most likely filesystem related, and is when selinux is trying to set attributes. Most of the time when I've seen the above error, it is on an NFS mount, but could also be due to EXT4 mount options. Hope that helps with some investigation steps! |
It's not an NFS export. It's a local disk dedicated to the /srv/quay mountpoint. No mount option apart from "defaults". Well like you say, it's SELinux related, and it's even more obvious because when I disabled SELinux it works, but when it's in Permissive mode it doesn't work (that's weird). So currently my only workaround is to remove the ":Z" option in the service file. |
Ok, this adds even more questions!
ls -alZ /srv/quay/ You're looking for drwx------. 2 quay quay sysadm_u:object_r:container_file_t:s0 <date> quay-config or something similar, depending on your system. You might try running Also, checking selinux avc logs to see what errors are showing up there would be helpful too! (Sounds like you might have already checked that?) Good luck! |
Sorry for the delay, and thanks for the answer ! So to answer your questions :
About the logs, the only message I get is the one in my ticket :
So I don't think you have more informations now :( |
Have you reached out via the Red Hat support portal yet? There might be a known issue around this deployment methodology. I noticed https://access.redhat.com/solutions/6985126 has a similar error message. |
I did not currently. Usually, I am the support :) |
Sorry for the title, here is a more complete explanation of the issue :
Conditions :
RHEL 8.8. Podman with rootless usage for Quay. SELinux in Permissive mode.
Config file for rootless podman storage (~/.config/containers/storage.conf) :
Running mirror-registry install with :
./mirror-registry install --initUser registry_user --pgStorage /srv/quay/pg-storage --quayHostname registry.domain.tld:8443 --quayRoot /srv/quay/ --quayStorage /srv/quay/
Install fails when waiting for Quay to be up and reachable, /var/log/messages shows this error from podman :
podman[12471]: Error: lsetxattr /srv/quay/.local/share/containers/storage/overlay/04a62cb87f5a3730dbce9dfdf02c40121014b062f215eb33a9b4bd6545bce7b6/merged/bin: operation not supported
It works when I set SELinux to disabled.
So I added context rules on some directories, set SELinux to permissive again, still failing.
The only way I found to make it work with Permissive mode is to remove the ":Z" option from the datastorage line of the file ~/.config/systemd/user/quay-app.service :
Before :
-v /srv/quay/:/datastorage:Z \
After :
-v /srv/quay/:/datastorage \
If you have an idea or need more informations, I'll be glad to provide !
The text was updated successfully, but these errors were encountered: