-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using upload protocol s3 on Red Hat incorrect upload_url_string is returned. #3890
Comments
The following appears to resolve the reporting of using SFTP for the upload when it is really being uploaded via s3 protocol into a bucket:
Example when uploading with an object prefix (a uuid plus year and month) to a bucket named project-sosreports:
When both a case id (eg. 12345) and an object prefix (same as above) are provided the case id wins out:
While this resolves the erroneous message, I wanted to add it to this issue before opening any PR for review in case there was a different approach preferred, or potentially any work already underway in parallel it might conflict with. |
Nice fix! I'm working on the upload subsystem, but I can wait for your PR and then adapt what I've done so far to your changes. |
I reviewed more closely and decided since the string is a URL to check the contents for non s3. Since
or
|
I was testing out sos collect and upload protocol s3 for release 4.8.1.
On the very first test the collection was uploaded to the expected S3 bucket when using
--config-file
/etc/sos/custom.conf
contents:I didn't include a case ID, the archive was uploaded to the expected prefix under a UUID, year and month (defined at the time of upload):
a75d5bb0-fd17-4422-8b1b-497310c74efd/2024/12/sos-collector-2024-12-20-yosca.tar.xz.gpg
However, I noticed that the following messages were being provided at the end, even if the archive was being uploaded to an alternative protocol.
I don't believe that anything is being uploaded to SFTP as I have each collection within the defined bucket, but the RHELPolicy isn't considering this in its version of
get_upload_url
:sos/sos/policies/distros/redhat.py
Lines 250 to 261 in a642018
The text was updated successfully, but these errors were encountered: