[Bug 1166455] Re: nova flavor-list only shows 1000 flavors

2013-04-17 Thread TianTian Gao
I found there is a configuration item named 'osapi_max_limit=1000', which set the default maximum number of items to return to 1000. So the number of flavor only up to 1000. We can hit the REST API like this to get more items. /flavors?limit=2000 But novaclient default get each flavor's extra_sp

[Bug 1166455] Re: nova flavor-list only shows 1000 flavors

2013-04-11 Thread TianTian Gao
I reproduct the bug. firstly, close api_rate_limit. use the command below to create 2000 flavor. $ for i in {1..2000}; do nova flavor-create f-$i $i 1024 20 1 ;done; then I use novaclient to list all flavor $ time nova flavor-list +--+-+---+--+---+--+---+-