Bug 1055491
| Summary: | glance: Glance quota is not enforced when the image is in a remote location (--location) | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Dafna Ron <dron> |
| Component: | openstack-glance | Assignee: | Jon Bernard <jobernar> |
| Status: | CLOSED UPSTREAM | QA Contact: | Dafna Ron <dron> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.0 | CC: | eglynn, fpercoco, jobernar, scohen, sgotliv, yeylon |
| Target Milestone: | Upstream M1 | ||
| Target Release: | 6.0 (Juno) | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | storage | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-01-27 08:50:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dafna Ron
2014-01-20 11:50:22 UTC
To be more precise. This report holds when glance is not able to *retrieve* the image size from the remote location. This is different from it not enforcing the quota for all images using `--location` The failure in the store size call can be related to many things. The url being wrong, the remote server not supporting the call we need - for instance, the HTTP store depends on the remote server support for HEAD requests - etc. There are some improvements going on in the stores already. The retrieve call I mentioned is here[0] That said, what this bug needs to address is whether checking the quota for remote locations is necessary or not. For instance, a remote location could be my own server outside the cloud provider. Why should the cloud provider enforce quota space on my own server? So, the current proposal is to either never enforce quota for remote locations or always enforce it and fail when the size couldn't be retrieve. A better fix, though, would be to have a list of store urls that have to be checked for quota space. All urls that are not in that list won't be checked. [0] https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L555 Although this may make sense for pre-configured locations (as in, let the user specify what locations should be counted for quota) I don't think this will happen any time soon. Neither in K nor L. I'm closing this as UPSTREAM and I'll let the community handle this request. |