Enable the ramdisk deploy by default

It proved useful (supported by Metal3, used in OpenShift) and does not
require any conductor-level configuration.

Change-Id: I57e59ac21e3327b9ad2f1d1436e184b48999006b
This commit is contained in:
Dmitry Tantsur 2022-08-01 16:34:20 +02:00
parent e651fd6db5
commit f8135b22f6
5 changed files with 11 additions and 6 deletions

View File

@ -11,8 +11,9 @@ It is suported by ``pxe``, ``ipxe``, ``redfish-virtual-media`` and
Configuration Configuration
------------- -------------
Ramdisk/ISO boot requires using the ``ramdisk`` deploy interface. As with most Ramdisk/ISO boot requires using the ``ramdisk`` deploy interface. It is enabled
non-default interfaces, it must be enabled and set for a node to be utilized: by default starting with the Zed release cycle. On an earlier release, it must
be enabled explicitly:
.. code-block:: ini .. code-block:: ini

View File

@ -111,7 +111,7 @@ driver_opts = [
cfg.StrOpt('default_console_interface', cfg.StrOpt('default_console_interface',
help=_DEFAULT_IFACE_HELP.format('console')), help=_DEFAULT_IFACE_HELP.format('console')),
cfg.ListOpt('enabled_deploy_interfaces', cfg.ListOpt('enabled_deploy_interfaces',
default=['direct'], default=['direct', 'ramdisk'],
help=_ENABLED_IFACE_HELP.format('deploy')), help=_ENABLED_IFACE_HELP.format('deploy')),
cfg.StrOpt('default_deploy_interface', cfg.StrOpt('default_deploy_interface',
help=_DEFAULT_IFACE_HELP.format('deploy')), help=_DEFAULT_IFACE_HELP.format('deploy')),

View File

@ -159,7 +159,7 @@ class TestCase(oslo_test_base.BaseTestCase):
values = ['fake'] values = ['fake']
if iface == 'deploy': if iface == 'deploy':
values.extend(['direct', 'anaconda']) values.extend(['direct', 'ramdisk', 'anaconda'])
elif iface == 'boot': elif iface == 'boot':
values.append('pxe') values.append('pxe')
elif iface == 'storage': elif iface == 'storage':

View File

@ -47,8 +47,6 @@ class RamdiskDeployTestCase(db_base.DbTestCase):
self.config(tftp_root=self.temp_dir, group='pxe') self.config(tftp_root=self.temp_dir, group='pxe')
self.temp_dir = tempfile.mkdtemp() self.temp_dir = tempfile.mkdtemp()
self.config(images_path=self.temp_dir, group='pxe') self.config(images_path=self.temp_dir, group='pxe')
self.config(enabled_deploy_interfaces=['ramdisk'])
self.config(enabled_boot_interfaces=['pxe'])
for iface in drivers_base.ALL_INTERFACES: for iface in drivers_base.ALL_INTERFACES:
impl = 'fake' impl = 'fake'
if iface == 'network': if iface == 'network':

View File

@ -0,0 +1,6 @@
---
features:
- |
The ``ramdisk`` deploy interface is now enabled by default. When the
default ``direct`` deploy is also enabled, the ``ramdisk`` deploy must be
explicitly requested on the node level.