Earlier  
Posted Nick Remark
#openstack-sdks - 2017-03-28
08:18:10 reedip rabel :https://review.openstack.org/#/c/439299/
08:19:09 rabel reedip: i tried this, but it does not seem to work
08:19:26 reedip rabel : yes, I need to relook into this
08:20:32 rabel ok. feel free to add me to reviewers, if you upload more patches. :)
08:20:35 reedip I will take it today ..
08:20:46 reedip sure thing rabel ...
08:21:05 rabel since you already worked on the quota thing, maybe you can answer me another question
08:21:30 reedip rabel ... yessss
08:21:55 rabel the help text of argument "--default" says "Show default quotas for <project>". but isn't it the idea behind default quotas, that they don't belong to a certain project?
08:23:28 reedip rabel : IIUC , we can change the default quotas of a project
08:25:20 rabel reedip: i thought the default quotas are the quotas that are applied to a new project. what are default quotas for a project then?
08:26:17 reedip rabel : https://docs.openstack.org/admin-guide/cli-networking-advanced-quotas.html#configure-per-project-quotas
08:26:29 reedip neutron quota-default-show
08:28:49 rabel reedip: "neutron quota-default-show" as well as "openstack quota show --default" do work without providing a project
08:29:05 reedip rabel : they take the current user as the project
08:29:39 rabel reedip: ah, ok.
08:29:50 rabel reedip: but what are default quotas then?
08:30:20 reedip rabel : and the interesting thing may be here
08:30:21 reedip quota_driver = neutron.db.quota_db.DbQuotaDriver
08:30:21 reedip Set the quota_driver option in the /etc/neutron/neutron.conf file.
08:30:21 reedip Configure Networking to show per-project quotas
08:31:11 reedip this is the default quota driver, but any variant ( like RHOS, Canonical Openstack ) can create their own Quota drivers as well
08:32:04 reedip the neutron/db/quota_db.py DbQuotaDriver will have the default quotas which you want
08:33:32 reedip rabel as you see in the file ( neutron/db/quota/driver.py ) which is loaded up by neutron/db/quota_db.py
08:34:00 reedip they have created a --tenant for now, as it is possible to change default quotas per tenant in the future
08:34:20 reedip and that can be done by any third party in their own variant of the code :)
08:36:15 rabel reedip: i see the comment in the file. but i don't understand the idea behind default quotas for a project.
08:37:24 reedip Its like differentiating the quality of service of a cloud
08:38:17 reedip if a user wants to have a Gold Standard QoS, then they may have a specific default quota
08:38:40 openstackgerrit Rodolfo Alonso Hernandez proposed openstack/python-openstackclient master: Add "qos-policy" option to "port create" & "port set" https://review.openstack.org/419236
08:38:59 reedip If they have platinum , then .... you can have better number of resources in default
08:40:15 openstackgerrit Reedip proposed openstack/python-openstackclient master: Add "qos-policy" option to "port create" & "port set" https://review.openstack.org/419236
08:40:28 reedip ralonsoh : you forgot to add yourself as the author ^^
08:40:40 ralonsoh No, no problem
08:41:07 ralonsoh reedip: it was just a forgotten patch I wanted to be fixed
08:41:13 reedip I added you as well ralonsoh ... you are working on it right now
08:41:29 reedip yeah, you are working on it.... so I added you :)
08:41:46 ralonsoh reedip: okidoki!!
08:42:04 rabel reedip: in this case the customer would have one openstack-project, not? so you could just adjust the quotas for the project.
08:42:16 rabel i still don't understand. sorry ;)
08:42:27 reedip rabel : see it from a Public cloud perspective
08:42:37 reedip where multiple users can request for quotas
08:42:43 reedip something like AWS ?
08:43:04 rabel never worked with aws.
08:43:32 rabel but quotas in openstack are always project-based, right?
08:43:42 reedip rabel : neither did I , but I checked their business model
08:43:47 reedip rabel : yes
08:44:24 rabel reedip: so one project has one set of quotas.
08:44:29 reedip rabel : yes
08:44:54 rabel reedip: and additionally you have one cloud-wide default set of quotas, which is applied when a new project is created.
08:45:40 rabel reedip: or wait
08:45:55 reedip rabel : thats the thing ... you can also have a default quota for a tenant
08:46:43 rabel reedip: and when this is used? when i create a new tenant with --parent to that other tenant?
08:50:45 RuiChen dtroyer: stevemar hi, I'm drafting new commands to add network interface for a server, I have two object name "interface" and "nic" now, which one you favor? the command looks like: server add interface <server> [--network | --port]
09:00:11 rabel reedip: and also in this context: i do not understand, what a quota class is :D
09:00:39 reedip sorry , in another meeting rabel :)
09:00:46 reedip will be back in sometime
09:00:53 rabel reedip: np
09:00:57 rabel reedip: and thank you!
09:18:53 reedip rabel : hi
09:19:29 rabel reedip: welcome back :)
09:19:36 reedip currently there is no discrimination between tenants for default quotas in vanilla flavor of Openstack
09:19:52 reedip but it can be done.....
09:19:57 reedip quota class in SDK ?
09:22:16 rabel yes, i think so
09:22:35 rabel reedip: i have seen it in the openstackclient
09:22:44 rabel p.e. openstack quota set --class
09:23:00 reedip ohh that ? its similar to the project attribute
09:23:17 reedip but I am also confused a bit about its implementation, IMHO
09:24:03 rabel what i already found out: you can use this to set default quotas, by using --class default
09:24:33 reedip is it ? :D
09:24:44 rabel yes :D
09:25:57 rabel while "openstack quota set default" without --class does not work. i think it probably tries to set quotas for a project called "default". but it doesn't fail either, it just does not have the desired outcome ;)
09:27:44 reedip rabel whoa... wait !
09:28:51 reedip rabel : okay, I see your point
09:29:08 reedip So default is type of a Class
09:29:15 reedip and we can create more classes
09:29:35 reedip and set quotas as per classes on the tenants (??)
09:30:37 rabel that would be reasonable, but i think the last point is not right. because you can only either specify a project or a class (at least with openstackclient)
09:31:10 rabel actually i get the feeling, that the whole quota concept has some weaknesses ;)
09:35:58 reedip rabel thats y I had the ?? in my understanding
09:37:39 rabel reedip: do you know who could clarify this?
09:38:03 reedip rabel : as of now, I am not sure myself.. I am investigating your point
09:38:37 rabel reedip: k, thank you
09:39:40 reedip rabel : well , the openstacksdk states that network/v2/quota.py QuotaDefault should be picked up when setting the default quota
09:40:48 reedip rabel : interesting point is that --class only stores True or False :D
09:41:18 reedip rabel : python-openstackclient/openstackclient/common/quota.py
09:41:27 reedip Line#276
09:42:43 reedip and for network , it should fail ..... ??? !!!
09:42:51 rabel reedip: yes, the class is the positional argument instead of project in this case
09:43:09 reedip Line #330 states that it ignores the Quota class for networks :D
09:43:22 rabel reedip: you're right
09:43:25 rabel :D
09:44:56 reedip rabel : so ... we need to find how the quota_classes for compute client and volume client are to be done
09:45:55 reedip but cant do anything about network :)
09:47:02 reedip leaving ... catch u in 2 hours , I guess
09:47:37 rabel kk, cu
09:47:46 rabel i'll have a look at nova
11:46:07 rabel someone could have a loot at https://review.openstack.org/#/c/444924/ ? it is without review for a week now
12:14:26 reedip o/

Earlier   Later