Bug 2270150

Summary: To mitigate security risks Red Hat introduced 1 GB LimitRequestBody default size in RHEL 9.1 and broken Horizon image upload
Product: Red Hat OpenStack Reporter: Alex Stupnikov <astupnik>
Component: puppet-horizonAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED DUPLICATE QA Contact: ikanias
Severity: high Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: jjoyce, jschluet, rdopiera, slinaber, tvignaud
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-11 15:34:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex Stupnikov 2024-03-18 16:04:07 UTC
Description of problem:
RHEL engineering introduced default 1GB limit for LimitRequestBody starting with RHEL 9.1 https://access.redhat.com/articles/6975397. This change broken upload process for huge images via Horizon: upload fails with "413 Request Entity Too Large" error.

It is possible to use definitions like [1] to work around this problem, but for some reason it introduces 15-horizon_vhost.conf instead of 10-horizon_vhost.conf and breaks healthchecks https://bugzilla.redhat.com/show_bug.cgi?id=2252718#c1.

As a result, we need a solid fix here because more customers are migrating to RHOSP 17.1 and many of them are actually using Horizon to upload images.

[1]
parameter_defaults:
  HorizonVhostExtraParams:
    limitreqbody: 10737418240
    add_listen: true
    priority: 10
    access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
    options: ['FollowSymLinks','MultiViews']

Version-Release number of selected component (if applicable):
RHOSP 17

How reproducible:
"413 Request Entity Too Large" error is returned when trying to upload big images. 


Actual results:
Impossible to upload huge images via Horizon

Expected results:
Possible to upload huge images via Horizon

Comment 1 Alex Stupnikov 2024-03-18 16:05:39 UTC
Related documentation bug: https://bugzilla.redhat.com/show_bug.cgi?id=2252718

Comment 4 Radomir Dopieralski 2024-06-11 15:34:55 UTC

*** This bug has been marked as a duplicate of bug 2252736 ***