Large remote template files cause high memory usage on API server

Bug #1233366 reported by Jason Dunsmore
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
Jason Dunsmore

Bug Description

The API downloads the entire template before validating it. For a 100 MB file, this causes the API process to use several hundred megabytes of memory. If several requests like this come in simultaneously, the API server will run out of memory.

information type: Private Security → Public
Changed in heat:
assignee: nobody → Jason Dunsmore (jasondunsmore)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/49044
Committed: http://github.com/openstack/heat/commit/7df46139580bca28c1ab3ba2c26e440617a92ccc
Submitter: Jenkins
Branch: master

commit 7df46139580bca28c1ab3ba2c26e440617a92ccc
Author: Jason Dunsmore <email address hidden>
Date: Mon Sep 30 13:13:21 2013 -0500

    Validate template size during download

    The API downloads the entire template before validating it. For a 100 MB
    file, this causes the API process to use several hundred megabytes of
    memory. If several requests like this come in simultaneously, the API
    server will run out of memory.

    Closes-Bug: #1233366

    Change-Id: I453274d62e71b3f860322dfcd98c2830ef039e9b

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → icehouse-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-1 → 2014.1
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.