Charm option for setting image_size_cap / image-size-cap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance Charm |
Fix Released
|
Wishlist
|
Przemyslaw Hausman |
Bug Description
Hi
I couldn't find any traces of the glance image_size_cap functionality from glance settings record in the juju set/get charm changes.
The parameter for configuring this in the Openstack glance documentation https:/
"image_size_cap¶
Type: integer
Default: 1099511627776
Minimum Value: 1
Maximum Value: 9223372036854775808
Maximum size of image a user can upload in bytes. An image upload greater than the size mentioned here would result in an image creation failure. This configuration option defaults to 1099511627776 bytes (1 TiB). NOTES: * This value should only be increased after careful consideration and must be set less than or equal to 8 EiB (92233720368547
and on the set-ups glance charm unit the configs have the parameter
$ grep -r "image_size_cap" /etc/glance/
/etc/glance/
/etc/glance/
just no way to access it with charm set setting; could not find a bug for the option missing under the glance charm so filing this one;
Use case: "restrict the size of the images regular users upload to Glance via Horizon; Because we don't want users to upload excessively big images, like 30Gb+" .
Is this setting available in another format?
Thank you,
//MA
description: | updated |
tags: | added: canonical-bootstack |
Changed in charm-glance: | |
assignee: | nobody → Przemyslaw Hausman (phausman) |
milestone: | none → 19.04 |
Changed in charm-glance: | |
status: | Fix Committed → Fix Released |
It might be possible to inject this today using the config-flags option.