Re: [openstack-dev] [nova] nova default quotas

2014-06-17 Thread Matt Riedemann



On 6/10/2014 3:56 PM, Matt Riedemann wrote:



On 6/4/2014 11:02 AM, Day, Phil wrote:

 Matt and I chatted on IRC and have come up with an outlined plan, if
we missed anything please don't hesitate to comment or ask.

 

 https://etherpad.openstack.org/p/quota-classes-goof-up

I added a few thoughts / questions

*From:*Joe Gordon [mailto:joe.gord...@gmail.com]
*Sent:* 02 June 2014 21:52
*To:* OpenStack Development Mailing List (not for usage questions)
*Subject:* Re: [openstack-dev] [nova] nova default quotas

On Mon, Jun 2, 2014 at 12:29 PM, Matt Riedemann
mrie...@linux.vnet.ibm.com mailto:mrie...@linux.vnet.ibm.com wrote:



On 6/2/2014 12:53 PM, Joe Gordon wrote:




On Thu, May 29, 2014 at 10:46 AM, Matt Riedemann

mrie...@linux.vnet.ibm.com mailto:mrie...@linux.vnet.ibm.com
mailto:mrie...@linux.vnet.ibm.com
mailto:mrie...@linux.vnet.ibm.com wrote:



 On 5/27/2014 4:44 PM, Vishvananda Ishaya wrote:

 I’m not sure that this is the right approach. We really
have to
 add the old extension back for compatibility, so it
might be
 best to simply keep that extension instead of adding a
new way
 to do it.

 Vish

 On May 27, 2014, at 1:31 PM, Cazzolato, Sergio J
 sergio.j.cazzol...@intel.com
mailto:sergio.j.cazzol...@intel.com

 mailto:sergio.j.cazzol...@intel.com
mailto:sergio.j.cazzol...@intel.com wrote:

 I have created a blueprint to add this
functionality to nova.

https://review.openstack.org/#__/c/94519/


 https://review.openstack.org/#/c/94519/


 -Original Message-
 From: Vishvananda Ishaya
[mailto:vishvana...@gmail.com mailto:vishvana...@gmail.com
 mailto:vishvana...@gmail.com
mailto:vishvana...@gmail.com]
 Sent: Tuesday, May 27, 2014 5:11 PM
 To: OpenStack Development Mailing List (not for
usage questions)
 Subject: Re: [openstack-dev] [nova] nova default
quotas

 Phil,

 You are correct and this seems to be an error. I
don't think
 in the earlier ML thread[1] that anyone remembered
that the
 quota classes were being used for default quotas.
IMO we
 need to revert this removal as we (accidentally)
removed a
 Havana feature with no notification to the
community. I've
 reactivated a bug[2] and marked it critcal.

 Vish

 [1]


http://lists.openstack.org/__pipermail/openstack-dev/2014-__February/027574.html



http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html

 [2] https://bugs.launchpad.net/__nova/+bug/1299517


 https://bugs.launchpad.net/nova/+bug/1299517

 On May 27, 2014, at 12:19 PM, Day, Phil
philip@hp.com mailto:philip@hp.com

 mailto:philip@hp.com
mailto:philip@hp.com wrote:

 Hi Vish,

 I think quota classes have been removed from
Nova now.

 Phil


 Sent from Samsung Mobile


  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not
for usage
 questions)
 Subject: Re: [openstack-dev] [nova] nova
default quotas

 Are you aware that there is already a way to do
this
 through the cli using quota-class-update?


http://docs.openstack.org/__user-guide-admin/content/cli___set_quotas.html





http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html
 (near the bottom)

 Are you suggesting that we also add the ability
to use
 just regular quota-update? I'm not sure i see
the need
 for both.

 Vish

 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J
 sergio.j.cazzol...@intel.com
mailto:sergio.j.cazzol...@intel.com

 mailto:sergio.j.cazzol...@intel.com
mailto:sergio.j.cazzol...@intel.com wrote:

 I would to hear your thoughts about an idea
to add a
 way to manage the default quota values
through the API

Re: [openstack-dev] [nova] nova default quotas

2014-06-02 Thread Joe Gordon
On Thu, May 29, 2014 at 5:45 AM, Day, Phil philip@hp.com wrote:





 *From:* Kieran Spear [mailto:kisp...@gmail.com]
 *Sent:* 28 May 2014 06:05

 *To:* OpenStack Development Mailing List (not for usage questions)
 *Subject:* Re: [openstack-dev] [nova] nova default quotas



 Hi Joe,



 On 28/05/2014, at 11:21 AM, Joe Gordon joe.gord...@gmail.com wrote:







 On Tue, May 27, 2014 at 1:30 PM, Kieran Spear kisp...@gmail.com wrote:


 On 28/05/2014, at 6:11 AM, Vishvananda Ishaya vishvana...@gmail.com
 wrote:

  Phil,
 

  You are correct and this seems to be an error. I don’t think in the
 earlier ML thread[1] that anyone remembered that the quota classes were
 being used for default quotas. IMO we need to revert this removal as we
 (accidentally) removed a Havana feature with no notification to the
 community. I’ve reactivated a bug[2] and marked it critical.

 +1.

 We rely on this to set the default quotas in our cloud.



 Hi Kieran,



 Can you elaborate on this point. Do you actually use the full quota-class
 functionality that allows for quota classes, if so what provides the quota
 classes? If you only use this for setting the default quotas, why do you
 prefer the API and not setting the config file?



 We just need the defaults. My comment was more to indicate that yes, this
 is being used by people. I'm sure we could switch to using the config file,
 and generally I prefer to keep configuration in code, but finding out about
 this half way through a release cycle isn't ideal.



 I notice that only the API has been removed in Icehouse, so I'm assuming
 the impact is limited to *changing* the defaults, which we don't do often.
 I was initially worried that after upgrading to Icehouse we'd be left with
 either no quotas or whatever the config file defaults are, but it looks
 like this isn't the case.



 Unfortunately the API removal in Nova was followed by similar changes in
 novaclient and Horizon, so fixing Icehouse at this point is probably going
 to be difficult.



 *[Day, Phil]  I think we should revert the changes in all three system
 then.   We have the rules about not breaking API compatibility in place for
 a reason, if we want to be taken seriously as a stable API then we need to
 be prepared to roll back if we goof-up.*



 *Joe – was there a nova-specs BP for the change ?  I’m wondering how this
 one slipped through*


That's a good question.

the API extension quota-classes has been around for a very long time and
never actually worked [0]. This was brought up again in February 2014 and
the original author chimed in saying it doesn't work [1]. When this came up
there was no discussion around the default quota value functionality, and
it didn't come up in any of the reviews. Because this was supposed to be
just removing dead code there as no nova-specs BP for it.


[0] http://lists.openstack.org/pipermail/openstack-dev/2014-May/036053.html
[1]
http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html







 Cheers,

 Kieran






 Kieran


 
  Vish
 
  [1]
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
  [2] https://bugs.launchpad.net/nova/+bug/1299517
 
  On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:
 
  Hi Vish,
 
  I think quota classes have been removed from Nova now.
 
  Phil
 
 
  Sent from Samsung Mobile
 
 
   Original message 
  From: Vishvananda Ishaya
  Date:27/05/2014 19:24 (GMT+00:00)
  To: OpenStack Development Mailing List (not for usage questions)
  Subject: Re: [openstack-dev] [nova] nova default quotas
 
  Are you aware that there is already a way to do this through the cli
 using quota-class-update?
 
  http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html
 (near the bottom)
 
  Are you suggesting that we also add the ability to use just regular
 quota-update? I’m not sure i see the need for both.
 
  Vish
 
  On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:
 
  I would to hear your thoughts about an idea to add a way to manage the
 default quota values through the API.
 
  The idea is to use the current quota api, but sending ''default'
 instead of the tenant_id. This change would apply to quota-show and
 quota-update methods.
 
  This approach will help to simplify the implementation of another
 blueprint named per-flavor-quotas
 
  Feedback? Suggestions?
 
 
  Sergio Juan Cazzolato
  Intel Software Argentina
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org

Re: [openstack-dev] [nova] nova default quotas

2014-06-02 Thread Joe Gordon
On Thu, May 29, 2014 at 10:46 AM, Matt Riedemann mrie...@linux.vnet.ibm.com
 wrote:



 On 5/27/2014 4:44 PM, Vishvananda Ishaya wrote:

 I’m not sure that this is the right approach. We really have to add the
 old extension back for compatibility, so it might be best to simply keep
 that extension instead of adding a new way to do it.

 Vish

 On May 27, 2014, at 1:31 PM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:

  I have created a blueprint to add this functionality to nova.

 https://review.openstack.org/#/c/94519/


 -Original Message-
 From: Vishvananda Ishaya [mailto:vishvana...@gmail.com]
 Sent: Tuesday, May 27, 2014 5:11 PM
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Phil,

 You are correct and this seems to be an error. I don't think in the
 earlier ML thread[1] that anyone remembered that the quota classes were
 being used for default quotas. IMO we need to revert this removal as we
 (accidentally) removed a Havana feature with no notification to the
 community. I've reactivated a bug[2] and marked it critcal.

 Vish

 [1] http://lists.openstack.org/pipermail/openstack-dev/2014-
 February/027574.html
 [2] https://bugs.launchpad.net/nova/+bug/1299517

 On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:

  Hi Vish,

 I think quota classes have been removed from Nova now.

 Phil


 Sent from Samsung Mobile


  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Are you aware that there is already a way to do this through the cli
 using quota-class-update?

 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html
 (near the bottom)

 Are you suggesting that we also add the ability to use just regular
 quota-update? I'm not sure i see the need for both.

 Vish

 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:

  I would to hear your thoughts about an idea to add a way to manage the
 default quota values through the API.

 The idea is to use the current quota api, but sending ''default'
 instead of the tenant_id. This change would apply to quota-show and
 quota-update methods.

 This approach will help to simplify the implementation of another
 blueprint named per-flavor-quotas

 Feedback? Suggestions?


 Sergio Juan Cazzolato
 Intel Software Argentina

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 The reverted series for nova on master is here [1].


I don't think we want a full revert here, the feature that we broke is the
ability to easily update the default quota values without restarting any
services, not quota-classes themselves. Given that I see 3 paths forward:

1. Provide an alternate way to do this. OpenStack already has an implicit
assumption that one has a way of rolling out config files across all
machines. so we can teach oslo.config to know which config options can be
updated without a restart.  While this definitely breaks the API, this is a
rarely used API and we can avoid breaking functionality at least.
2. Do a partial revert of this API to only support overriding the default
quota values. Hopefully while doing this we can simplify the quota logic
and reduce the number of DB calls needed. This way we can restore the
working part of the API and not the unimplemented quota-class logic itself.
3. Do a full revert and re-add all the unimplemented quota-class logic, we
now have just re-added a non-working API.

While I would prefer to take path 1 as I think that gets us closer to where
we should be, I think path 2 is safer approach.



 Once that's merged I can work on backporting the revert for the API change
 to stable/icehouse, which will be a little tricky given conflicts from
 master.

 [1] https://review.openstack.org/#/q/status:open+project:
 openstack/nova+branch:master+topic:restore-quota-class,n,z

 --

 Thanks,

 Matt Riedemann



 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev

Re: [openstack-dev] [nova] nova default quotas

2014-06-02 Thread Matt Riedemann



On 6/2/2014 12:53 PM, Joe Gordon wrote:




On Thu, May 29, 2014 at 10:46 AM, Matt Riedemann
mrie...@linux.vnet.ibm.com mailto:mrie...@linux.vnet.ibm.com wrote:



On 5/27/2014 4:44 PM, Vishvananda Ishaya wrote:

I’m not sure that this is the right approach. We really have to
add the old extension back for compatibility, so it might be
best to simply keep that extension instead of adding a new way
to do it.

Vish

On May 27, 2014, at 1:31 PM, Cazzolato, Sergio J
sergio.j.cazzol...@intel.com
mailto:sergio.j.cazzol...@intel.com wrote:

I have created a blueprint to add this functionality to nova.

https://review.openstack.org/#__/c/94519/
https://review.openstack.org/#/c/94519/


-Original Message-
From: Vishvananda Ishaya [mailto:vishvana...@gmail.com
mailto:vishvana...@gmail.com]
Sent: Tuesday, May 27, 2014 5:11 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Phil,

You are correct and this seems to be an error. I don't think
in the earlier ML thread[1] that anyone remembered that the
quota classes were being used for default quotas. IMO we
need to revert this removal as we (accidentally) removed a
Havana feature with no notification to the community. I've
reactivated a bug[2] and marked it critcal.

Vish

[1]

http://lists.openstack.org/__pipermail/openstack-dev/2014-__February/027574.html

http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
[2] https://bugs.launchpad.net/__nova/+bug/1299517
https://bugs.launchpad.net/nova/+bug/1299517

On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com
mailto:philip@hp.com wrote:

Hi Vish,

I think quota classes have been removed from Nova now.

Phil


Sent from Samsung Mobile


 Original message 
From: Vishvananda Ishaya
Date:27/05/2014 19:24 (GMT+00:00)
To: OpenStack Development Mailing List (not for usage
questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Are you aware that there is already a way to do this
through the cli using quota-class-update?


http://docs.openstack.org/__user-guide-admin/content/cli___set_quotas.html

http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html
(near the bottom)

Are you suggesting that we also add the ability to use
just regular quota-update? I'm not sure i see the need
for both.

Vish

On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J
sergio.j.cazzol...@intel.com
mailto:sergio.j.cazzol...@intel.com wrote:

I would to hear your thoughts about an idea to add a
way to manage the default quota values through the API.

The idea is to use the current quota api, but
sending ''default' instead of the tenant_id. This
change would apply to quota-show and quota-update
methods.

This approach will help to simplify the
implementation of another blueprint named
per-flavor-quotas

Feedback? Suggestions?


Sergio Juan Cazzolato
Intel Software Argentina

_
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.__org
mailto:OpenStack-dev@lists.openstack.org

http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev

http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.__org
mailto:OpenStack-dev@lists.openstack.org

http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev

http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.__org
mailto:OpenStack-dev@lists.openstack.org

http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev
http

Re: [openstack-dev] [nova] nova default quotas

2014-06-02 Thread Joe Gordon
On Mon, Jun 2, 2014 at 12:29 PM, Matt Riedemann mrie...@linux.vnet.ibm.com
wrote:



 On 6/2/2014 12:53 PM, Joe Gordon wrote:




 On Thu, May 29, 2014 at 10:46 AM, Matt Riedemann
 mrie...@linux.vnet.ibm.com mailto:mrie...@linux.vnet.ibm.com wrote:



 On 5/27/2014 4:44 PM, Vishvananda Ishaya wrote:

 I’m not sure that this is the right approach. We really have to
 add the old extension back for compatibility, so it might be
 best to simply keep that extension instead of adding a new way
 to do it.

 Vish

 On May 27, 2014, at 1:31 PM, Cazzolato, Sergio J
 sergio.j.cazzol...@intel.com
 mailto:sergio.j.cazzol...@intel.com wrote:

 I have created a blueprint to add this functionality to nova.

 https://review.openstack.org/#__/c/94519/

 https://review.openstack.org/#/c/94519/


 -Original Message-
 From: Vishvananda Ishaya [mailto:vishvana...@gmail.com
 mailto:vishvana...@gmail.com]
 Sent: Tuesday, May 27, 2014 5:11 PM
 To: OpenStack Development Mailing List (not for usage
 questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Phil,

 You are correct and this seems to be an error. I don't think
 in the earlier ML thread[1] that anyone remembered that the
 quota classes were being used for default quotas. IMO we
 need to revert this removal as we (accidentally) removed a
 Havana feature with no notification to the community. I've
 reactivated a bug[2] and marked it critcal.

 Vish

 [1]
 http://lists.openstack.org/__pipermail/openstack-dev/2014-_
 _February/027574.html
 http://lists.openstack.org/pipermail/openstack-dev/2014-
 February/027574.html
 [2] https://bugs.launchpad.net/__nova/+bug/1299517

 https://bugs.launchpad.net/nova/+bug/1299517

 On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com
 mailto:philip@hp.com wrote:

 Hi Vish,

 I think quota classes have been removed from Nova now.

 Phil


 Sent from Samsung Mobile


  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage
 questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Are you aware that there is already a way to do this
 through the cli using quota-class-update?

 http://docs.openstack.org/__
 user-guide-admin/content/cli___set_quotas.html

 http://docs.openstack.org/user-guide-admin/content/cli_
 set_quotas.html
 (near the bottom)

 Are you suggesting that we also add the ability to use
 just regular quota-update? I'm not sure i see the need
 for both.

 Vish

 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J
 sergio.j.cazzol...@intel.com
 mailto:sergio.j.cazzol...@intel.com wrote:

 I would to hear your thoughts about an idea to add a
 way to manage the default quota values through the
 API.

 The idea is to use the current quota api, but
 sending ''default' instead of the tenant_id. This
 change would apply to quota-show and quota-update
 methods.

 This approach will help to simplify the
 implementation of another blueprint named
 per-flavor-quotas

 Feedback? Suggestions?


 Sergio Juan Cazzolato
 Intel Software Argentina

 _
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.__org
 mailto:OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/__
 cgi-bin/mailman/listinfo/__openstack-dev
 http://lists.openstack.org/cgi-bin/mailman/listinfo/
 openstack-dev



 _
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.__org
 mailto:OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/__cgi-bin/mailman/listinfo/__
 openstack-dev
 http://lists.openstack.org/cgi-bin/mailman/listinfo/
 openstack-dev



 _
 OpenStack-dev mailing list
 OpenStack-dev

Re: [openstack-dev] [nova] nova default quotas

2014-05-29 Thread Day, Phil


From: Kieran Spear [mailto:kisp...@gmail.com]
Sent: 28 May 2014 06:05
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Hi Joe,

On 28/05/2014, at 11:21 AM, Joe Gordon 
joe.gord...@gmail.commailto:joe.gord...@gmail.com wrote:




On Tue, May 27, 2014 at 1:30 PM, Kieran Spear 
kisp...@gmail.commailto:kisp...@gmail.com wrote:


On 28/05/2014, at 6:11 AM, Vishvananda Ishaya 
vishvana...@gmail.commailto:vishvana...@gmail.com wrote:

 Phil,

 You are correct and this seems to be an error. I don't think in the earlier 
 ML thread[1] that anyone remembered that the quota classes were being used 
 for default quotas. IMO we need to revert this removal as we (accidentally) 
 removed a Havana feature with no notification to the community. I've 
 reactivated a bug[2] and marked it critical.

+1.

We rely on this to set the default quotas in our cloud.

Hi Kieran,

Can you elaborate on this point. Do you actually use the full quota-class 
functionality that allows for quota classes, if so what provides the quota 
classes? If you only use this for setting the default quotas, why do you prefer 
the API and not setting the config file?

We just need the defaults. My comment was more to indicate that yes, this is 
being used by people. I'm sure we could switch to using the config file, and 
generally I prefer to keep configuration in code, but finding out about this 
half way through a release cycle isn't ideal.

I notice that only the API has been removed in Icehouse, so I'm assuming the 
impact is limited to *changing* the defaults, which we don't do often. I was 
initially worried that after upgrading to Icehouse we'd be left with either no 
quotas or whatever the config file defaults are, but it looks like this isn't 
the case.

Unfortunately the API removal in Nova was followed by similar changes in 
novaclient and Horizon, so fixing Icehouse at this point is probably going to 
be difficult.

[Day, Phil]  I think we should revert the changes in all three system then.   
We have the rules about not breaking API compatibility in place for a reason, 
if we want to be taken seriously as a stable API then we need to be prepared to 
roll back if we goof-up.

Joe - was there a nova-specs BP for the change ?  I'm wondering how this one 
slipped through


Cheers,
Kieran




Kieran


 Vish

 [1] 
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
 [2] https://bugs.launchpad.net/nova/+bug/1299517

 On May 27, 2014, at 12:19 PM, Day, Phil 
 philip@hp.commailto:philip@hp.com wrote:

 Hi Vish,

 I think quota classes have been removed from Nova now.

 Phil


 Sent from Samsung Mobile


  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Are you aware that there is already a way to do this through the cli using 
 quota-class-update?

 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
 the bottom)

 Are you suggesting that we also add the ability to use just regular 
 quota-update? I'm not sure i see the need for both.

 Vish

 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.commailto:sergio.j.cazzol...@intel.com wrote:

 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.

 The idea is to use the current quota api, but sending ''default' instead of 
 the tenant_id. This change would apply to quota-show and quota-update 
 methods.

 This approach will help to simplify the implementation of another blueprint 
 named per-flavor-quotas

 Feedback? Suggestions?


 Sergio Juan Cazzolato
 Intel Software Argentina

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.orgmailto:OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.orgmailto:OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.orgmailto:OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.orgmailto:OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.orgmailto:OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev

Re: [openstack-dev] [nova] nova default quotas

2014-05-29 Thread Matt Riedemann



On 5/27/2014 4:44 PM, Vishvananda Ishaya wrote:

I’m not sure that this is the right approach. We really have to add the old 
extension back for compatibility, so it might be best to simply keep that 
extension instead of adding a new way to do it.

Vish

On May 27, 2014, at 1:31 PM, Cazzolato, Sergio J sergio.j.cazzol...@intel.com 
wrote:


I have created a blueprint to add this functionality to nova.

https://review.openstack.org/#/c/94519/


-Original Message-
From: Vishvananda Ishaya [mailto:vishvana...@gmail.com]
Sent: Tuesday, May 27, 2014 5:11 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Phil,

You are correct and this seems to be an error. I don't think in the earlier ML 
thread[1] that anyone remembered that the quota classes were being used for 
default quotas. IMO we need to revert this removal as we (accidentally) removed 
a Havana feature with no notification to the community. I've reactivated a 
bug[2] and marked it critcal.

Vish

[1] http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
[2] https://bugs.launchpad.net/nova/+bug/1299517

On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:


Hi Vish,

I think quota classes have been removed from Nova now.

Phil


Sent from Samsung Mobile


 Original message 
From: Vishvananda Ishaya
Date:27/05/2014 19:24 (GMT+00:00)
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Are you aware that there is already a way to do this through the cli using 
quota-class-update?

http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
the bottom)

Are you suggesting that we also add the ability to use just regular 
quota-update? I'm not sure i see the need for both.

Vish

On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J sergio.j.cazzol...@intel.com 
wrote:


I would to hear your thoughts about an idea to add a way to manage the default 
quota values through the API.

The idea is to use the current quota api, but sending ''default' instead of the 
tenant_id. This change would apply to quota-show and quota-update methods.

This approach will help to simplify the implementation of another blueprint 
named per-flavor-quotas

Feedback? Suggestions?


Sergio Juan Cazzolato
Intel Software Argentina

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



The reverted series for nova on master is here [1].

Once that's merged I can work on backporting the revert for the API 
change to stable/icehouse, which will be a little tricky given conflicts 
from master.


[1] 
https://review.openstack.org/#/q/status:open+project:openstack/nova+branch:master+topic:restore-quota-class,n,z


--

Thanks,

Matt Riedemann


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-28 Thread Cazzolato, Sergio J
Hi Kieran, 

What do you think about the approach proposed in 
https://review.openstack.org/#/c/94519/ ?

What we are trying to do is to simplify the way to manage default quotas 
through an API and keeping backward compatibility. So doing this is not needed 
to restart any service once a default quota is changed, something that could be 
painful when there are many services running in parallel. 


From: Kieran Spear [mailto:kisp...@gmail.com] 
Sent: Wednesday, May 28, 2014 2:05 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Hi Joe,

On 28/05/2014, at 11:21 AM, Joe Gordon joe.gord...@gmail.com wrote:




On Tue, May 27, 2014 at 1:30 PM, Kieran Spear kisp...@gmail.com wrote:


On 28/05/2014, at 6:11 AM, Vishvananda Ishaya vishvana...@gmail.com wrote:

 Phil,

 You are correct and this seems to be an error. I don't think in the earlier 
 ML thread[1] that anyone remembered that the quota classes were being used 
 for default quotas. IMO we need to revert this removal as we (accidentally) 
 removed a Havana feature with no notification to the community. I've 
 reactivated a bug[2] and marked it critical.

+1.

We rely on this to set the default quotas in our cloud.

Hi Kieran,

Can you elaborate on this point. Do you actually use the full quota-class 
functionality that allows for quota classes, if so what provides the quota 
classes? If you only use this for setting the default quotas, why do you prefer 
the API and not setting the config file?

We just need the defaults. My comment was more to indicate that yes, this is 
being used by people. I'm sure we could switch to using the config file, and 
generally I prefer to keep configuration in code, but finding out about this 
half way through a release cycle isn't ideal.

I notice that only the API has been removed in Icehouse, so I'm assuming the 
impact is limited to *changing* the defaults, which we don't do often. I was 
initially worried that after upgrading to Icehouse we'd be left with either no 
quotas or whatever the config file defaults are, but it looks like this isn't 
the case.

Unfortunately the API removal in Nova was followed by similar changes in 
novaclient and Horizon, so fixing Icehouse at this point is probably going to 
be difficult.

Cheers,
Kieran


 

Kieran


 Vish

 [1] 
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
 [2] https://bugs.launchpad.net/nova/+bug/1299517

 On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:

 Hi Vish,

 I think quota classes have been removed from Nova now.

 Phil


 Sent from Samsung Mobile


  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Are you aware that there is already a way to do this through the cli using 
 quota-class-update?

 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
 the bottom)

 Are you suggesting that we also add the ability to use just regular 
 quota-update? I'm not sure i see the need for both.

 Vish

 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:

 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.

 The idea is to use the current quota api, but sending ''default' instead of 
 the tenant_id. This change would apply to quota-show and quota-update 
 methods.

 This approach will help to simplify the implementation of another blueprint 
 named per-flavor-quotas

 Feedback? Suggestions?


 Sergio Juan Cazzolato
 Intel Software Argentina

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-28 Thread Kieran Spear
Hi Sergio,

On 28 May 2014 23:28, Cazzolato, Sergio J sergio.j.cazzol...@intel.com wrote:
 Hi Kieran,

 What do you think about the approach proposed in 
 https://review.openstack.org/#/c/94519/ ?

 What we are trying to do is to simplify the way to manage default quotas 
 through an API and keeping backward compatibility. So doing this is not 
 needed to restart any service once a default quota is changed, something that 
 could be painful when there are many services running in parallel.

If the current spec is implemented as-is, when we upgrade to Juno our
default quotas will be wrong. Like Joe mentioned, the table wasn't
dropped in Icehouse (and the underlying default quotas still work), so
my only concern at this point is that users don't have to do
*anything* in order to ensure that default quotas are maintained
during an Icehouse - Juno upgrade. Whether this should happen as part
of your spec, or another spec designed to address just this issue, I
don't know.

Cheers,
Kieran




 From: Kieran Spear [mailto:kisp...@gmail.com]
 Sent: Wednesday, May 28, 2014 2:05 AM
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Hi Joe,

 On 28/05/2014, at 11:21 AM, Joe Gordon joe.gord...@gmail.com wrote:




 On Tue, May 27, 2014 at 1:30 PM, Kieran Spear kisp...@gmail.com wrote:


 On 28/05/2014, at 6:11 AM, Vishvananda Ishaya vishvana...@gmail.com wrote:

 Phil,

 You are correct and this seems to be an error. I don't think in the earlier 
 ML thread[1] that anyone remembered that the quota classes were being used 
 for default quotas. IMO we need to revert this removal as we (accidentally) 
 removed a Havana feature with no notification to the community. I've 
 reactivated a bug[2] and marked it critical.

 +1.

 We rely on this to set the default quotas in our cloud.

 Hi Kieran,

 Can you elaborate on this point. Do you actually use the full quota-class 
 functionality that allows for quota classes, if so what provides the quota 
 classes? If you only use this for setting the default quotas, why do you 
 prefer the API and not setting the config file?

 We just need the defaults. My comment was more to indicate that yes, this is 
 being used by people. I'm sure we could switch to using the config file, and 
 generally I prefer to keep configuration in code, but finding out about this 
 half way through a release cycle isn't ideal.

 I notice that only the API has been removed in Icehouse, so I'm assuming the 
 impact is limited to *changing* the defaults, which we don't do often. I was 
 initially worried that after upgrading to Icehouse we'd be left with either 
 no quotas or whatever the config file defaults are, but it looks like this 
 isn't the case.

 Unfortunately the API removal in Nova was followed by similar changes in 
 novaclient and Horizon, so fixing Icehouse at this point is probably going to 
 be difficult.

 Cheers,
 Kieran




 Kieran


 Vish

 [1] 
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
 [2] https://bugs.launchpad.net/nova/+bug/1299517

 On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:

 Hi Vish,

 I think quota classes have been removed from Nova now.

 Phil


 Sent from Samsung Mobile


  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas

 Are you aware that there is already a way to do this through the cli using 
 quota-class-update?

 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html 
 (near the bottom)

 Are you suggesting that we also add the ability to use just regular 
 quota-update? I'm not sure i see the need for both.

 Vish

 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:

 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.

 The idea is to use the current quota api, but sending ''default' instead 
 of the tenant_id. This change would apply to quota-show and quota-update 
 methods.

 This approach will help to simplify the implementation of another 
 blueprint named per-flavor-quotas

 Feedback? Suggestions?


 Sergio Juan Cazzolato
 Intel Software Argentina

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list

Re: [openstack-dev] [nova] nova default quotas

2014-05-28 Thread Robert Collins
On 28 May 2014 13:21, Joe Gordon joe.gord...@gmail.com wrote:

 Hi Kieran,

 Can you elaborate on this point. Do you actually use the full quota-class
 functionality that allows for quota classes, if so what provides the quota
 classes? If you only use this for setting the default quotas, why do you
 prefer the API and not setting the config file?

Config files are icky? :)

Seriously though - for 'there is one value' stuff, having an API to
set it rather than having it duplicated across many machines is really
quite convenient.

Queue bikeshedding on how to do that in a sane scalable, low-maintenance way.

-Rob


-- 
Robert Collins rbtcoll...@hp.com
Distinguished Technologist
HP Converged Cloud

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Scott Devoid
Also I would prefer that we not add special tenant names. Roles already
had/has problems with admin, Member and _member_ having special
meaning in some projects.

~ Scott


On Tue, May 27, 2014 at 1:20 PM, Vishvananda Ishaya
vishvana...@gmail.comwrote:

 Are you aware that there is already a way to do this through the cli using
 quota-class-update?

 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html(near 
 the bottom)

 Are you suggesting that we also add the ability to use just regular
 quota-update? I’m not sure i see the need for both.

 Vish

 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:

  I would to hear your thoughts about an idea to add a way to manage the
 default quota values through the API.
 
  The idea is to use the current quota api, but sending ''default' instead
 of the tenant_id. This change would apply to quota-show and quota-update
 methods.
 
  This approach will help to simplify the implementation of another
 blueprint named per-flavor-quotas
 
  Feedback? Suggestions?
 
 
  Sergio Juan Cazzolato
  Intel Software Argentina
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Day, Phil
Hi Vish,

I think quota classes have been removed from Nova now.

Phil


Sent from Samsung Mobile


 Original message 
From: Vishvananda Ishaya
Date:27/05/2014 19:24 (GMT+00:00)
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Are you aware that there is already a way to do this through the cli using 
quota-class-update?

http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
the bottom)

Are you suggesting that we also add the ability to use just regular 
quota-update? I’m not sure i see the need for both.

Vish

On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J sergio.j.cazzol...@intel.com 
wrote:

 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.

 The idea is to use the current quota api, but sending ''default' instead of 
 the tenant_id. This change would apply to quota-show and quota-update methods.

 This approach will help to simplify the implementation of another blueprint 
 named per-flavor-quotas

 Feedback? Suggestions?


 Sergio Juan Cazzolato
 Intel Software Argentina

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Vishvananda Ishaya
Phil,

You are correct and this seems to be an error. I don’t think in the earlier ML 
thread[1] that anyone remembered that the quota classes were being used for 
default quotas. IMO we need to revert this removal as we (accidentally) removed 
a Havana feature with no notification to the community. I’ve reactivated a 
bug[2] and marked it critcal.

Vish

[1] http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
[2] https://bugs.launchpad.net/nova/+bug/1299517

On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:

 Hi Vish,
 
 I think quota classes have been removed from Nova now.
 
 Phil
 
 
 Sent from Samsung Mobile
 
 
  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas
 
 Are you aware that there is already a way to do this through the cli using 
 quota-class-update?
 
 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
 the bottom)
 
 Are you suggesting that we also add the ability to use just regular 
 quota-update? I’m not sure i see the need for both.
 
 Vish
 
 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:
 
 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.
 
 The idea is to use the current quota api, but sending ''default' instead of 
 the tenant_id. This change would apply to quota-show and quota-update 
 methods.
 
 This approach will help to simplify the implementation of another blueprint 
 named per-flavor-quotas
 
 Feedback? Suggestions?
 
 
 Sergio Juan Cazzolato
 Intel Software Argentina
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Kieran Spear

On 28/05/2014, at 6:11 AM, Vishvananda Ishaya vishvana...@gmail.com wrote:

 Phil,
 
 You are correct and this seems to be an error. I don’t think in the earlier 
 ML thread[1] that anyone remembered that the quota classes were being used 
 for default quotas. IMO we need to revert this removal as we (accidentally) 
 removed a Havana feature with no notification to the community. I’ve 
 reactivated a bug[2] and marked it critical.

+1.

We rely on this to set the default quotas in our cloud.

Kieran

 
 Vish
 
 [1] 
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
 [2] https://bugs.launchpad.net/nova/+bug/1299517
 
 On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:
 
 Hi Vish,
 
 I think quota classes have been removed from Nova now.
 
 Phil
 
 
 Sent from Samsung Mobile
 
 
  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas
 
 Are you aware that there is already a way to do this through the cli using 
 quota-class-update?
 
 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
 the bottom)
 
 Are you suggesting that we also add the ability to use just regular 
 quota-update? I’m not sure i see the need for both.
 
 Vish
 
 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:
 
 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.
 
 The idea is to use the current quota api, but sending ''default' instead of 
 the tenant_id. This change would apply to quota-show and quota-update 
 methods.
 
 This approach will help to simplify the implementation of another blueprint 
 named per-flavor-quotas
 
 Feedback? Suggestions?
 
 
 Sergio Juan Cazzolato
 Intel Software Argentina
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Cazzolato, Sergio J
I have created a blueprint to add this functionality to nova.

https://review.openstack.org/#/c/94519/


