-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix swift: fixed missing Content-Type headers issue #2665
fix swift: fixed missing Content-Type headers issue #2665
Conversation
Linting failed due to OOM kill, but I do not have the permission to rerun it :/ |
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
34a33fb
to
d68542f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late response. AFAICT the changes look good from the code's perspective. I wonder how did this work before. I will try to test this out practically in a few days.
Tested this with https://github.com/beaukode/docker-swift-onlyone-authv2-keystone. What has tripped me is that the default region is called
Not sure how no one has noticed this yet. Thanks a lot. |
…nt-type Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
437e4eb
to
1f4db39
Compare
I have fixed up the |
I guess I'll merge this to fix the current code as-is and then let's work on #2732 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Cool thanks 👍 |
Signed-off-by: Martin Chodur m.chodur@seznam.cz
Fixes #713
@sudhi-vm PTAL as a maintainer of the Swift storage integration
Changes
Full
option in ListOpts. This should provide missing headers for the gophercloud library to be able to determine content-type of the response.GetRange
which did not handle thelength: -1
correctly as not set but used it leading to incorrect rangebytes=1--1
instead ofbytes=1-
. See theRange
parameter of theGET
method in the Swift API docs.Verification
Before, two acceptance e2e tests for object storage were failing
Now all tests are passing
To be honest I do not know how this could have worked for anyone else. If it did maybe it could have been cased by different version of Swift for example? Or changes in the Gophercloud library?
I'd be really glad to hear from anyone using Swift already what version of Swift they have and how the Thanos is configured exactly.
Our Thanos objstore config for Swift:
Output of the
/info
of our Swift cluster