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
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)
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
** 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
** 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.
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 |
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.
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