python-novaclient is frozen and won't accept support for new
microversions. Attempting to use a microversion newer than what we
support is likely to break things is unexpected ways. Save people's feet
from this shotgun by introducing a new helper function, 'check_version',
that we use to ensure we actually support the version in question. We
rework the existing check_major_version to make it much faster since we
only care about v2 and have done so for a very long time.
Change-Id: I4d3fba6fcbf785ef3309b8f9eee45e31c7919777
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>