horizon image upload fail - size over 1G

Bug #2025343 reported by KangWoo Lee
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Undecided
Unassigned

Bug Description

An error occurs when uploading an image larger than approximately 1 gigabytes.

it appears

{"data":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>413 Request Entity Too Large</title>\n</head><body>\n<h1>Request Entity Too Large</h1>\nThe requested resource does not allow request data with POST requests, or the amount of data provided in\nthe request exceeds the capacity limit.\n</body></html>\n","status":413,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/glance/images/","data":{"source_type":"file-legacy","data":{},"is_copying":false,"protected":false,"min_disk":30,"min_ram":0,"container_format":"bare","disk_format":"qcow2","visibility":"public","name":"CentOS-8"},"_isDigested":true,"_chunkSize":null,"headers":{"Accept":"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest","X-CSRFToken":"NHilkpdwFjreV0KoSHmXh0g8UsJGxrU4ZEOy1umVlAPXGl8ilV9qCgYWHCxhUulN"},"_deferred":{"promise":{}}},"statusText":"Request Entity Too Large","xhrStatus":"complete"}

or

TypeError: Cannot read properties of undefined (reading 'data')

It is possible that mod_deflate is imposing a restriction.

The workaround is at the bottom of horizon.conf like below

LimitRequestBody 0

or

use skyline :)

KangWoo Lee (koovis)
description: updated
description: updated
description: updated
Revision history for this message
Gaël THEROND (gtherond) wrote :

I've got the same issue using horizon deployment with kolla/kolla-ansible.

Changed in horizon:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.