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
{{ message }}
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
metricbeat-yml-script.py opens it's config files (in /logzio/modules/aws.yml for example) as "r+".
this causes crashes if its mounted in read only like in k8s configmaps
Reproduce
mount a configmap into /logzio/modules
Code
2021-04-11 09:03:51,987 INFO [__main__] metricbeat-yml-script.py:67 Connection Established
Traceback (most recent call last):
File "metricbeat-yml-script.py", line 265, in <module>
_add_modules()
File "metricbeat-yml-script.py", line 80, in _add_modules
_enable_modules(modules)
File "metricbeat-yml-script.py", line 91, in _enable_modules
with open("modules/{}.yml".format(module), "r+") as module_file:
OSError: [Errno 30] Read-only file system: 'modules/aws.yml'
The text was updated successfully, but these errors were encountered:
roitalpaz
changed the title
BUG | yaml script opens for reading
BUG | yaml script opens for writing
Apr 11, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
metricbeat-yml-script.py opens it's config files (in /logzio/modules/aws.yml for example) as "r+".
this causes crashes if its mounted in read only like in k8s configmaps
Reproduce
mount a configmap into /logzio/modules
Code
The text was updated successfully, but these errors were encountered: