Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[server] Unzip storage zip file to workspace directory #3347

Merged

Conversation

csordasmarton
Copy link
Contributor

Previously the storage zip file is unzipped to the /tmp folder. It is
possible that the disk size of the host machine is not so big and when
the unzipped / decompressed zip size is too big that the user will
get No space left on device exception.

For this reason we will unzip the zip file to the workspace folder which
can be configured during a server start and it can point to an extra
network drive which size can be bigger than the host machine drive.

This patch also removes our TemporaryDirectory class because it is
available in the tempfile module since Python 3.2.

Previously the storage zip file is unzipped to the `/tmp` folder. It is
possible that the disk size of the host machine is not so big and when
the unzipped / decompressed zip size is too big that the user will
get `No space left on device` exception.

For this reason we will unzip the zip file to the workspace folder which
can be configured during a server start and it can point to an extra
network drive which size can be bigger than the host machine drive.

This patch also removes our `TemporaryDirectory` class because it is
available in the `tempfile` module since `Python 3.2`.
Copy link
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bruntib bruntib merged commit f454844 into Ericsson:master Jun 8, 2021
@csordasmarton csordasmarton deleted the unzip_to_workspace_dir_during_storage branch January 28, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants