openstack server list is very slow and makes too many HTTP connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned | ||
python-openstackclient (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
'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
user 0m4.702s
sys 0m0.648s
$ time sstack nova --debug list >nova.log 2>&1
real 0m3.726s
user 0m1.192s
sys 0m0.105s
$ grep "GET call" nova.log | wc -l
6
$ grep "GET call" nova.log
DEBUG (session:727) GET call to None for http://
GET call to compute for http://
DEBUG (session:727) GET call to compute for http://
GET call to compute for http://
DEBUG (session:727) GET call to compute for http://
DEBUG (session:727) GET call to compute for http://
$ grep "GET call" openstack.log | wc -l
228
$ grep "GET call" openstack.log
43:59:565650 1.331658 E: GET call to None for http://
44:02:139020 3.905028 E: GET call to compute for http://
44:02:807981 4.573989 E: GET call to image for http://
44:02:927457 4.693465 E: GET call to image for http://
44:03:310571 5.076579 E: GET call to image for http://
44:03:734247 5.500255 E: GET call to image for http://
-- trim 220 similar lines --
45:46:275745 108.041753 E: GET call to image for http://
45:46:828523 108.594531 E: GET call to compute for http://
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: python-
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 24 13:00:53 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (824 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: python-
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in python-openstackclient (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
description: | updated |
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