horizon/openstack_dashboard/api
Feilong Wang fa2e8327b9 Add cache for get_microversion() against Nova
Actions "Lock" and "Unlock" of instance on instances table are calling
api.nova.is_feature_available() to check if the feature is supported
by current Nova server. Unfortunately, the function get_microversion()
called by is_feature_available() is not cached, which is causing about
40 unnecesary REST API calls. If the Nova's version is under Mitaka,
it could be even worse, about 80 unnecesary API calls, see
openstack_dashboard/api/nova.py#L60 and
novaclient/v2/versions.py#L47 for more details.

Closes-Bug: #1721423

Change-Id: Ie96b1a35e379d4cf407bfd53b1ee734178f9cb07
2017-10-05 14:37:38 +13:00
..
rest Merge "Fix wrong links in horizon" 2017-09-12 16:15:42 +00:00
__init__.py Split out FWaaS dashboard 2017-06-27 14:20:03 +00:00
base.py Fix H405 (multi line docstring) warnings (openstack_dashboard) 2017-06-09 16:05:31 +00:00
cinder.py Prefer volumev3 and volumev2 endpoints over volume 2017-06-30 16:06:55 +02:00
glance.py Clean /tmp after upload when using glance v2 client 2017-08-04 10:54:51 +08:00
heat.py Use flake8-import-order plugin 2017-07-03 08:02:23 +00:00
keystone.py Merge "Use publicURL as default of OPENSTACK_ENDPOINT_TYPE consistently" 2017-06-13 13:14:12 +00:00
microversions.py Fix wrong links in horizon 2017-09-12 15:23:26 +08:00
network.py Move SG and FIP API wrapper to api.neutron 2017-06-04 17:51:25 +00:00
neutron.py Fix a bug to unable to retrieve ports when no trunk ext 2017-09-19 18:01:52 +00:00
nova.py Add cache for get_microversion() against Nova 2017-10-05 14:37:38 +13:00
swift.py Use flake8-import-order plugin 2017-07-03 08:02:23 +00:00