when upload large size of image to glance horizon, horizon hang

Bug #1712453 reported by Jeffrey Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Jeffrey Zhang
Ocata
Fix Released
Undecided
Jeffrey Zhang

Bug Description

when uploading image through horizon, the image is saved to /tmp folder as temporary. Since in default the container root is only 10GB, upload large size image will crash horizon container.

[0] https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/#where-uploaded-data-is-stored
[1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/rest/glance.py#L114-L162

Changed in kolla-ansible:
milestone: none → pike-rc1
Changed in kolla-ansible:
assignee: nobody → Jeffrey Zhang (jeffrey4l)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/496453
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=a729dcc4a2f5730ff649853c2a96ee2793b8d025
Submitter: Jenkins
Branch: master

commit a729dcc4a2f5730ff649853c2a96ee2793b8d025
Author: Jeffrey Zhang <email address hidden>
Date: Wed Aug 23 08:49:01 2017 +0800

    Mount host /tmp folder to horizon container

    When uploading an image through horizon, the image is saved in /tmp
    folder temporarily. Since the container root is only 10GB, a big image
    will crash horizon container.
    This patch mounts the host /tmp folder to horizon container.

    [0] https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/#where-uploaded-data-is-stored

    Change-Id: Idf6a137d09d9e45105c3ec86e6337dd1826f7a03
    Closes-Bug: #1712453

Changed in kolla-ansible:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/499215

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 5.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 5.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/ocata)

Reviewed: https://review.openstack.org/499215
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=dee3a4e05cddfa5f3c19eaf6a521455a2be9e220
Submitter: Jenkins
Branch: stable/ocata

commit dee3a4e05cddfa5f3c19eaf6a521455a2be9e220
Author: Jeffrey Zhang <email address hidden>
Date: Wed Aug 23 08:49:01 2017 +0800

    Mount host /tmp folder to horizon container

    When uploading an image through horizon, the image is saved in /tmp
    folder temporarily. Since the container root is only 10GB, a big image
    will crash horizon container.
    This patch mounts the host /tmp folder to horizon container.

    [0] https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/#where-uploaded-data-is-stored

    Change-Id: Idf6a137d09d9e45105c3ec86e6337dd1826f7a03
    Closes-Bug: #1712453
    (cherry picked from commit a729dcc4a2f5730ff649853c2a96ee2793b8d025)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 4.0.3

This issue was fixed in the openstack/kolla-ansible 4.0.3 release.

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.