Ask Your Question
1

Disk Quota for Projects

asked 2013-12-11 10:38:16 -0500

vahid gravatar image

updated 2013-12-11 10:50:40 -0500

Hi,

I remember in Folsom calling Nova API "os-quota-sets" to get a project's quota would return a "gigabytes" field that indicated the local storage (not block storage) quota for the project. However, starting in Grizzly I no longer see that field; even though in Horizon I still see a "Gigabytes" field under Edit Project screen's Quota tab.

Here's a response example from Havana (v2):

{
   "quota_set":
   {
       "injected_file_content_bytes": 10240,
       "metadata_items": 128,
       "ram": 51200,
       "floating_ips": 10,
       "key_pairs": 100,
       "id": "200c0ea64aa0414985f290763feeff00",
       "instances": 10,
       "security_group_rules": 20,
       "injected_files": 5,
       "cores": 20,
       "fixed_ips": -1,
       "injected_file_path_bytes": 255,
       "security_groups": 10
   }
}

Does anyone know why I see this inconsistency? And if there is another way of retrieving the "gigabytes" value from the APIs?

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-11 11:18:54 -0500

jtopjian gravatar image

Hello,

The "gigabytes" quota has been moved to Cinder starting with Grizzly. This one threw me for a loop, too, when I upgraded from Folsom.

Horizon is querying both Nova and Cinder behind the scenes and then compiling all quota fields for the output. You can see the Cinder portion here:

https://github.com/openstack/horizon/blob/stable/grizzly/openstack_dashboard/usage/quotas.py#L138

If I remember correctly, gigabytes was always for block storage and not local/instance storage. With Folsom, Nova was still handling this quota, but it was just doing it on behalf of Cinder. Please correct me if I'm wrong.

As far as I'm aware, there's currently no quota in Nova for local/instance storage.

Hope that helps,

Joe

edit flag offensive delete link more

Comments

Hi Joe, Thanks for clearing that out. It makes sense now. Do you happen to know why no quota setting has been designed for local storage?

vahid gravatar imagevahid ( 2013-12-11 11:50:20 -0500 )edit

I'm not exactly sure... sorry :/

jtopjian gravatar imagejtopjian ( 2013-12-11 12:38:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-11 10:38:16 -0500

Seen: 638 times

Last updated: Dec 11 '13