Re: [openstack-dev] ask for usage of quota reserve

2014-12-18 Thread Kevin L. Mitchell
On Thu, 2014-12-18 at 15:34 +0800, Eli Qiao(Li Yong Qiao) wrote:
 can anyone tell if we call quotas.reserve() but never call
 quotas.commit() or quotas.rollback().
 what will happen?

A reservation is always created with an expiration time; by default,
this expiration time is 86400 seconds (1 day) after the time at which
the reservation is created.  Expired reservations are deleted by the
_expire_reservations() periodic task, which is defined on the scheduler.
Thus, if a resource is reserved, but never committed or rolled back, it
should continue to affect quota requests for approximately one day, then
be automatically rolled back by the scheduler.
-- 
Kevin L. Mitchell kevin.mitch...@rackspace.com
Rackspace


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


[openstack-dev] ask for usage of quota reserve

2014-12-17 Thread Eli Qiao(Li Yong Qiao)
hi all,
can anyone tell if we call quotas.reserve() but never call
quotas.commit() or quotas.rollback().
what will happen?

for example:

 1. when doing resize, we call quotas.reserve() to reservea a delta
quota.(new_flavor - old_flavor)
 2. for some reasons, nova-compute crashed, and not chance to call
quotas.commit() or quotas.rollback() /(called by finish_resize in
nova/compute/manager.py)/
 3. next time restart nova-compute server, is the delta quota still
reserved , or do we need any other operation on quotas?

Thanks in advance
-Eli.

ps: this is related to patch : Handle RESIZE_PREP status when nova
compute do init_instance(https://review.openstack.org/#/c/132827/)
https://review.openstack.org/#/c/132827/

-- 
Thanks Eli Qiao(qia...@cn.ibm.com)

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