Skip to content
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(uwsgi): tune settings #1047

Merged
merged 2 commits into from
Apr 3, 2024
Merged

fix(uwsgi): tune settings #1047

merged 2 commits into from
Apr 3, 2024

Conversation

mnaser
Copy link
Member

@mnaser mnaser commented Apr 2, 2024

The current uWSGI settings that we ship are missing a few important
ones, specifically http-raw-body which is used by Glance in order
to enable chunked uploads.

This is the reason why a direct upload to Glance works just fine
because it goes through the ingress (which does the chunking for
us), however, it fails when creating an image from volume due to
the fact that Cinder talks directly to Glance without the ingress
being in the path.

Closes: #1046

Signed-off-by: Mohammed Naser mnaser@vexxhost.com

@mnaser
Copy link
Member Author

mnaser commented Apr 2, 2024

recheck

@guilhermesteinmuller
Copy link
Contributor

It looks like the changes above don't take any effect. Even adding parameters exactly like here we still experience the OSError: unable to receive chunked part

@gtirloni
Copy link
Contributor

gtirloni commented Apr 3, 2024

I was able to create the image from a volume after setting glance_api_uwsgi.uwsgi.chunked-input-limit to 4096000 in charts/glance/values.yaml (default: 1M).

volume-cinder sends the contents of the image over to glance-api and I suspect the RBD driver's rbd_store_chunk_size being set to 4 (megabytes) might have something to do with this.

The current uWSGI settings that we ship are missing a few important
ones, specifically `http-raw-body` which is used by Glance in order
to enable chunked uploads.

This is the reason why a direct upload to Glance works just fine
because it goes through the ingress (which does the chunking for
us), however, it fails when creating an image from volume due to
the fact that Cinder talks directly to Glance without the ingress
being in the path.

Closes: #1046

Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
@mnaser mnaser merged commit cb5d9c3 into main Apr 3, 2024
9 checks passed
@mnaser mnaser deleted the bug/1046 branch April 3, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues when creating images from volumes
3 participants