openstackclient is really slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Low
|
Robert Collins | ||
python-openstackclient |
Fix Released
|
Low
|
Dean Troyer |
Bug Description
$ time openstack user
ERROR: openstack Unknown command ['user']
real 0m1.324s
user 0m0.391s
sys 0m0.517s
$ time openstack user list
+------
| ID | Name |
+------
| 7718d751518e484
| 9141087593634d6
| 919408d5fc21467
| d3dac348cd51489
| e0914637d4cd431
| f58667e7eeb546f
| fc5bbb2c91474f7
+------
real 0m2.209s
user 0m0.680s
sys 0m0.752s
We use openstackclient in devstack to set things up. And since we use this a lot in devstack it slows stack.sh way down.
Changed in python-openstackclient: | |
assignee: | nobody → Vivekanandan mahadevan (anandanvivopenstack) |
Changed in python-keystoneclient: | |
assignee: | nobody → Robert Collins (lifeless) |
status: | New → In Progress |
Changed in python-keystoneclient: | |
assignee: | Robert Collins (lifeless) → Brant Knudson (blk-u) |
Changed in python-openstackclient: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → m9 |
Changed in python-openstackclient: | |
importance: | High → Low |
milestone: | m9 → none |
steve:devstack$ time openstack user list ------- ------- ------- ------- +------ --+ ------- ------- ------- ------- +------ --+ 2888b4e7d123877 d4 | nova | 1afebd8db09d9aa b4 | demo | 9bc11d2f4302ecd 8e | admin | dbd57728a5420bc 80 | glance | 08ae1a240630248 57 | cinder | ------- ------- ------- ------- +------ --+
+------
| ID | Name |
+------
| 15667c13cb244bb
| 3a7b989e9f08477
| 71f264c486b044b
| c47d11733d5b473
| f6d4d6f96d0247e
+------
real 0m6.174s
user 0m1.560s
sys 0m0.184s
steve:devstack$ time keystone user-list ------- ------- ------- ------- +------ --+---- -----+- ------- ------- ---+ ------- ------- ------- ------- +------ --+---- -----+- ------- ------- ---+ 9bc11d2f4302ecd 8e | admin | True | | 08ae1a240630248 57 | cinder | True | | 1afebd8db09d9aa b4 | demo | True | <email address hidden> | dbd57728a5420bc 80 | glance | True | | 2888b4e7d123877 d4 | nova | True | | ------- ------- ------- ------- +------ --+---- -----+- ------- ------- ---+
+------
| id | name | enabled | email |
+------
| 71f264c486b044b
| f6d4d6f96d0247e
| 3a7b989e9f08477
| c47d11733d5b473
| 15667c13cb244bb
+------
real 0m2.957s
user 0m0.499s
sys 0m0.100s
Tried it again, both were faster
steve:devstack$ time openstack user list ------- ------- ------- ------- +------ --+ ------- ------- ------- ------- +------ --+ 2888b4e7d123877 d4 | nova | 1afebd8db09d9aa b4 | demo | 9bc11d2f4302ecd 8e | admin | dbd57728a5420bc 80 | glance | 08ae1a240630248 57 | cinder | ------- ------- ------- ------- +------ --+
+------
| ID | Name |
+------
| 15667c13cb244bb
| 3a7b989e9f08477
| 71f264c486b044b
| c47d11733d5b473
| f6d4d6f96d0247e
+------
real 0m4.096s
user 0m1.539s
sys 0m0.156s
steve:devstack$ time keystone user-list ------- ------- ------- ------- +------ --+---- -----+- ------- ------- ---+ ------- ------- ------- ------- +------ --+---- -----+- ------- ------- ---+ 9bc11d2f4302ecd 8e | admin | True | | 08ae1a240630248 57 | cinder | True | | 1afebd8db09d9aa b4 | demo | True | <email address hidden> | dbd57728a5420bc 80 | glance | True | | 2888b4e7d123877 d4 | nova | True | | ------- ------- ------- ------- +------ --+---- -----+- ------- ------- ---+
+------
| id | name | enabled | email |
+------
| 71f264c486b044b
| f6d4d6f96d0247e
| 3a7b989e9f08477
| c47d11733d5b473
| 15667c13cb244bb
+------
real 0m0.810s
user 0m0.471s
sys 0m0.129s