summaryrefslogtreecommitdiff
path: root/ironic_python_agent/partition_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for instance netbootDmitry Tantsur2022-07-071-4/+3
| | | | Change-Id: I2b4c543537dac8904028fdcdb590c1c214238e10
* Use a pre-defined partition UUID to detect configdrive on GPTDmitry Tantsur2022-04-291-14/+31
| | | | | | | | Using partition numbers is currently broken for devicemapper devices. Fortunately, GPT has partition UUIDs, so we can just generate one and use it for lookup. Change-Id: I41ffe4f8e4c6e43182090b5aa2a2b4b34f32efd5
* Rescan device after filesystem creationVanou Ishii2022-02-111-0/+3
| | | | | | | | | | | | | | In work_on_disk function, IPA runs mkfs commands without following device rescan operation. This leads to incorrect content of uuids_to_return to be returned. These mkfs commands modify partition label but IPA fails to catch such changes because of no following device rescan operation. This commit adds call of device rescan function before uuids_to_return construction. Change-Id: I4e8b30deb5e2247f51ce8f10bd3271f64a264089
* Move manage_uefi from the image extension to a public locationDmitry Tantsur2021-11-161-0/+93
| | | | | | | | | | This call is very useful for custom deploy implementations, such as one we maintain for OpenShift. Splitting it out also makes image.py slightly more manageable. The get_partition call is moved to partition_utils. Change-Id: I60a6a2823d3eb27a4ae78e913e3655dae7b54ffe
* Respect global parameters when downloading a configdriveDmitry Tantsur2021-10-201-1/+19
| | | | | | | | * Use the same TLS parameters as everything else * Respect image_download_connection_timeout * Do not ignore HTTP errors Change-Id: I84f8021f731186d82e44ac3d4ef2d12df13f830a
* Import deployment logic from ironic-libDmitry Tantsur2021-05-031-0/+471
The two functions work_on_disk and create_config_drive_partition contain a substantial part of the deployment logic. Previously we placed them in ironic-lib for re-using on the conductor side in the iSCSI deploy interface. Since the iSCSI deploy is going away, we can move this code to ironic-python-agent to simplify maintenance. Imports code from ironic_lib commit 9fb5be348202f4854a455cd08f400ae12b99e1f2. Change-Id: I6cbcd81533f135208b57746cb0e33ffdfaf94eee