diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2022-07-14 17:33:55 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2022-08-02 12:47:31 +0200 |
commit | f0a1778766d2fbd13dfa7dcf4521004deddcab55 (patch) | |
tree | 0b44e395d9b7c930c7610d702c4738d03d233283 /ironic/drivers/modules/ansible/deploy.py | |
parent | 41484988efaa99122bb92b2314f781a53bba6984 (diff) | |
download | ironic-f0a1778766d2fbd13dfa7dcf4521004deddcab55.tar.gz |
Finally remove support for netboot and the boot_option capability
Instance network boot (not to be confused with ramdisk, iSCSI or
anaconda deploy methods) is insecure, underused and difficult to
maintain. This change removes a lot of related code from Ironic.
The so called "netboot fallback" is still supported for legacy boot when
boot device management is not available or is unreliable.
Change-Id: Ia8510e4acac6dec0a1e4f5cb0e07008548a00c52
Diffstat (limited to 'ironic/drivers/modules/ansible/deploy.py')
-rw-r--r-- | ironic/drivers/modules/ansible/deploy.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ironic/drivers/modules/ansible/deploy.py b/ironic/drivers/modules/ansible/deploy.py index cd3f4c68f..d7cf49412 100644 --- a/ironic/drivers/modules/ansible/deploy.py +++ b/ironic/drivers/modules/ansible/deploy.py @@ -396,12 +396,6 @@ class AnsibleDeploy(agent_base.HeartbeatMixin, task.driver.boot.validate(task) node = task.node - iwdi = node.driver_internal_info.get('is_whole_disk_image') - if not iwdi and deploy_utils.get_boot_option(node) == "netboot": - raise exception.InvalidParameterValue(_( - "Node %(node)s is configured to use the ansible deploy " - "interface, which does not support netboot.") % - {'node': node.uuid}) params = {} image_source = node.instance_info.get('image_source') |