Cleanup wording on compute service version checks in API

These were originally added in Newton for get-me-a-network
but are now used for other purposes, like cells v2 and volume
reservations in Pike:

63805735c2

This change just makes the wording more generic and removes
a TODO about removing the cache in Ocata, which is no longer
applicable.

Change-Id: I9cabe075c70424b167f5e340d05d28fa18f7d276
This commit is contained in:
Matt Riedemann 2017-04-05 19:20:43 -04:00
parent 53296a0702
commit ea8321adc7
2 changed files with 2 additions and 5 deletions

View File

@ -44,8 +44,7 @@ def main():
objects.register_all()
if 'osapi_compute' in CONF.enabled_apis:
# NOTE(mriedem): This is needed for caching the nova-compute service
# version which is looked up when a server create request is made with
# network id of 'auto' or 'none'.
# version.
objects.Service.enable_min_version_cache()
log = logging.getLogger(__name__)

View File

@ -38,9 +38,7 @@ def main():
utils.monkey_patch()
objects.register_all()
# NOTE(mriedem): This is needed for caching the nova-compute service
# version which is looked up when a server create request is made with
# network id of 'auto' or 'none'.
# TODO(mriedem): Remove this in Ocata when all computes should be Newton.
# version.
objects.Service.enable_min_version_cache()
gmr.TextGuruMeditation.setup_autorun(version)