lxd-images: Use temp file instead of memory for split-image uploads #1300

Closed
stgraber opened this Issue Nov 11, 2015 · 0 comments

Comments

Projects
None yet
1 participant
Owner

stgraber commented Nov 11, 2015

Current lxd-images prepares the LXD image upload in memory, this is fine on systems with 400MB+ of free memory but fails pretty miserably on low-memory ARM devices.

Instead of using an in-memory array, we should be writing to a tempfile and then pass an fd to urllib.

@stgraber stgraber added Bug Easy labels Nov 11, 2015

@stgraber stgraber added this to the lxd-0.23 milestone Nov 11, 2015

stgraber added a commit to stgraber/lxd that referenced this issue Nov 11, 2015

lxd-images: Use tempfile instead of memory
Closes #1300

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

@tych0 tych0 closed this in #1301 Nov 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment