Browse Source

Merge "Backward compatibility for the ramdisk_params change"

changes/40/652740/13
Zuul 2 weeks ago
parent
commit
8990e7dcbc
3 changed files with 12 additions and 0 deletions
  1. +3
    -0
      ironic/drivers/modules/ipxe.py
  2. +3
    -0
      ironic/drivers/modules/pxe.py
  3. +6
    -0
      releasenotes/notes/ramdisk-params-6083bfaa7ffa9dfe.yaml

+ 3
- 0
ironic/drivers/modules/ipxe.py View File

@@ -162,6 +162,9 @@ class iPXEBoot(pxe_base.PXEBaseMixin, base.BootInterface):

pxe_options = pxe_utils.build_pxe_config_options(
task, pxe_info, ipxe_enabled=True, ramdisk_params=ramdisk_params)
# TODO(dtantsur): backwards compability hack, remove in the V release
if ramdisk_params.get("ipa-api-url"):
pxe_options["ipa-api-url"] = ramdisk_params["ipa-api-url"]

pxe_config_template = deploy_utils.get_pxe_config_template(node)


+ 3
- 0
ironic/drivers/modules/pxe.py View File

@@ -166,6 +166,9 @@ class PXEBoot(pxe_base.PXEBaseMixin, base.BootInterface):
pxe_options = pxe_utils.build_pxe_config_options(
task, pxe_info, ipxe_enabled=ipxe_enabled,
ramdisk_params=ramdisk_params)
# TODO(dtantsur): backwards compability hack, remove in the V release
if ramdisk_params.get("ipa-api-url"):
pxe_options["ipa-api-url"] = ramdisk_params["ipa-api-url"]

pxe_config_template = deploy_utils.get_pxe_config_template(node)


+ 6
- 0
releasenotes/notes/ramdisk-params-6083bfaa7ffa9dfe.yaml View File

@@ -0,0 +1,6 @@
---
upgrade:
- |
The operators using custom PXE/iPXE/Grub templates should update them to
remove an explicit mention of ``ipa-api-url``. This field is now a part
of ``pxe_append_params`` when required.

Loading…
Cancel
Save