glance-registry services are commonly configured to use
/var filesystem to store locally Glance images and to cache images locally. It is possible to limit the maximum image size that can be uploaded to glance to avoid filling the
/var filesystem or abusing the service.
To limit the size of glance images, follow these steps:
Set the maximum image size, in bytes, that can be uploaded through the
glance-apiservice to 1 TB:
[root@controller ~]# openstack-config --set /etc/glance/glance-api.conf default image_size_cap 1099511627776
[root@controller ~]# systemctl restart openstack-glance-api [root@controller ~]# systemctl restart openstack-glance-registry