summaryrefslogtreecommitdiff
path: root/ironic_python_agent/raid_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* SoftwareRAID: Use efibootmgr (and drop grub2-install)Arne Wiebalck2022-03-161-0/+14
| | | | | | | | | | | | | | | | | | | | | | | Move the software RAID code path from grub2-install to efibootmgr: - remove the UEFI efibootmgr exception for software RAID - create and populate the ESPs on the holder disks - update the NVRAM with all ESPs (the component devices of the ESP mirror, use unique labels to avoid unintentional deduplication of entries in the NVRAM) In addition, use canonical device names for the RAID device for the ESP: it seems like tinyIPA silently replaces /dev/md/esp with /dev/md127. Find the next free /dev/md device and use it instead. Also rescan the resulting device before copying files. Co-authored-by: Dmitry Tantsur <dtantsur@protonmail.com> Story: #2009794 Change-Id: I7ed34e595215194a589c2f1cd0b39ff0336da8f1 (cherry picked from commit 62c5674a600baeeef0af3b12baeab486870eb103)
* Move some raid specific functions to raid_utilsRiccardo Pittau2021-02-171-0/+87
| | | | | | | To reduce size of the hardware module and separate the raid specific code in raid_utils, we move some functions and adapt the tests. Change-Id: I73f6cf118575b627e66727d88d5567377c1999a0
* Increase the ESP partition size to 550 MiB when using software RAIDDmitry Tantsur2020-07-021-5/+9
| | | | | | | This has been a popular guidance, and diskimage-builder has recently started following it. Change-Id: I794c846fb191c15b0a30546bf64d624dfbde0fd4
* Split and move logic for partition tablesRiccardo Pittau2020-05-251-0/+25
| | | | | | | Move and split the logic to create the partition tables when applying raid configuration. Change-Id: Ic76dd2067ace02dd02351caca0c7f9b05571e510
* Move logic to calculate raid sectors to raid_utilsRiccardo Pittau2020-04-091-0/+29
| | | | | | Some more raid related logic moved to raid_utils. Change-Id: I08c73ad14e5b01ebac2490b83997c5452506d4a2
* Move logic for raid start sector to raid_utilsRiccardo Pittau2020-04-081-0/+40
| | | | | | A starting tentative in reducing size of raid related functions. Change-Id: I81f912d0dc0ad138d8cc776cdb4ee3b5251ec3ba
* Allow specifying target devices for software RAIDDmitry Tantsur2020-03-171-0/+65
This change adds support for the physical_disks RAID parameter in a form of device hints (same as for root device selection). Change-Id: I9751ab0f86ada41e3b668670dc112d58093b8099 Story: #2006369 Task: #39080