Skip to content

Commit 7adc336

Browse files
Merge pull request #785 from fmount/quota_doc_improvement
docs: Clarify quota behavior when registered limit is 0
2 parents ea54081 + 52aa01b commit 7adc336

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

config/samples/quotas/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ The fields above are defined at the top level CR and applied by default to all
4444
the `GlanceAPI` instances.
4545
It's not possible setup or override those values for each GlanceAPI instances
4646
independently.
47+
48+
**Note:** Setting quota limits to `0` has different implications depending on
49+
the quota type. As per the [OpenStack
50+
documentation](https://docs.openstack.org/glance/latest/admin/quotas.html#quota-strategies):
51+
- `imageCountTotal: 0` prevents users from creating any images
52+
- `imageCountUpload: 0` allows users to upload data to any image
53+
54+
For example:
55+
```yaml
56+
quotas:
57+
imageSizeTotal: 1000 # Limited to 1000 MiB total image storage
58+
imageStageTotal: 500 # Limited to 500 MiB staging space
59+
imageCountUpload: 0 # No Limit defined
60+
imageCountTotal: 100 # Limited to 100 total images
61+
```
4762
The Glance upstream [documentation](https://docs.openstack.org/glance/latest/admin/quotas.html#configuring-glance-for-per-tenant-quotas)
4863
covers this topic, and when `Quotas` are enabled as per example above, the
4964
`00-config.conf` config file is updated with the relevant config options in both

0 commit comments

Comments
 (0)