-Original Message-
From: Vishvananda Ishaya [mailto:vishvana...@gmail.com] 
Sent: Tuesday, May 27, 2014 5:11 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] nova default quotas

Phil,

You are correct and this seems to be an error. I don't think in the earlier ML 
thread[1] that anyone remembered that the quota classes were being used for 
default quotas. IMO we need to revert this removal as we (accidentally) removed 
a Havana feature with no notification to the community. I've reactivated a 
bug[2] and marked it critcal.

Vish

[1] http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
[2] https://bugs.launchpad.net/nova/+bug/1299517

On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:

 Hi Vish,
 
 I think quota classes have been removed from Nova now.
 
 Phil
 
 
 Sent from Samsung Mobile
 
 
  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas
 
 Are you aware that there is already a way to do this through the cli using 
 quota-class-update?
 
 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
 the bottom)
 
 Are you suggesting that we also add the ability to use just regular 
 quota-update? I'm not sure i see the need for both.
 
 Vish
 
 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:
 
 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.
 
 The idea is to use the current quota api, but sending ''default' instead of 
 the tenant_id. This change would apply to quota-show and quota-update 
 methods.
 
 This approach will help to simplify the implementation of another blueprint 
 named per-flavor-quotas
 
 Feedback? Suggestions?
 
 
 Sergio Juan Cazzolato
 Intel Software Argentina
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Vishvananda Ishaya
I’m not sure that this is the right approach. We really have to add the old 
extension back for compatibility, so it might be best to simply keep that 
extension instead of adding a new way to do it.

Vish

On May 27, 2014, at 1:31 PM, Cazzolato, Sergio J sergio.j.cazzol...@intel.com 
wrote:

 I have created a blueprint to add this functionality to nova.
 
 https://review.openstack.org/#/c/94519/
 
 
 -Original Message-
 From: Vishvananda Ishaya [mailto:vishvana...@gmail.com] 
 Sent: Tuesday, May 27, 2014 5:11 PM
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas
 
 Phil,
 
 You are correct and this seems to be an error. I don't think in the earlier 
 ML thread[1] that anyone remembered that the quota classes were being used 
 for default quotas. IMO we need to revert this removal as we (accidentally) 
 removed a Havana feature with no notification to the community. I've 
 reactivated a bug[2] and marked it critcal.
 
 Vish
 
 [1] 
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
 [2] https://bugs.launchpad.net/nova/+bug/1299517
 
 On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:
 
 Hi Vish,
 
 I think quota classes have been removed from Nova now.
 
 Phil
 
 
 Sent from Samsung Mobile
 
 
  Original message 
 From: Vishvananda Ishaya
 Date:27/05/2014 19:24 (GMT+00:00)
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [nova] nova default quotas
 
 Are you aware that there is already a way to do this through the cli using 
 quota-class-update?
 
 http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html (near 
 the bottom)
 
 Are you suggesting that we also add the ability to use just regular 
 quota-update? I'm not sure i see the need for both.
 
 Vish
 
 On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:
 
 I would to hear your thoughts about an idea to add a way to manage the 
 default quota values through the API.
 
 The idea is to use the current quota api, but sending ''default' instead of 
 the tenant_id. This change would apply to quota-show and quota-update 
 methods.
 
 This approach will help to simplify the implementation of another blueprint 
 named per-flavor-quotas
 
 Feedback? Suggestions?
 
 
 Sergio Juan Cazzolato
 Intel Software Argentina
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Joe Gordon
On Tue, May 27, 2014 at 1:30 PM, Kieran Spear kisp...@gmail.com wrote:


 On 28/05/2014, at 6:11 AM, Vishvananda Ishaya vishvana...@gmail.com
 wrote:

  Phil,
 
  You are correct and this seems to be an error. I don’t think in the
 earlier ML thread[1] that anyone remembered that the quota classes were
 being used for default quotas. IMO we need to revert this removal as we
 (accidentally) removed a Havana feature with no notification to the
 community. I’ve reactivated a bug[2] and marked it critical.

 +1.

 We rely on this to set the default quotas in our cloud.


Hi Kieran,

Can you elaborate on this point. Do you actually use the full quota-class
functionality that allows for quota classes, if so what provides the quota
classes? If you only use this for setting the default quotas, why do you
prefer the API and not setting the config file?



 Kieran

 
  Vish
 
  [1]
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
  [2] https://bugs.launchpad.net/nova/+bug/1299517
 
  On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:
 
  Hi Vish,
 
  I think quota classes have been removed from Nova now.
 
  Phil
 
 
  Sent from Samsung Mobile
 
 
   Original message 
  From: Vishvananda Ishaya
  Date:27/05/2014 19:24 (GMT+00:00)
  To: OpenStack Development Mailing List (not for usage questions)
  Subject: Re: [openstack-dev] [nova] nova default quotas
 
  Are you aware that there is already a way to do this through the cli
 using quota-class-update?
 
  http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html(near
   the bottom)
 
  Are you suggesting that we also add the ability to use just regular
 quota-update? I’m not sure i see the need for both.
 
  Vish
 
  On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:
 
  I would to hear your thoughts about an idea to add a way to manage the
 default quota values through the API.
 
  The idea is to use the current quota api, but sending ''default'
 instead of the tenant_id. This change would apply to quota-show and
 quota-update methods.
 
  This approach will help to simplify the implementation of another
 blueprint named per-flavor-quotas
 
  Feedback? Suggestions?
 
 
  Sergio Juan Cazzolato
  Intel Software Argentina
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Joe Gordon
On Tue, May 27, 2014 at 1:11 PM, Vishvananda Ishaya
vishvana...@gmail.comwrote:

 Phil,

 You are correct and this seems to be an error. I don’t think in the
 earlier ML thread[1] that anyone remembered that the quota classes were
 being used for default quotas. IMO we need to revert this removal as we
 (accidentally) removed a Havana feature with no notification to the
 community. I’ve reactivated a bug[2] and marked it critcal.


While I agree that we shouldn't have removed support for a working feature
like updating the default quota via the REST API. I don't think we should
just do a revert.

The good news is we haven't dropped any tables yet, so a revert won't
require any migrations.

* quota-classes never worked for anything except changing default quotas,
and this feature adds a whole bunch of DB calls to every quota lookup (a
big overhead for a mostly broken feature). I am not a huge fan of bringing
back a feature that is known to be mostly broken. I am also not a fan of
breaking working features, which we did. Perhaps the right answer is to
bring back just the default value override support.
* But having a rest API to override config file options sounds like a step
in the wrong direction. I can see this easily leading to confusion about
where the default quota values are coming from. This is part of a larger
issue: folks want to update config options without restarting any services,
as far as I know there is no reason why we cannot support this with minimal
changes in a way that we can use this for other config options.



 Vish

 [1]
 http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
 [2] https://bugs.launchpad.net/nova/+bug/1299517

 On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:

  Hi Vish,
 
  I think quota classes have been removed from Nova now.
 
  Phil
 
 
  Sent from Samsung Mobile
 
 
   Original message 
  From: Vishvananda Ishaya
  Date:27/05/2014 19:24 (GMT+00:00)
  To: OpenStack Development Mailing List (not for usage questions)
  Subject: Re: [openstack-dev] [nova] nova default quotas
 
  Are you aware that there is already a way to do this through the cli
 using quota-class-update?
 
  http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html(near 
  the bottom)
 
  Are you suggesting that we also add the ability to use just regular
 quota-update? I’m not sure i see the need for both.
 
  Vish
 
  On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
 sergio.j.cazzol...@intel.com wrote:
 
  I would to hear your thoughts about an idea to add a way to manage the
 default quota values through the API.
 
  The idea is to use the current quota api, but sending ''default'
 instead of the tenant_id. This change would apply to quota-show and
 quota-update methods.
 
  This approach will help to simplify the implementation of another
 blueprint named per-flavor-quotas
 
  Feedback? Suggestions?
 
 
  Sergio Juan Cazzolato
  Intel Software Argentina
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [nova] nova default quotas

2014-05-27 Thread Kieran Spear
Hi Joe,

On 28/05/2014, at 11:21 AM, Joe Gordon joe.gord...@gmail.com wrote:

 
 
 
 On Tue, May 27, 2014 at 1:30 PM, Kieran Spear kisp...@gmail.com wrote:
 
 On 28/05/2014, at 6:11 AM, Vishvananda Ishaya vishvana...@gmail.com wrote:
 
  Phil,
 
  You are correct and this seems to be an error. I don’t think in the earlier 
  ML thread[1] that anyone remembered that the quota classes were being used 
  for default quotas. IMO we need to revert this removal as we (accidentally) 
  removed a Havana feature with no notification to the community. I’ve 
  reactivated a bug[2] and marked it critical.
 
 +1.
 
 We rely on this to set the default quotas in our cloud.
 
 Hi Kieran,
 
 Can you elaborate on this point. Do you actually use the full quota-class 
 functionality that allows for quota classes, if so what provides the quota 
 classes? If you only use this for setting the default quotas, why do you 
 prefer the API and not setting the config file?

We just need the defaults. My comment was more to indicate that yes, this is 
being used by people. I'm sure we could switch to using the config file, and 
generally I prefer to keep configuration in code, but finding out about this 
half way through a release cycle isn't ideal.

I notice that only the API has been removed in Icehouse, so I'm assuming the 
impact is limited to *changing* the defaults, which we don't do often. I was 
initially worried that after upgrading to Icehouse we'd be left with either no 
quotas or whatever the config file defaults are, but it looks like this isn't 
the case.

Unfortunately the API removal in Nova was followed by similar changes in 
novaclient and Horizon, so fixing Icehouse at this point is probably going to 
be difficult.

Cheers,
Kieran

  
 
 Kieran
 
 
  Vish
 
  [1] 
  http://lists.openstack.org/pipermail/openstack-dev/2014-February/027574.html
  [2] https://bugs.launchpad.net/nova/+bug/1299517
 
  On May 27, 2014, at 12:19 PM, Day, Phil philip@hp.com wrote:
 
  Hi Vish,
 
  I think quota classes have been removed from Nova now.
 
  Phil
 
 
  Sent from Samsung Mobile
 
 
   Original message 
  From: Vishvananda Ishaya
  Date:27/05/2014 19:24 (GMT+00:00)
  To: OpenStack Development Mailing List (not for usage questions)
  Subject: Re: [openstack-dev] [nova] nova default quotas
 
  Are you aware that there is already a way to do this through the cli using 
  quota-class-update?
 
  http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html 
  (near the bottom)
 
  Are you suggesting that we also add the ability to use just regular 
  quota-update? I’m not sure i see the need for both.
 
  Vish
 
  On May 20, 2014, at 9:52 AM, Cazzolato, Sergio J 
  sergio.j.cazzol...@intel.com wrote:
 
  I would to hear your thoughts about an idea to add a way to manage the 
  default quota values through the API.
 
  The idea is to use the current quota api, but sending ''default' instead 
  of the tenant_id. This change would apply to quota-show and quota-update 
  methods.
 
  This approach will help to simplify the implementation of another 
  blueprint named per-flavor-quotas
 
  Feedback? Suggestions?
 
 
  Sergio Juan Cazzolato
  Intel Software Argentina
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
  ___
  OpenStack-dev mailing list
  OpenStack-dev@lists.openstack.org
  http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
 
 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [nova] nova default quotas

2014-05-20 Thread Cazzolato, Sergio J
I would to hear your thoughts about an idea to add a way to manage the default 
quota values through the API. 

The idea is to use the current quota api, but sending ''default' instead of the 
tenant_id. This change would apply to quota-show and quota-update methods.

This approach will help to simplify the implementation of another blueprint 
named per-flavor-quotas

Feedback? Suggestions?


Sergio Juan Cazzolato
Intel Software Argentina 

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev