-
Notifications
You must be signed in to change notification settings - Fork 56
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
ncm-metaconfig 23.6: log execution of actions in main log file #1664
Comments
Aren't these executed via a standard CAF function, which ought to already log everything it does? Or are you saying that you see the command being executed but want to log the reason for the execution? |
this is indeed odd. all execution should be logged in the component logfile with verbose level. if these commands are not in there, then we have a serious problem. |
@stdweird I apologize for not being clear enough... Every action is perfectly logged in the component log file. My point is that our (my) way of checking Quattor deployment is to check To be a bit more concrete, with a config like:
I'd like to see in
And the same for the other types of actions ( Hopefully it is more clear! |
https://github.com/quattor/configuration-modules-core/blob/master/ncm-metaconfig/src/main/perl/metaconfig.pm#L209 logs the actions with either error or verbose. i think what ends up in the ncm-cdispd.log is info or higher. @jouvin can you try to patch that line to info instead of verbose, and see if it gives what you want? |
I'll try to have a look... |
I started to use the powerful
actions
inncm-metaconfig
. But currently there is nothing in the main log (ncm-cdispd.log
) related to the execution of these actions: only daemon restarts are logged. This may be a source of confusion. I'd suggest to have one line per action type (pre
,test
,changed
,post
) listing the commands executed (the key value in/software/components/metaconfig/commands
) in much the same way we list the daemons restarted.The text was updated successfully, but these errors were encountered: