Merge "Add new settings to LAUNCH_INSTANCE_DEFAULTS"

This commit is contained in:
Zuul 2022-08-30 11:34:06 +00:00 committed by Gerrit Code Review
commit 272dbb61c7
4 changed files with 38 additions and 2 deletions

View File

@ -2172,6 +2172,10 @@ LAUNCH_INSTANCE_DEFAULTS
Added the ``default_availability_zone`` option.
.. versionchanged:: 22.3.0(Zed)
Added the ``enable_metadata``, ``enable_net_ports`` options.
Default:
.. code-block:: python
@ -2185,6 +2189,8 @@ Default:
"disable_volume": False,
"disable_volume_snapshot": False,
"enable_scheduler_hints": True,
"enable_metadata": True,
"enable_net_ports": True,
"default_availability_zone": "Any",
}
@ -2272,6 +2278,26 @@ Default: ``True``
This setting specifies whether or not Scheduler Hints can be provided when
launching an instance.
enable_metadata
###############
.. versionadded:: 22.3.0(Zed)
Default: ``True``
This setting specifies whether or not Metadata can be provided when launching
an instance.
enable_net_ports
################
.. versionadded:: 22.3.0(Zed)
Default: ``True``
This setting specifies whether or not Network Ports can be selected when
launching an instance.
default_availability_zone
#########################

View File

@ -66,7 +66,8 @@
templateUrl: basePath + 'networkports/ports.html',
helpUrl: basePath + 'networkports/ports.help.html',
formName: 'launchInstanceNetworkPortForm',
requiredServiceTypes: ['network']
requiredServiceTypes: ['network'],
setting: 'LAUNCH_INSTANCE_DEFAULTS.enable_net_ports'
},
{
id: 'secgroups',
@ -112,7 +113,8 @@
title: gettext('Metadata'),
templateUrl: basePath + 'metadata/metadata.html',
helpUrl: basePath + 'metadata/metadata.help.html',
formName: 'launchInstanceMetadataForm'
formName: 'launchInstanceMetadataForm',
setting: 'LAUNCH_INSTANCE_DEFAULTS.enable_metadata'
}
],

View File

@ -251,6 +251,8 @@ LAUNCH_INSTANCE_DEFAULTS = {
'disable_volume': False,
'disable_volume_snapshot': False,
'enable_scheduler_hints': True,
'enable_metadata': True,
'enable_net_ports': True,
'default_availability_zone': 'Any',
}

View File

@ -0,0 +1,6 @@
---
features:
- |
The new settings ``LAUNCH_INSTANCE_DEFAULTS.enable_metadata`` and
``LAUNCH_INSTANCE_DEFAULTS.enable_net_ports`` allow to hide Metadata and
Network Ports tabs from launch instance workflow.