Browse Source

Improve debug logging around Raid/Bootloader

Change-Id: I7d34b918a859972a2d5650494824d3333016dd11
tags/6.1.0
Julia Kreger 3 months ago
parent
commit
bf0bb7a87a
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      ironic_python_agent/extensions/image.py
  2. +1
    -0
      ironic_python_agent/hardware.py

+ 1
- 1
ironic_python_agent/extensions/image.py View File

@@ -175,7 +175,7 @@ def _is_bootloader_loaded(dev):
LOG.debug('Skipping boot sector check as the system is in UEFI '
'boot mode.')
return False
LOG.debug('Starting check for pre-intalled BIOS boot-loader.')
try:
# Looking for things marked "bootable" in the partition table
stdout, stderr = utils.execute('parted', dev, '-s', '-m',


+ 1
- 0
ironic_python_agent/hardware.py View File

@@ -212,6 +212,7 @@ def md_restart(raid_device):
:raises: CommandExecutionError in case the restart fails.
"""
try:
LOG.debug('Restarting software RAID device %s', raid_device)
component_devices = _get_component_devices(raid_device)
utils.execute('mdadm', '--stop', raid_device)
utils.execute('mdadm', '--assemble', raid_device,


Loading…
Cancel
Save