ironic-python-agent/ironic_python_agent
Julia Kreger 6ac3f350c0 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
2024-04-29 15:41:59 -07:00
..
api Use Werkzeug modern version 2022-04-14 10:47:06 +00:00
cmd Support several API and Inspector URLs 2024-01-09 16:43:23 +01:00
extensions Import disk_{utils,partitioner} from ironic-lib 2024-03-15 18:45:04 +01:00
hardware_managers Add mlnx deploy_step entry to enable deploy time firmware 2023-08-31 06:35:39 -07:00
tests Unmount config drives 2024-04-29 15:41:59 -07:00
__init__.py [trivial] Fix typo in __init__.py 2021-12-16 22:03:51 +01:00
agent.py Make inspection URL optional if the collectors are provided 2024-01-10 08:55:42 +01:00
burnin.py Burn-in: Dynamic network pairing 2022-01-10 11:31:33 +01:00
config.py Import disk_{utils,partitioner} from ironic-lib 2024-03-15 18:45:04 +01:00
disk_partitioner.py Import disk_{utils,partitioner} from ironic-lib 2024-03-15 18:45:04 +01:00
disk_utils.py destroy_disk_metadata: support 4096 sector size 2024-04-24 20:37:44 +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 Step to clean UEFI NVRAM entries 2024-04-11 01:17:23 +12:00
encoding.py Fix serializing ironic-lib exceptions 2020-07-02 12:18:53 +02:00
errors.py [codespell] Fix spelling issues in IPA 2023-12-28 10:54:46 -08:00
hardware.py Merge "add mixed matching of root device hints" 2024-04-27 17:26:25 +00:00
inject_files.py Import disk_{utils,partitioner} from ironic-lib 2024-03-15 18:45:04 +01:00
inspect.py [codespell] Fix spelling issues in IPA 2023-12-28 10:54:46 -08:00
inspector.py Merge "USB device discovery" 2024-03-28 21:22:53 +00:00
ironic_api_client.py Support several API and Inspector URLs 2024-01-09 16:43:23 +01: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 Import disk_{utils,partitioner} from ironic-lib 2024-03-15 18:45:04 +01:00
raid_utils.py Import disk_{utils,partitioner} from ironic-lib 2024-03-15 18:45:04 +01:00
tls_utils.py Trivial: avoid deprecated utcnow 2024-01-31 10:09:13 +01:00
utils.py Unmount config drives 2024-04-29 15:41:59 -07:00
version.py Remove importlib-metadata from requirements 2022-06-21 17:54:39 +02:00