Image quota is counting the 'external' locations

Bug #1272837 reported by Feilong Wang on 2014-01-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Undecided
Unassigned

Bug Description

Based on current design/implement, we're calculating the image disk usage against ALL locations, no matter it's external or stored in the configured backend. See https://github.com/openstack/glance/blob/master/glance/db/sqlalchemy/api.py#L553

It doesn't make sense since the external location shouldn't be counted since it's not using the space of backend.

Feilong Wang (flwang) on 2014-01-26
Changed in glance:
status: New → Won't Fix
Feilong Wang (flwang) wrote :

I'm going to mark this as Won't Fix, but it's temporary based on the discussion with markwash. I will create a blueprint to track the improvements of image quota and link this bug to it.

(02:14:25 PM) markwash: flwang: hi there
(02:14:28 PM) markwash: just about to go to bed
(02:14:36 PM) flwang: markwash: ok, 3 minutes
(02:14:48 PM) flwang: markwash: https://review.openstack.org/#/c/63455/3/glance/db/simple/api.py
(02:15:04 PM) flwang: markwash: pls take a look at Eoghan's 2nd comments
(02:15:25 PM) flwang: markwash: I think it's a good point for quota calculating
(02:15:52 PM) flwang: markwash: I'd like to know your thoughts before filing a bug
(02:16:49 PM) markwash: hmm
(02:16:57 PM) markwash: yes this is why we thought quotas were silly :-)
(02:17:26 PM) flwang: markwash: hehe
(02:17:36 PM) markwash: basically, image storage quotas only make sense if you are otherwise constraining your storage system
(02:17:50 PM) markwash: like enforcing it so that all images are stored in the same way
(02:18:06 PM) markwash: I think we should open a bug about it, but probably mark it as "wontfix" and add a description for why
(02:18:36 PM) markwash: it's a temporary wontfix, in the sense that if we did come up with a good way for tracking quotas per store, we could do that
(02:18:50 PM) flwang: markwash: got it
(02:18:54 PM) markwash: maybe we can even look into a blueprint for that, but its sort of complicated
(02:19:34 PM) flwang: markwash: do you think we can create a bp to track the quota improvement, including this?
(02:19:52 PM) flwang: and we can link the bug to the bp
(02:21:36 PM) markwash: sure

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints