-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Istio 100.0.0 v2 : book demo app deployment fails on SELinux RHEL 8.4 enabled on the clusters #33291
Comments
I tested this with v2.6.2, a single all role node custom cluster running RHEL 8.4 (ami-0277fbe7afa8a33a6) and Kubernetes v1.21.6-rancher1-1 and it worked as expected with rancher-istio:100.0.2+up1.10.4 and SELinux enforcing, my steps: Without PSP:
With PSP:
|
@samkulkarni20 Can we have the QA team help validate if this is still an issue esp based on Alex's feedback? |
With reference to the steps mentioned by @axeal, the issue is working as expected on rancher 2.6.2 and 2.6-head. Rancher server:
Information about the Cluster:
Steps to reproduce without PSP :
Result:
Steps to reproduce with PSP :
Result:
The app is also getting deployed successfully on rancher 2.6-head with istio 100.1.0+up1.11.4 following the same steps mentioned above. |
Validated the issue again. Validation indicates the results are inconsistent.Setup Configuration: Rancher server: v2.6.2
Information about the Cluster:
Steps to reproduce without PSP :
Result: |
Validated this issue on SELinux RHEL 8.4 docker-20.10.7Steps followed to validate the issue
However, the app was not accessible on For validation with PSP on.
Istio upgrade failed with following errors. Could not proceed to deploy demo book app. |
For the 1st scenario above, Istio installation works consistently using the latest Rancher-Istio chart (upstream v1.11.4). The 2nd scenario fails though, since istio install/upgrade with CNI enabled, fails with below error:
The above issue is caused due to the hostPath volume mounted on the CNI daemonset at location
As you see, it has type label A possible solution is to run below command on each cluster node before creating the cluster.
@brendarearden @axeal Note: Istio has a change in their master branch which enables setting env variable CC: @doflamingo721 |
@samkulkarni20 we could add the temporary work around to https://github.com/rancher/charts/blob/dev-v2.6/packages/rancher-istio/rancher-istio/charts/app-readme.md in the Known Issues section. I would also think it needs to be added as a release note with the next rancher release. |
Setup Configuration: Rancher server v2.6-head:
Information about the Cluster:
Steps to reproduce without PSP :
Result:
Steps to reproduce with PSP :
Result: The app is also getting deployed successfully on rancher 2.6-head with istio 100.1.1+up1.11.4 following the same steps mentioned above. |
Based on above validation, the issue is not active. Hence, closing the issue. |
Our team encountered a similar issue that had the same core error message -- We encountered the error message when deploying Kubeflow v1.3.1 and v1.4.1 through its manifests deployment method, which injects Istio sidecars. Our target environment is a downstream Kubernetes v1.21.9-rancher1-1 cluster that is deployed by Rancher v2.6.3-patch1. Each node in our cluster has AlmaLinux 8.5 (one of the CentOS 8 derivatives) as its OS. SELinux and firewalld are both disabled on our nodes. We found a solution in the comments on related issue istio/istio#23009. The answer was to ensure that a set of specific kernel modules is loaded. For more details, see my reply on the other issue: istio/istio#23009 (comment) |
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
SELinux RHEL 8.4 docker-20.10.7, 0.2.rc1-RPM
Result:
istio-init container is in crashloopBackoff with the following error:
Expected Result:
The istio-init container should come up active and the errors should not be seen
Other details that may be helpful:
If we set PSP to unrestricted for SELinux RHEL 8.4 hardened clusters and deploy the book demo app, the app deploys successfully without any errors.
Environment information
rancher/rancher
/rancher/server
image tag or shown bottom left in the UI):master-2ca2ad9c602f1d64e30a9ccfe093c6c39aefc728-head
Cluster information
kubectl version
):docker version
):#33285
The text was updated successfully, but these errors were encountered: