canonical / canonical/cloud-init

[enhancement]: implement hotplug support for block devices

Open
#6,454 2 comments 1 reaction 0 assignees View on GitHub
enhancement incomplete
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

# Enhancement

I would like to implement a nativ cloud-init way to handle hotplug events for block devices.

We thought about to work around this cloud-init limitation, by using `write_files` in the vendor-data, but longterm it would be much nicer to have a native way.

I propose to extend [event.py](https://github.com/canonical/cloud-init/blob/main/cloudinit/event.py) to include an EventScope.STORAGE
Would you prefer to change [cc_install_hotplug.py](https://github.com/canonical/cloud-init/blob/main/cloudinit/config/cc_install_hotplug.py) to include storage udev handling or should this be a separate file, like **cc_install_block_device_hotplug.py**?

Do you happen to know what files might need to be adjusted as well?

I'm happy about every input regarding this topic :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.