ovis icon indicating copy to clipboard operation
ovis copied to clipboard

Systemd Aggregator Integration Issue

Open bschwal opened this issue 5 years ago • 6 comments

The LDMSD_AUTH_OPTION="-A conf=/opt/ovis/etc/ldms/ldmsauth.conf" is necessary for the ldmsd.aggregator service to work properly. It is defined as a variable in .env file however it is not included in the ldmsd.aggregator.service file. For reasons I'm not 100% on, when not including this option ldms does not look in the default location for the authentication config and will therefore return this error:

ERROR : 'sock' transport creation with auth 'ovis' failed, error: ENOENT(2). Please check transpot configuration, authentication configuration, ZAP_LIBPATH (env var), and LD_LIBRARY_PATH.

Please add the authentication option to the aggregator service code and maybe add LDMS_AUTH_FILE environment variable to the .env file to make sure it is absorbed into the systemctl call.

bschwal avatar Mar 13 '19 19:03 bschwal

Actually, on the intel x86_64 platform I'm testing on, even referring to the LDMSD_AUTH_OPTION variable does not work. -A conf=/opt/ovis/etc/ldms/ldmsauth.conf must be put directly in the .service file.

bschwal avatar Mar 13 '19 20:03 bschwal

I had to add $LDMSD_AUTH_OPTION to the systemd service files. In the ExecStart lines add $LDMSD_AUTH_OPTION. It needs to be $LDMSD_AUTH_OPTION not ${LDMSD_AUTH_OPTION} to ensure that the whitespace quoting is done correctly.

eric-roman avatar Mar 14 '19 17:03 eric-roman

Ah I see. Thank you! Is there anyway to make that file location the default where ovis authentication looks? Or to add verbosity to the error statement?

bschwal avatar Mar 14 '19 17:03 bschwal

I ran with $LDMS_AUTH_OPTION and still found that it was failing. The only way I've found it to work is with the full -A conf=/opt/ovis/etc/ldms/ldmsauth.conf. Any suggestions?

bschwal avatar Mar 19 '19 20:03 bschwal

can we close this?

baallan avatar Oct 24 '19 15:10 baallan

I haven't tested this on the newest OVIS version so I'm unsure if all is well.

bschwal avatar Oct 24 '19 17:10 bschwal