Merge "Deprecate PReP partition support?"
This commit is contained in:
@@ -296,6 +296,9 @@ def make_partitions(dev, root_mb, swap_mb, ephemeral_mb,
|
|||||||
# here.
|
# here.
|
||||||
if (cpu_arch.startswith("ppc64") and boot_mode == "bios"
|
if (cpu_arch.startswith("ppc64") and boot_mode == "bios"
|
||||||
and boot_option == "local"):
|
and boot_option == "local"):
|
||||||
|
LOG.warning("PReP partition support is deprecated and will be "
|
||||||
|
"removed in a future release. PowerPC (ppc64*) hardware "
|
||||||
|
"support is being phased out.")
|
||||||
LOG.debug("Add PReP boot partition (8 MB) to device: "
|
LOG.debug("Add PReP boot partition (8 MB) to device: "
|
||||||
"%(dev)s for node %(node)s",
|
"%(dev)s for node %(node)s",
|
||||||
{'dev': dev, 'node': node_uuid})
|
{'dev': dev, 'node': node_uuid})
|
||||||
|
|||||||
@@ -203,6 +203,9 @@ def _install_grub2(device, root_uuid, efi_system_part_uuid=None,
|
|||||||
|
|
||||||
# For power we want to install grub directly onto the PreP partition
|
# For power we want to install grub directly onto the PreP partition
|
||||||
if prep_boot_part_uuid:
|
if prep_boot_part_uuid:
|
||||||
|
LOG.warning("PReP partition support is deprecated and will be "
|
||||||
|
"removed in a future release. PowerPC (ppc64*) "
|
||||||
|
"hardware support is being phased out.")
|
||||||
device = partition_utils.get_partition(
|
device = partition_utils.get_partition(
|
||||||
device, uuid=prep_boot_part_uuid)
|
device, uuid=prep_boot_part_uuid)
|
||||||
|
|
||||||
@@ -700,6 +703,11 @@ class ImageExtension(base.BaseAgentExtension):
|
|||||||
else:
|
else:
|
||||||
ignore_failure = ignore_bootloader_failure
|
ignore_failure = ignore_bootloader_failure
|
||||||
|
|
||||||
|
if prep_boot_part_uuid:
|
||||||
|
LOG.warning("PReP partition support is deprecated and will be "
|
||||||
|
"removed in a future release. PowerPC (ppc64*) "
|
||||||
|
"hardware support is being phased out.")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if _efi_boot_setup(device, efi_system_part_uuid, target_boot_mode):
|
if _efi_boot_setup(device, efi_system_part_uuid, target_boot_mode):
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -332,6 +332,9 @@ def work_on_disk(dev, root_mb, swap_mb, ephemeral_mb, ephemeral_format,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if cpu_arch.startswith('ppc'):
|
if cpu_arch.startswith('ppc'):
|
||||||
|
LOG.warning("PReP partition support is deprecated and will be "
|
||||||
|
"removed in a future release. PowerPC (ppc64*) "
|
||||||
|
"hardware support is being phased out.")
|
||||||
uuids_to_return[
|
uuids_to_return[
|
||||||
'PReP Boot partition uuid'
|
'PReP Boot partition uuid'
|
||||||
] = part_dict.get('PReP Boot partition')
|
] = part_dict.get('PReP Boot partition')
|
||||||
|
|||||||
@@ -320,7 +320,8 @@ def get_volume_name_of_raid_device(raid_device, examine=False):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
# TODO(rg): handle PreP boot parts relocation as well
|
# NOTE(cid): PReP partition support is deprecated and will be removed in a
|
||||||
|
# future release. RAID support for PReP partitions will not be implemented.
|
||||||
def prepare_boot_partitions_for_softraid(device, holders, efi_part,
|
def prepare_boot_partitions_for_softraid(device, holders, efi_part,
|
||||||
target_boot_mode):
|
target_boot_mode):
|
||||||
"""Prepare boot partitions when relevant.
|
"""Prepare boot partitions when relevant.
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
PReP (PowerPC Reference Platform) partition support is now deprecated and
|
||||||
|
will be removed in a future release. This affects ppc64* (PowerPC 64-bit)
|
||||||
|
hardware support. While POWER hardware remains an active platform, it
|
||||||
|
represents a small, specialized share of typical ironic-python-agent
|
||||||
|
deployment patterns.
|
||||||
|
|
||||||
|
The feature was originally added to support booting partition images
|
||||||
|
locally on PowerPC hardware, but usage in the ironic-python-agent
|
||||||
|
ecosystem may be limited.
|
||||||
|
|
||||||
|
Note that RAID support for PReP partitions was never implemented and
|
||||||
|
will not be added before removal.
|
||||||
|
|
||||||
|
Users with ppc64* hardware deployments should plan to migrate to
|
||||||
|
alternative solutions or contact the Ironic community if they have
|
||||||
|
specific requirements.
|
||||||
Reference in New Issue
Block a user