Description of problem: New tool for log collection was introduced here https://bugzilla.redhat.com/show_bug.cgi?id=1765635 and according to "Notes about using this tool." it should be configured. However, in the UI it is possible to select "Red Hat Support" option and collect logs. In this case, after clicking the collect button, it says: Last Message Log files were successfully collected In the evm.log there's a message: [----] I, [2019-10-31T11:13:37.371690 #10643:10b8f50] INFO -- : MIQ(FileDepotRedhatSupport#upload) Please enter your RHN user ID: failed. ERROR: The RHN user ID cannot be empty. But also in the logs it looks like the logs were collected, e.g.: [----] I, [2019-10-31T11:13:37.392029 #10643:10b8f50] INFO -- : MIQ(MiqTask#update_status) Task: [50] [Active] [Ok] [Current log files from EVM default MiqServer 1 are posted] Version-Release number of selected component (if applicable): 5.10.12.3.20191029180220_f883bde How reproducible: Always Steps to Reproduce: 1. Configuration -> Diagnostics -> Collect Logs -> Edit 2. Type: Red Hat Support 3. Save 4. Collect -> Collect current logs Actual results: The UI message and messages in the logs are misleading. Expected results: If there's an error, logs are not collected and it's reflected both in the UI and in the logs. Additional info:
Also see https://bugzilla.redhat.com/show_bug.cgi?id=1765635#c10 That's an example of an error from the support-tool that we should propagate up through an exception so it's not lost
https://github.com/ManageIQ/manageiq/pull/19480
We opened a bug in support tool to fix the the error handling so errors exit with non-zero exit code and write to stderr. See https://bugzilla.redhat.com/show_bug.cgi?id=1769963
Moving to post because our hacky hack will "fix" this until comment 7 gets resolved, if it gets resolved.