From 65583e64172a0188d125117d1f2288e105832395 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 23 Jun 2022 19:24:44 +0200 Subject: No deploy_kernel/ramdisk with the ramdisk deploy and no cleaning Ramdisk deploys don't use IPA, no need to provide it. Cleaning may need the agent, so only skip verification if cleaning is disabled. Other boot interfaces may need fixing as well, I haven't checked them. Change-Id: Ia2739311f065e19ba539fe3df7268075d6075787 --- ironic/drivers/modules/redfish/boot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ironic/drivers/modules/redfish') diff --git a/ironic/drivers/modules/redfish/boot.py b/ironic/drivers/modules/redfish/boot.py index 1ce05ced9..25240228e 100644 --- a/ironic/drivers/modules/redfish/boot.py +++ b/ironic/drivers/modules/redfish/boot.py @@ -91,9 +91,14 @@ def _parse_driver_info(node): :raises: InvalidParameterValue, if any of the parameters have invalid value. """ + mode = deploy_utils.rescue_or_deploy_mode(node) + if not deploy_utils.needs_agent_ramdisk(node, mode=mode): + # Ramdisk deploy does not need an agent, nor does it support any other + # options. Skipping. + return {'can_provide_config': False} + d_info = node.driver_info - mode = deploy_utils.rescue_or_deploy_mode(node) iso_param = f'{mode}_iso' iso_ref = driver_utils.get_agent_iso(node, deprecated_prefix='redfish', mode=mode) -- cgit v1.2.1