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
PR - Issue 49731 - undo db_home_dir under /dev/shm/dirsrv for now #4091
Comments
Comment from firstyear (@Firstyear) at 2020-04-22 01:25:14 Ack from me |
Comment from tbordaz (@tbordaz) at 2020-04-22 10:49:35 congratulation @mreynolds389 for this tough investigations. Ack for me as well. Just out of curiosity and for the recording. The problem being permission to access /dev/shm/dirsrv and /dev/shm/dirsrv/slapd-INST. |
Comment from mreynolds (@mreynolds389) at 2020-04-22 14:09:07
No we just need to drop the entire /dev/shm/dirsrv/ approach. We should just allow the instance at start up to create /dev/shm/slapd-inst (once they make a new selinux rule for those directories). I had a community member on Debian also verify that this approach works correctly and doesn't cause anything strange to happen after reboots. So once we get the new selinux labels created (bug is pending), then we can set the default to /dev/shm/slapd-inst in defaults.inf and we are done. No other changes will be needed. |
Comment from mreynolds (@mreynolds389) at 2020-04-22 14:40:04
Well we still need to do some container magic for cases where dscontainer is not used. |
Comment from mreynolds (@mreynolds389) at 2020-04-22 14:42:19 rebased onto 3ca89e3 |
Comment from mreynolds (@mreynolds389) at 2020-04-22 14:42:52 Pull-Request has been merged by mreynolds389 |
Patch |
Cloned from Pagure Pull-Request: https://pagure.io/389-ds-base/pull-request/51038
Bug Description:
There are several issues with using /dec/shm/disrv/ for the db home directory. Containers have issues, and system reboots can cause issues too.
Fix Description:
Using just /dev/shm/slapd-INST solves all the permission issues, but that requires a new selinux label, so for now we will just set the db home directory to the database directory (effectively disabling the change).
Resolves: #2790
The text was updated successfully, but these errors were encountered: