diff --git a/cinder/opts.py b/cinder/opts.py index 8cb685bd9a5..51892dbe23e 100644 --- a/cinder/opts.py +++ b/cinder/opts.py @@ -285,12 +285,6 @@ def list_opts(): itertools.chain( cinder_keymgr_confkeymgr.key_mgr_opts, )), - ('nova_group', - itertools.chain( - cinder_compute_nova.nova_opts, - cinder_compute_nova.nova_session_opts, - cinder_compute_nova.nova_auth_opts, - )), ('backend_defaults', itertools.chain( cinder_volume_driver.volume_opts, @@ -397,4 +391,10 @@ def list_opts(): cinder_volume_drivers_zte_zteks.zte_opts, cinder_volume_manager.volume_backend_opts, )), + ('nova', + itertools.chain( + cinder_compute_nova.nova_opts, + cinder_compute_nova.nova_session_opts, + cinder_compute_nova.nova_auth_opts, + )), ] diff --git a/tools/config/generate_cinder_opts.py b/tools/config/generate_cinder_opts.py index fa58f582c2d..dc56672f11f 100644 --- a/tools/config/generate_cinder_opts.py +++ b/tools/config/generate_cinder_opts.py @@ -18,6 +18,7 @@ import subprocess import textwrap from cinder.volume import configuration +from cinder.compute import nova OrderedDict = collections.OrderedDict @@ -215,6 +216,8 @@ if __name__ == "__main__": if (group_name.endswith('SHARED_CONF_GROUP') or group_name.lower() == 'backend_defaults'): group_name = configuration.SHARED_CONF_GROUP + if (group_name == 'NOVA_GROUP'): + group_name = nova.NOVA_GROUP if group_name in registered_opts_dict: line = key + "." + formatted_opt