upgrades-migrations / preupgrade-assistant

The Preupgrade Assistant performs an assessment of the system from the "upgradeability" point of view. Disclaimer: It was fun. R.I.P. :-)
GNU General Public License v3.0
13 stars 15 forks source link

Module result to not depend on a combination of exit_x and log_x_risk #318

Open bocekm opened 7 years ago

bocekm commented 7 years ago

Currently it's confusing and hard to maintain for module developers, how to set exit_x and log_x_risk functions in a module and what would be the outcome, because each combination of them yields different results.

Change API for modules as follows:

_*The question is, what risk should the exit_module set if the module developer wants to have needsinspection result - slight or medium risk?

This is a record of ideas of @AloisMahdal and @pirat89. Is it +- as you wanted?

AloisMahdal commented 7 years ago

Well, what I had in mind was rather that module would only have to call log_x_risk and the actual result would be inferred from that. IOW, the API should not rely on a state held in the module process. This is also why I don't think exit_module as presented here is good enough; this still depends on module not crashing and burning in a fireball.

If you want to see record of "my idea", I have already documented in https://bugzilla.redhat.com/show_bug.cgi?id=1400672; the wrapper actually implements exactly the kind of logic I think should be the "end-game".

(That said, the proposal is a bit better than status quo, OTOH bar is low on that one ;-))