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

CheckMK Raw in k8s with CIFS / NFS #2

Open
eizieizi opened this issue Oct 17, 2021 · 1 comment
Open

CheckMK Raw in k8s with CIFS / NFS #2

eizieizi opened this issue Oct 17, 2021 · 1 comment

Comments

@eizieizi
Copy link

eizieizi commented Oct 17, 2021

Hi guys,

what kind of storage do you guys use for the PV? I was trying to use NFS with a PV which did not work because redis was not able to start properly. (before i had to configure an emptydir for the tmpfs because there were a lot of Bad Filetype errors...)

I tried to further isolate the problem and mounted the NFS Server directly on the worker nodes and published the NFS Volume via hostPath into the container. Same error, redis did not start well (it is running, but if you do an omd restart you see errors)

I also tried the same via CIFS and hostPath but there im facing the following issue

Traceback (most recent call last):
  File "/usr/bin/omd", line 60, in <module>
    omdlib.main.main()
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 4009, in main
    command.handler(version_info, site, global_opts, args, command_options)
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 1827, in main_create
    admin_password = init_site(version_info, site, global_opts, config_settings, options)
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 1895, in init_site
    create_version_symlink(site, omdlib.__version__)
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 232, in create_version_symlink
    os.symlink("../../versions/%s" % version, linkname)
OSError: [Errno 95] Operation not supported: '../../versions/2.0.0p12.cre' -> '/omd/sites/eizi_site1/version'

When using emptydir only, without NFS Checkmk is working.

Thanks for your answer

@kgatz
Copy link

kgatz commented Oct 19, 2021

Check the permissions of the PV folder inside the container.

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