You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployed microshift using RHEL/Edge os-tree.
Created pvc+pod for the hostpath provisionor that is available from the microshift base installation.
PVC does not get bind, due to PV no created. provisonr pod log shows:
failed to provision volume with StorageClass "kubevirt-hostpath-provisioner": mkdir /var/hpvolumes/pvc-bb3312ba-ba35-4ca7-8873-b6d8334b22e7: permission denied
I tried sudo chmod 777 /var/hpvolumes
which did not help. Thats hints to se-linux problems. But Installed Packages: microshift-selinux.noarch 4.8.0-2022_03_11_124751.el8
is there.
Trying brute force workaround: sudo setenforce Permissive and restart crio+ushift, and voila, then it works.
What happened:
Deployed microshift using RHEL/Edge os-tree.
Created pvc+pod for the hostpath provisionor that is available from the microshift base installation.
PVC does not get bind, due to PV no created. provisonr pod log shows:
failed to provision volume with StorageClass "kubevirt-hostpath-provisioner": mkdir /var/hpvolumes/pvc-bb3312ba-ba35-4ca7-8873-b6d8334b22e7: permission deniedI tried
sudo chmod 777 /var/hpvolumeswhich did not help. Thats hints to se-linux problems. But
Installed Packages: microshift-selinux.noarch 4.8.0-2022_03_11_124751.el8is there.
Trying brute force workaround:
sudo setenforce Permissiveand restart crio+ushift, and voila, then it works.OpenShift Docs have a step to configure SELinux for hostpath provisioning,, maybe the is missing?
What you expected to happen:
should have just worked.
How to reproduce it (as minimally and precisely as possible):
see above
Anything else we need to know?:
Environment:
Microshift version (use
microshift version):MicroShift Version: 4.8.0-0.microshift-2022-03-11-124751
Base OKD Version: 4.8.0-0.okd-2021-10-10-030117
Hardware configuration:
virtualised
OS (e.g:
cat /etc/os-release):NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.5 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
Kernel (e.g.
uname -a):Linux localhost.localdomain 4.18.0-348.20.1.el8_5.x86_64 Init #1 SMP Tue Mar 8 12:56:54 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
Others:
!!! RHEL/Edge rpm-ostree installation!!!
Relevant Logs