Request limit exceeded: JSON body size (2299844 bytes) exceeds maximum allowed size (2097152 bytes).

Bug #1752467 reported by Yossi Ovadia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Radoslaw Smigielski

Bug Description

Deployment of RDO Queens with containers on 9 servers (3 controller, 3 storage , 3 computes ) fails with the following err-

Error validating environment for plan overcloud: ERROR: Request limit exceeded: JSON body size (2299844 bytes) exceeds maximum allowed size (2097152 bytes).

Log - http://paste.openstack.org/show/687788/

The resolved bug - https://bugs.launchpad.net/tripleo/+bug/1667697 , Changed the value to 2097152 which apparently is not enough.

Changing the value of max_json_body_size to number higher than 2299844 and restarting httpd resolved the problem.

Now the question is to what value we want to change the default ?

Yossi Ovadia (jabadia)
Changed in tripleo:
assignee: nobody → Yossi Ovadia (jabadia)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/548807

Changed in tripleo:
assignee: Yossi Ovadia (jabadia) → Radoslaw Smigielski (radoslaw-smigielski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

Fix proposed to branch: master
Review: https://review.openstack.org/548824

Changed in tripleo:
milestone: none → rocky-1
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/549750

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (master)

Reviewed: https://review.openstack.org/548824
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=8ae1c7d8fa397a398c4181b2e0b2bbd62b23cb1b
Submitter: Zuul
Branch: master

commit 8ae1c7d8fa397a398c4181b2e0b2bbd62b23cb1b
Author: Radoslaw Smigielski <email address hidden>
Date: Thu Mar 1 06:12:54 2018 +0000

    Increase size of Heat max_template_size

    Most of the HTTP servers default max body size to 1MB, Apache, Nginx.
    That default value is ok as long as users mostly get data from server
    but when something needs to be uploaded, 1MB limit is often not enough.
    This is what we see with Heat and some of the large templates.
    It's not uncommon that WSGI apps have 10MB+ body size limit,
    so with the current Heat default value we are still in low range sizes.

    Original Heat 'max_template_size' default value was 1M.
    In instack-undercloud we bumped it to 2M, bug #1667697.
    This change increases it to 4MB.

    Change-Id: Ic913ecb44dac800131292d1f3661be5b71f35a78
    Closes-Bug: 1752467

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/549750
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=c310cd131f261c5f1f5dc27437993b2954f18cdd
Submitter: Zuul
Branch: master

commit c310cd131f261c5f1f5dc27437993b2954f18cdd
Author: Radoslaw Smigielski <email address hidden>
Date: Mon Mar 5 12:43:34 2018 +0000

    Increase size of Heat HeatMaxJsonBodySize

    Most of the HTTP servers default max body size to 1MB, Apache, Nginx.
    That default value is ok as long as users mostly get data from server
    but when something needs to be uploaded, 1MB limit is often not enough.
    This is what we see with Heat and some of the large templates.
    It's not uncommon that WSGI apps have 10MB+ body size limit,
    so with the current Heat default value we are still in low range sizes.

    Original Heat template HeatMaxJsonBodySize default value was 1M and now
    it will be 4M. There is aslo corresponding change in instack-undercloud
    where we bumped 'max_template_size' to the same value.

    Change-Id: I974f6d4adbc08f2960a164b90ebb784ca466e76a
    Closes-Bug: 1752467

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/550332

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/550333

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/pike)

Reviewed: https://review.openstack.org/548807
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=04540ab3e544e65e253e47cb97dce699c0943e9e
Submitter: Zuul
Branch: stable/pike

commit 04540ab3e544e65e253e47cb97dce699c0943e9e
Author: Radoslaw Smigielski <email address hidden>
Date: Thu Mar 1 06:12:54 2018 +0000

    Increase size of Heat max_template_size

    Most of the HTTP servers default max body size to 1MB, Apache, Nginx.
    That default value is ok as long as users mostly get data from server
    but when something needs to be uploaded, 1MB limit is often not enough.
    This is what we see with Heat and some of the large templates.
    It's not uncommon that WSGI apps have 10MB+ body size limit,
    so with the current Heat default value we are still in low range sizes.

    Original Heat 'max_template_size' default value was 1M.
    In instack-undercloud we bumped it to 2M, bug #1667697.
    This change increases it to 4MB.

    Change-Id: Ic913ecb44dac800131292d1f3661be5b71f35a78
    Closes-Bug: 1752467
    (cherry picked from commit 8ae1c7d8fa397a398c4181b2e0b2bbd62b23cb1b)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/queens)

Reviewed: https://review.openstack.org/550332
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=c2b7d548eb2446e40bef5a5f7f82607fb66fba34
Submitter: Zuul
Branch: stable/queens

commit c2b7d548eb2446e40bef5a5f7f82607fb66fba34
Author: Radoslaw Smigielski <email address hidden>
Date: Thu Mar 1 06:12:54 2018 +0000

    Increase size of Heat max_template_size

    Most of the HTTP servers default max body size to 1MB, Apache, Nginx.
    That default value is ok as long as users mostly get data from server
    but when something needs to be uploaded, 1MB limit is often not enough.
    This is what we see with Heat and some of the large templates.
    It's not uncommon that WSGI apps have 10MB+ body size limit,
    so with the current Heat default value we are still in low range sizes.

    Original Heat 'max_template_size' default value was 1M.
    In instack-undercloud we bumped it to 2M, bug #1667697.
    This change increases it to 4MB.

    Change-Id: Ic913ecb44dac800131292d1f3661be5b71f35a78
    Closes-Bug: 1752467
    (cherry picked from commit 8ae1c7d8fa397a398c4181b2e0b2bbd62b23cb1b)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/queens)

Reviewed: https://review.openstack.org/550333
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=8fe461db02db05c553f4a6bccbe5760e971eec8e
Submitter: Zuul
Branch: stable/queens

commit 8fe461db02db05c553f4a6bccbe5760e971eec8e
Author: Radoslaw Smigielski <email address hidden>
Date: Mon Mar 5 12:43:34 2018 +0000

    Increase size of Heat HeatMaxJsonBodySize

    Most of the HTTP servers default max body size to 1MB, Apache, Nginx.
    That default value is ok as long as users mostly get data from server
    but when something needs to be uploaded, 1MB limit is often not enough.
    This is what we see with Heat and some of the large templates.
    It's not uncommon that WSGI apps have 10MB+ body size limit,
    so with the current Heat default value we are still in low range sizes.

    Original Heat template HeatMaxJsonBodySize default value was 1M and now
    it will be 4M. There is aslo corresponding change in instack-undercloud
    where we bumped 'max_template_size' to the same value.

    Change-Id: I974f6d4adbc08f2960a164b90ebb784ca466e76a
    Closes-Bug: 1752467
    (cherry picked from commit c310cd131f261c5f1f5dc27437993b2954f18cdd)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 7.4.11

This issue was fixed in the openstack/instack-undercloud 7.4.11 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 8.4.0

This issue was fixed in the openstack/instack-undercloud 8.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.0.0.0b1

This issue was fixed in the openstack/tripleo-heat-templates 9.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 9.0.0

This issue was fixed in the openstack/instack-undercloud 9.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 9.0.0.0b2 development milestone.

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.