[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2021-12-10 Thread Ian Kumlien
Something like this actually makes it tolerable, the assumption is that the amount of images in the project is not that unique... And this is just a quick hack that I hope inspires a proper solution - it's most likely not in the proper location etc etc etc time openstack server list real

[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2021-12-10 Thread Ian Kumlien
time openstack server list real0m20.751s user0m4.244s sys 0m0.248s --- time openstack server list --name-lookup-one-by-one real0m2.710s user0m1.648s sys 0m0.177s --- I'm also wondering why you don't get shared (according to project), public and owned (again project)

[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2021-12-09 Thread Ian Kumlien
openstack --debug server list --long >server-log-debug 2>&1 grep curl server-log-debug |wc -l 45 grep curl server-log-debug |grep "images?marker=" |wc -l 40 So we actually have to list all images, in multiple requests for some reason? Isn't this highly inefficient? -- You received this bug

[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2018-04-10 Thread Scott Moser
** Description changed: 'openstack server list' does an obscene number of HTTP requests (228 in my case) and as a result is very slow compared to 'nova list'. By comparison, the 'nova list' command does 6. $ openstack --debug server list > openstack.log 2>&1 real 1m48.731s

[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2017-10-24 Thread James Page
** Changed in: python-openstackclient (Ubuntu) Status: Confirmed => Triaged ** Changed in: python-openstackclient (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2017-10-24 Thread Scott Moser
Before someone responds complaining that 4500 images is too much and that is the problem, lets compare this to another popular public cloud: $ time euca-describe-images --region=us-east-1 --all > ec2-us-east-1.log real 0m29.942s user 0m16.641s sys 0m0.283s $ grep ^IMAGE ec2-us-east-1.log |

[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2017-10-24 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python-openstackclient (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1726955] Re: openstack server list is very slow and makes too many HTTP connections

2017-10-24 Thread Scott Moser
for some more information, 'glance' is similarly slow. We do have a large number of images (~4500). $ time sstack glance --debug image-list >glance.log 2>&1 real 1m58.700s user 0m4.506s sys 0m0.413s $ grep "GET.call" glance.log | wc -l 226 $ grep '^|' glance.log | wc -l 4476 -- You