-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
Rule - st2ctl reload
Reloads all except rules
#2861
Comments
Yeah, you have to This is something that Manas described previously in #1619 (comment) The reason is that different @Kami will correct me if I'm wrong. |
But I think there is definitely a user usability problem here, since it's something that raised many times (the behavior of The good approach for me feels like:
|
Isn't it the users responsibility to make sure that the rules they want to not trigger be saved in disabled state? I think this ask is a fair thing. I'm getting used to the system and I didn't realize that the 1 rule I had written up didn't get reloaded when I did st2ctl reload. (it wasn't an important rule) but still the expectation that I had was rules would get reloaded. |
Yeah the idea behind rules being disabled by default was that unlike actions, rules are usually not totally generic and they need to be modified / customized by the user before they can be used. That's why we decided not to register rules by default - if user didn't modify the rule or disable it, they would get surprised. |
Then should we close this PR? I dont have the history on this and hence just thinking from users perspective. |
We can all think about it some more about re-evaluate our decision aka if we still think that's the best default behavior. /cc @lakshmi-kannan |
I think arma nailed it here: #2861 (comment) st2ctl reload IMO should register rules by default. This has caused user frustration. We just have to make sure we don't ship dumb rules in enabled state with the product. If users place their rules on disk, it becomes their responsibility. I thought manas added st2 rule enable/disable. st2 rule list --disabled and st2 rule list --enabled are things we can build for better visibility. |
Agreed. |
So in summary we think its good to register rules as part of st2ctl reload. Yes there is a --enabled --disabled flag in the st2 rule list command. |
Rules from |
it's good that we have re-evaluated that decision. @samirsss if you feel like it you can make the change so rules are registered by default and everything which goes along with making a change (code changes, changelog entry, documentation entry, upgrade notes entry, etc.). |
Yep i can do it... |
Seems like the fix went it. Closing. |
st2ctl reload
but still rule is enabled:st2ctl reload
output found that it reloads all except rules. Performedst2ctl reload --register-rules
to reload rules and now it shows disabled:The text was updated successfully, but these errors were encountered: