Bug 2023811
| Summary: | Add verbose logs to (SFTP) upload feature | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Pavel Moravec <pmoravec> |
| Component: | sos | Assignee: | Pavel Moravec <pmoravec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Supportability QE <supportability-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | --- | CC: | agk, bmr, mhradile, plambri, sbradley, theute, upgrades-and-supportability |
| Target Milestone: | rc | Keywords: | FutureFeature, Reopened, Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | sos-4.5.4-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-06-27 14:12:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Pavel Moravec
2021-11-16 15:48:10 UTC
This is going to be difficult to really do well, as our (file) logging is closed by the time we get to the upload attempt: https://github.com/sosreport/sos/blob/main/sos/report/__init__.py#L1409 We can build out some console messaging, but what specifically are you looking for more information on to report? Currently if anything in `Policy.upload_archive()` fails we raise an appropriately (hopefully, anyways) descriptive exception whose message is then printed to console. (In reply to Jake Hunsaker from comment #2) > This is going to be difficult to really do well, as our (file) logging is > closed by the time we get to the upload attempt: > > https://github.com/sosreport/sos/blob/main/sos/report/__init__.py#L1409 .. and that file logging must be closed as the logfile is contained in the tarball we attempt to upload. > > We can build out some console messaging, but what specifically are you > looking for more information on to report? Currently if anything in > `Policy.upload_archive()` fails we raise an appropriately (hopefully, > anyways) descriptive exception whose message is then printed to console. This went out from discussion with Miroslav, raising needinfo on him when&what to more debug-log. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. Reopening the auto-closed BZ since this is being implemented / reviewed in upstream, with soon plans to have it in RHEL downstream. Hello, this bug is assumed to be fixed in errata https://access.redhat.com/errata/RHBA-2023:3801 so I am closing this BZ as fixed in current release. If you feel otherwise, please reopen the BZ and provide details what is missing. |