-
Notifications
You must be signed in to change notification settings - Fork 297
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
iscsiadm blocked by SELinux from mounting OpenEBS PVs #1438
Comments
Package diff:
Most likely its either
or
@cgwalters could you check if that is not an rpm-ostree regression? |
Similar behavior using Longhorn: longhorn/longhorn#4988 |
Similar issue when using istio: istio/istio#42485 - for some reason SELinux now behaves differently |
Is 4.11.0-0.okd-2023-01-14-152430 fixes that? |
Workaround from longhorn bug: longhorn/longhorn#4988 (comment) (apparently its applicable for iscsi too). Not sure if its due to app not requesting |
We experience the same issue on 4.11.0-0.okd-2022-12-02-145640 using Netapp Trident v22.10 as storage backend. What i don't understand: the security context for a working directory in /var/lib/iscsi/nodes is the same as the not working directory.
The working directory is ending with vs.73 and was manually created via
After creating the directory via the mentioned command, everything works fine.
|
Here is more testing information, the 4.12 CI Branch was working up until the release was cut for 4-stable:
I didn't test: |
Thanks! Right before the release we switched from FCOS next-devel as a base to FCOS stable (see Also, in 4.12 you can now create your own OS image and include FCOS testing fixes sooner |
but will there be a fix that does not need to put SELinux to permissive with OKD 4.11? or will this only be tackled in 4.12? |
I can build another machine-os-content for OKD 4.11, but we can't push it to stable channel anymore |
This may only help for external iSCSI targets but if you know the portal ip you can do a discovery on all relevant nodes via: |
Thanks, in that case we will take a 4.12 release in stable channel then once it is out - we tested the first 4.12 stable release which still has the SELinux issue, so I guess it will be solved in one of the other upcoming ones. |
This issue is still present in Fedora Core 37.20230110.3.1 for us, which is packaged with OKD 4.12.0-0.okd-2023-02-04-212953. |
For a temporary fix, I have wrote an article (this is a fix specially for iscsiadm, where https://ioflair.com/blog/fix-longhorn-volumes-stuck-in-attach-detach-loop-on-openshift-okd/ |
Merged @netwarex's fix (openshift/okd-machine-os#541), should be available in the next 4.12 release |
@vrutkovs this won't fix in 4.11, or no more 4.11 OKD coming? |
No more 4.11 stables coming (nightlies would still be released of course). I don't mind cherry-picking it to 4.11 but we'd need a confirmation its fixed in 4.12 first |
Fix available in amd64.origin.releases.ci.openshift.org/releasestream/4-stable/release/4.12.0-0.okd-2023-03-05-022504 Keeping this open to confirm its fixed before cherrypicking to 4.11 nightlies |
This fix may only solve the volumes, not the network related issues when using istio service mesh, as indicated here istio/istio#42485 unfortunately we still cannot test 4.12 as we still need to migrate our apis for kubernetes 1.25. |
Reopened #1450 to track istio exception, lets continue there |
Hi, We are not working on FCOS builds of OKD any more. Please see these documents... https://okd.io/blog/2024/06/01/okd-future-statement Please test with the OKD SCOS nightlies and file a new issue as needed. Many thanks, Jaime |
Describe the bug
During the upgrade from 4.11.0-0.okd-2022-11-19-050030 to 4.11.0-0.okd-2022-12-02-145640, we started having problems with OpenEBS PVs mounting. This blocked the upgrade from completing for us because it affected image-registry. We traced the problem down to SELinux blocking iscsiadm from performing dac_override. Disabling SELinux on the host node allowed the mount and upgrade to complete. We had to perform this on each node that had a PV, including those that were not related to the upgrade in order to mount all the OpenEBS PVs used by worker pods. We then re-enabled SELinux on each node.
Version
4.11.0-0.okd-2022-12-02-145640
How reproducible
Unknown
Log bundle
https://drive.google.com/file/d/1PgUlirAJMVFmbdim9QdMXq-HpEkHB-4i/view?usp=share_link
Relevant Logs
The text was updated successfully, but these errors were encountered: