Zun

Limit size of copied files

Bug #1780671 reported by hongbin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zun
Triaged
High
Unassigned

Bug Description

Zun supports copying files to/from a container. In CLI, this is achieved via the "zun cp" command. In REST API, this is supported via the "/v1/containers/{container_ident}/get_archive" and "/v1/containers/{container_ident}/put_archive" endpoints.

We need to have a config option (like 'copied_file_content_bytes' https://github.com/openstack/nova/blob/stable/queens/nova/conf/quota.py#L146) to limit the size of the file that is being copied for various reasons, such as QoS and security.

For example, if the limit is "4K", copying file larger than 4K will be rejected.

hongbin (hongbin034)
Changed in zun:
status: New → Triaged
importance: Undecided → High
description: updated
hongbin (hongbin034)
description: updated
Revision history for this message
Vince Mulhollon (vincemulhollon) wrote :

I would like to request that if this is ever implemented, the default be extremely large?

I am trying to copy compiled microcontroller firmware images on the order of 200K, in and out of containers, so 4K would be a little low.

I'm aware there are better ways to move files under normal conditions, however, to assist with troubleshooting activities ...

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.