Skip to content
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

[BUG] CRIO restart fails the kube-rbac-proxy with the following error - /usr/bin/kube-rbac-proxy: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied #4702

Open
aayushagr22 opened this issue Mar 19, 2025 · 4 comments

Comments

@aayushagr22
Copy link

We've setup Microshift 4.18 on a CIS Hardened RHEL machine using a local podman registry. When we disable nftables to allow firewall the local registry goes down and to bring it back following commands were run:

sudo systemctl restart crio
podman stop local-registry
podman start local-registry

Post this all pods are up expect the kube-rbac-proxy container in the dns-default pod. Seems like a cleanup issue from crio.

What did you expect to happen?

How to reproduce it (as minimally and precisely as possible)?

  1. '...'
  2. '...'

Anything else we need to know?

Environment

  • MicroShift version (use microshift version):
  • Hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Others:

Relevant logs

@ggiguash
Copy link
Contributor

ggiguash commented Mar 21, 2025

Changing system configuration may require restarting more than one service.
Does the system heal itself after reboot?

@aayushagr22
Copy link
Author

Hi @ggiguash, this was solved by replacing sudo systemctl restart crio with the following commands -

systemctl stop crio
crio wipe -f
systemctl start crio

@aayushagr22
Copy link
Author

Hi,

The same issue re-occured on rebooting the server and the previous fix doesn't work.

oc logs -f -n openshift-service-ca service-ca-7674ff74cb-flrrc;oc logs -f -n openshift-ingress router-default-5c6b6bf9cb-xndhs
exec container process /usr/bin/service-ca-operator: Permission denied
/usr/bin/openshift-router: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied

@aayushagr22 aayushagr22 reopened this Apr 2, 2025
@ggiguash
Copy link
Contributor

ggiguash commented Apr 2, 2025

Permission denied errors like that are sometimes related to SELinux denials.
Can you examine SELinux events to see if it contains any clues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants