[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Changed in: python-novaclient Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Changed in: python-novaclient Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
Reviewed: https://review.openstack.org/27060 Committed: http://github.com/openstack/python-novaclient/commit/339689483da3c1591211762ef631d432844ff9ef Submitter: Jenkins Branch:master commit 339689483da3c1591211762ef631d432844ff9ef Author: Ubuntu ubuntu@dev-stack-alone.(none) Date: Wed Apr 17 13:12:36 2013 + Make list flavor show extra specs optional. Flavor list will get each flavors extra_specs by making fresh requests to nova. When there are lots of flavors, the flavor list will take a while to run. So let us make show extra-specs optional. Fix bug: #1166455 Change-Id: I86aef1035be6a88b8d9fb49a89f5a608a72589dd ** Changed in: python-novaclient Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
Reviewed: https://review.openstack.org/27060 Committed: http://github.com/openstack/python-novaclient/commit/339689483da3c1591211762ef631d432844ff9ef Submitter: Jenkins Branch:master commit 339689483da3c1591211762ef631d432844ff9ef Author: Ubuntu ubuntu@dev-stack-alone.(none) Date: Wed Apr 17 13:12:36 2013 + Make list flavor show extra specs optional. Flavor list will get each flavors extra_specs by making fresh requests to nova. When there are lots of flavors, the flavor list will take a while to run. So let us make show extra-specs optional. Fix bug: #1166455 Change-Id: I86aef1035be6a88b8d9fb49a89f5a608a72589dd ** Changed in: python-novaclient Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
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_spec is annoying me. ** Changed in: nova Status: Confirmed = Invalid ** Changed in: nova (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
Fix proposed to branch: master Review: https://review.openstack.org/27060 ** Changed in: python-novaclient Status: Confirmed = In Progress ** Changed in: python-novaclient Assignee: (unassigned) = TianTian Gao (gtt116) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
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_spec is annoying me. ** Changed in: nova Status: Confirmed = Invalid ** Changed in: nova (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
Fix proposed to branch: master Review: https://review.openstack.org/27060 ** Changed in: python-novaclient Status: Confirmed = In Progress ** Changed in: python-novaclient Assignee: (unassigned) = TianTian Gao (gtt116) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
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 +--+-+---+--+---+--+---+-+---+-+ | ID | Name| Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs | +--+-+---+--+---+--+---+-+---+-+ | 1| m1.tiny | 512 | 0| 0 | | 1 | 1.0 | True | {} | | 10 | f-10| 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 100 | f-100 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1000 | f-1000 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1001 | f-1001 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1002 | f-1002 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1003 | f-1003 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1004 | f-1004 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1005 | f-1005 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1006 | f-1006 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1007 | f-1007 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1008 | f-1008 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1009 | f-1009 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 101 | f-101 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1010 | f-1010 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1011 | f-1011 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1012 | f-1012 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1013 | f-1013 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1014 | f-1014 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | .. | 1886 | f-1886 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1887 | f-1887 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1888 | f-1888 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1889 | f-1889 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 189 | f-189 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1890 | f-1890 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1891 | f-1891 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1892 | f-1892 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1893 | f-1893 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1894 | f-1894 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1895 | f-1895 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1896 | f-1896 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1897 | f-1897 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1898 | f-1898 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1899 | f-1899 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | +--+-+---+--+---+--+---+-+---+-+ real2m11.275s user0m3.280s sys 0m0.456s Because novaclient need to get each flavor's extra_specs detail, in fact it make thousands of request to nova-api. which make the command very slow. If I just hit the REST API by $ time http get localhost:8774/v2/33027e9bc0914bc88414bae31c6ecc9f/flavors { id: 1899, links: [ { href: http://localhost:8774/v2/33027e9bc0914bc88414bae31c6ecc9f/flavors/1899;, rel: self }, { href: http://localhost:8774/33027e9bc0914bc88414bae31c6ecc9f/flavors/1899;, rel: bookmark } ],
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Changed in: nova (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
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 +--+-+---+--+---+--+---+-+---+-+ | ID | Name| Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs | +--+-+---+--+---+--+---+-+---+-+ | 1| m1.tiny | 512 | 0| 0 | | 1 | 1.0 | True | {} | | 10 | f-10| 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 100 | f-100 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1000 | f-1000 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1001 | f-1001 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1002 | f-1002 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1003 | f-1003 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1004 | f-1004 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1005 | f-1005 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1006 | f-1006 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1007 | f-1007 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1008 | f-1008 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1009 | f-1009 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 101 | f-101 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1010 | f-1010 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1011 | f-1011 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1012 | f-1012 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1013 | f-1013 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1014 | f-1014 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | .. | 1886 | f-1886 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1887 | f-1887 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1888 | f-1888 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1889 | f-1889 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 189 | f-189 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1890 | f-1890 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1891 | f-1891 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1892 | f-1892 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1893 | f-1893 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1894 | f-1894 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1895 | f-1895 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1896 | f-1896 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1897 | f-1897 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1898 | f-1898 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | | 1899 | f-1899 | 1024 | 20 | 0 | | 1 | 1.0 | True | {} | +--+-+---+--+---+--+---+-+---+-+ real2m11.275s user0m3.280s sys 0m0.456s Because novaclient need to get each flavor's extra_specs detail, in fact it make thousands of request to nova-api. which make the command very slow. If I just hit the REST API by $ time http get localhost:8774/v2/33027e9bc0914bc88414bae31c6ecc9f/flavors { id: 1899, links: [ { href: http://localhost:8774/v2/33027e9bc0914bc88414bae31c6ecc9f/flavors/1899;, rel: self }, { href: http://localhost:8774/33027e9bc0914bc88414bae31c6ecc9f/flavors/1899;, rel: bookmark } ],
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Changed in: nova (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Package changed: nova (Ubuntu) = nova ** Also affects: nova (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Package changed: nova (Ubuntu) = nova ** Also affects: nova (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1166455/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Tags added: prodstack -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1166455/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1166455] Re: nova flavor-list only shows 1000 flavors
** Tags added: prodstack -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1166455 Title: nova flavor-list only shows 1000 flavors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1166455/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs