Large user data (>8k) prevents creation of VMs

Bug #1098646 reported by Burt Holzman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Burt Holzman

Bug Description

This affects all openstack versions AFAIK, but we saw this with Folsom (EPEL openstack-nova-api-2012.2.2-1.el6).

We have an application that sends in large amounts of userdata via the URI. However, eventlet.wsgi.server() has url_length_limit=8192 as a default argument. (Since it was coupled with bug 1054501, it was not obvious from the server side what was going on, but the client was returning HTTP Error 414).

Here's a simple fix against master.

(edited to include a better patch):
https://github.com/holzman/nova/commit/bc05982a2691108a421594bde81ff3d16d8fedbe

Burt Holzman (holzman)
description: updated
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Burt,

Can you please submit a git review per the process here?
http://wiki.openstack.org/HowToContribute#If_you.27re_a_developer.2C_start_here:

thanks,
dims

Michael Still (mikal)
Changed in nova:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → Burt Holzman (holzman)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/19842
Committed: http://github.com/openstack/nova/commit/dfec46ac8e4cba23da842698c2bc746c03994afe
Submitter: Jenkins
Branch: master

commit dfec46ac8e4cba23da842698c2bc746c03994afe
Author: Burt Holzman <email address hidden>
Date: Thu Jan 24 00:24:09 2013 -0600

    Increase maximum URI size for EC2 API to 16k

    The EC2 API supports both HTTP GET and POST agnostically. It also supports
    user-data of 16k -- meaning that client tools could generate 16k URIs.
    The WSGI default limit is 8k; this raises it.

    Fixes bug 1098646.

    Change-Id: Idec460d88b2affab970c9d9f39fa61295db035c5

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-3 → 2013.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.