-
Notifications
You must be signed in to change notification settings - Fork 92
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
Upper case xattr incompatible to Amazon S3 #326
Comments
I don't think there is a technical reason for it, so I believe it can be changed.
|
Nice - I am already creating a PR for that. Found those two xattr already ;-) |
Convert all xattr strings to lower case to be compatible to Amazon S3 buckets.
PR created. Is there something else to do? |
Thank you very much for the PR! |
I don't want to hurry, but can you give an ETA for this to be ready and available for install on RHEL9? |
To get this fix released in RHEL9 - would you mind filing an RHEL project issue in the Jira - https://issues.redhat.com/browse/RHEL . Then the issue can be planned for one of the future RHEL9 releases. |
Done: https://issues.redhat.com/browse/RHEL-62033 We also tested the update with a manual compilation and installation: No more new version copies. >> fixed. Edit1: There are still version copys. Because reposync downloads the files and initially sets the xattr. Each setting of an xattr results in a new version copy. BUT this wont happen after the initial sync anymore. So just partially fixed. Edit2: Nevermind (sorry) ... librepo updates the xattr even if there is no change. °_° This results of course in new versions. |
Regarding the RHEL issue, it would be much easier to triage and plan if the bug report included a detailed description of the actual issue (for instance, you could copy the title and description from this GitHub issue). A request for a new release is a bit too general. Would you be open to editing or re-creating the issue with more specific details? |
Hello
we are currently in the process of migrating our mirror servers to an versioned S3 bucket in kubernetes. With RPM repos we currently have the issue, that on each sync a new versioned RPM file is created. With using
strace
we have found out, thatlibrepo
uses xattr to set mtime and some file md5/sha256 hashes.librepo
sets an xattruser.Librepo.checksum.
, but Amazon S3 [1] stores its metadata always in lower case, so the attribute will be converted touser.librepo.checksum.
. This results in an error on the next sync:After this error the xattr are set again which results in a new version copy of the file even if output of the
dnf reposync
says something like:We also did some manual tests:
Setting the xattr:
Reading the xattr:
Is there any technical reason why the string has an upper case character?
Could this string be changed to a lower case character?
[1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html
The text was updated successfully, but these errors were encountered: