-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
False
-
-
1
-
Testable
-
rhel-conversions
-
-
-
When inhibitor is found, convert2rhel analyze and convert2rhel convert gives different exit codes when inhibitor is found.
- analyze gives 0
- convert gives 2
The both should return 2 as it correspond with https://github.com/oamg/convert2rhel/blob/main/convert2rhel/main.py#L74
I think it's caused by raising an AnalyzeExit https://github.com/oamg/convert2rhel/blob/main/convert2rhel/main.py#L74 before _raise_for_skipped_failures() is called.
Acceptance criteria:
- convert2rhel return 2 when inhibitor is found in analyze and convert steps
- do not forget to update the infra.convert2rhel ansible role - the analysis tasks would fail if inhibitor is found. https://github.com/redhat-cop/infra.convert2rhel/pull/60/files#diff-6f4a5eb02689d14eda74c78f33968632dd8c30bcc9de2245d9c062a00d219605R33 failed_when: convert2rhel.rc != 0 and convert2rhel.rc != 2 should be added (as it is in conversion role).
- relates to
-
RHELC-1276 Exit code 2 with inhibitors detected
-
- Closed
-
- links to
-
RHEA-2024:143554 convert2rhel bug fix and enhancement update
-
RHEA-2024:143556 convert2rhel bug fix and enhancement update
-
RHEA-2024:143557 convert2rhel bug fix and enhancement update