-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
False
-
-
2023-Q1
-
Testable
This class will be the parent of all Actions to be run as part of the pre-assessment.
The class should encompass:
- A run method. This is what the Action Framework will run when the pre-assessment checks need to be performed.
- A dependency list. The actions listed in the dependency list must be run before this Action and must not have failed.
A severity level. Tells whether a failure in this check should:be a warning onlyprevent the conversion until fixed.immediately stop the conversion.- This has been moved into the next bullet, output of a run() because an Action may have different errors with different severities.
- A definition of how to tell if a test has succeeded, failed, or was not able to be run.
Success will return None.Failure will raise a specific exception. The Exception will have a numeric code and a message to display to the user.describing the failure and what can be done to remediate it.A base class for this exception must also be written as the Action Runner will use specific fields from the exception when informing the user about failures
- The Action will have several instance attributes which will be set once the check has been run:
- status:: success/failure/could not run
- severity: The failure is always fatal, The failure can be overridden by the user. The failure is a warning to the user (for instance: repoid check (but we are going to remove it))
- message_id: A string that uniquely identifies the error. Can be used by external tooling to identify exactly what went wrong.
- message: a message for the user (If we need separate messages for the pre-assessment vs conversion, then we should do this by looking up the message from the message_id in a separate data structure.
- The runner will determine if an Action was unable to be run due to its dependencies not having run.
- blocks
-
RHELC-940 Port pre-PONR changes from main() and pre_ponr_conversion() to Action framework
- Closed
-
RHELC-929 Port checks::check_custom_repos_are_valid to Actions
- Closed
-
RHELC-930 Port checks::check_convert2rhel_latest to Action framework
- Closed
-
RHELC-931 Port checks::check_efi to Actions framework
- Closed
-
RHELC-932 Port checks::check_tainted_kmods to Action Framework
- Closed
-
RHELC-933 Port checks::check_readonly_mounts to Action Framework
- Closed
-
RHELC-934 Port checks::check_rhel_compatible_kernel_is_used to Action framework
- Closed
-
RHELC-935 Port checks::check_package_updates to Action framework
- Closed
-
RHELC-936 Port checks::is_loaded_kernel_latest to Action framework
- Closed
-
RHELC-937 Port checks::check_dbus_is_running to Action framework
- Closed
-
RHELC-938 Port checks::ensure_compatibility_of_kmods to Action framework
- Closed
-
RHELC-939 Port checks::validate_package_manager_transaction to Action framework
- Closed