[openstack-dev] [Zaqar] How to get the pool list in graceful way.

Lei Zhang zhang.lei.fly at gmail.com
Thu Oct 9 01:37:24 UTC 2014


The question comes from my patch[1]. Kgriffs point that there are two
way to get all the pools. But I don’t know which one is better, event
though I comment that limit=0 is wired. I think there are three ways.

use limit=0( current logical).
pro: 1) may easy to implement
con: 1) not clearly and wired. 2) may some storage driver doesn’t support?
call .list multiple times
pro: 1) directly and compatiblely
con: 1) multiple request must make when the list size is too large.
define a new method named list_all

[1] https://review.openstack.org/#/c/123462/5/zaqar/queues/storage/pooling.py

-- 
Lei Zhang
Blog: http://xcodest.me
twitter/weibo: @jeffrey4l



More information about the OpenStack-dev mailing list