Merge "More strictly validate max api microversion options"

This commit is contained in:
Zuul 2024-09-26 03:27:17 +00:00 committed by Gerrit Code Review
commit 03df4d68f8

View File

@ -192,13 +192,13 @@ engine_opts = [
help=_('Number of times to check whether an interface has '
'been attached or detached.')),
cfg.StrOpt('max_nova_api_microversion',
regex=r'^\d+\.\d+$',
regex=r'^2\.\d+$',
help=_('Maximum nova API version for client plugin. With '
'this limitation, any nova feature supported with '
'microversion number above max_nova_api_microversion '
'will not be available.')),
cfg.StrOpt('max_ironic_api_microversion',
regex=r'^\d+\.\d+$',
regex=r'^1\.\d+$',
help=_('Maximum ironic API version for client plugin. With '
'this limitation, any ironic feature supported with '
'microversion number above '