-
Notifications
You must be signed in to change notification settings - Fork 0
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
Config file shims #8
Comments
Is |
/etc/synse/plugin/config/config.yml is in the plugin. The plugin is loading the config from /plugin. This is either:
|
It seems we should just have the charts write to |
I think that's the way it used to work, then things got changed around in that big checkin. It could be an order of preference way that the configs get loaded in the sdk (?) |
It's more complicated than it needs to be and was not tested prior to checkin / merge. |
This seems to be a symptom of the way the SDK loads configs. It is actually pretty well tested, but this case slipped through because the images it was tested on didn't have a plugin config included within the docker image by default. I believe modbus (and maybe snmp too) had the configs copied into the dockerfile when the project was first being set up to make development easier, and then they were never removed. The SDK will try to load plugin configs in the following order: here The way we were previously doing it in the deployment configs was to mount the configs to some other path that is not on the default search path, and set an environment variable to point to it. We could do that again, but it does add more complexity to the deployments (need to define and track more things) when the SDK can handle it using the default search paths. The easiest way to fix this would be to update the dockerfile for each image to remove the part where the plugin config is copied in -- this will require us to specify our own plugin config (will fail if no config is provided), but we are already doing that. |
modbus and snmp plugins are using the config.yml in the from the modbus and snmp repos and not the config.yml shimmed in here.
This is related to this mega-commit: https://github.com/vapor-ware/deployment/commit/f74a3e30c6b939663bb5218325fac1d199dc5cb2
The text was updated successfully, but these errors were encountered: