ironic-python-agent/ironic_python_agent
Julia Kreger 03374749e6 Unmount config drives
If this seems like deja vu, that is because it is. We had this
very same issue with the original CoreOS ramdisk. Since we don't
control the whole OS of the ramdisk, it only made sense to teach
the agent to umount the folder.

The folder is referenced already, and the agent does have safeguards
in place, but unfortunately this issue led to a rebuild breaking where
cloud-init, glean, and the agent were all trying do the right thing
as they thought, and there were just multiple /mnt/config folders
present in the OS. These are separate issues we also need to try and
remedy.

What happens is when the device is locked via a mount, the partition
table is never updated to the running OS as the mount creates a lock.
So the agent ends up thinking, in the case of a rebuild, that everything
including creating a configuration drive on that device has been
successful, but when you reboot, there is no partition table entry
for the new partition as the change was not successfully written.
This state prevented the workload from rebooting properly.
This change eliminates that possibility moving forward by attempting
to ensure that the cloud configuration folder is no longer mounted.

Change-Id: I4399dd0934361003cca9ff95a7e3e3ae9bba3dab
(cherry picked from commit 6ac3f350c0)
2024-05-01 14:40:54 +00:00
..
api Use Werkzeug modern version 2022-04-14 10:47:06 +00:00
cmd Capture the early logging 2021-04-01 11:16:20 -07:00
extensions Retry on checksum failures 2023-10-11 13:33:56 +00:00
hardware_managers Add get_service_steps logic to the agent 2023-08-31 06:22:22 -07:00
tests Unmount config drives 2024-05-01 14:40:54 +00:00
__init__.py [trivial] Fix typo in __init__.py 2021-12-16 22:03:51 +01:00
agent.py Allow md5 to be disabled from the conductor 2023-05-25 07:59:07 -07:00
burnin.py Burn-in: Dynamic network pairing 2022-01-10 11:31:33 +01:00
config.py Extend the lookup timeout to 600 seconds 2023-09-22 13:10:50 +00:00
dmi_inspector.py Collect processor, memory and BIOS output of dmidecode - follow-up 2017-07-27 07:30:54 -07:00
efi_utils.py Fix UTF-16 result handling for efibootmgr 2023-04-17 09:14:24 -07:00
encoding.py Fix serializing ironic-lib exceptions 2020-07-02 12:18:53 +02:00
errors.py Add get_service_steps logic to the agent 2023-08-31 06:22:22 -07:00
hardware.py Fix referencing to the raid_device var which is not set 2023-12-13 10:27:56 +00:00
inject_files.py New deploy step for injecting arbitrary files 2021-02-16 16:56:52 +01:00
inspect.py Add jitter to inspection command reporting 2020-03-31 08:13:13 -07:00
inspector.py Also retry inspection on HTTP CONFLICT 2024-01-29 10:01:52 +01:00
ironic_api_client.py Handle the node being locked 2023-08-22 16:47:28 -07:00
netutils.py Deprecate LLDP in inventory in favour of a new collector 2023-04-26 19:33:51 +00:00
numa_inspector.py Skip nic numa_node discovery if it's not assigned to a numa_node 2020-01-17 11:15:35 +01:00
partition_utils.py preserve/handle config drives on 4k block devices 2023-08-24 08:10:22 -07:00
raid_utils.py Conditional creation of RAIDed ESP for UEFI Software RAID 2023-11-01 13:01:29 +01:00
tls_utils.py Generate TLS certificates with validity time in the past 2020-12-10 16:22:13 +01:00
utils.py Unmount config drives 2024-05-01 14:40:54 +00:00
version.py Remove importlib-metadata from requirements 2022-06-21 17:54:39 +02:00