/srv/irclogs.ubuntu.com/2021/11/13/#cloud-init.txt

Guest63Anyone know the answer to this question?  https://unix.stackexchange.com/q/677368/25658118:52
minimalGuest63: it seems like the hotplug related issue that was recently fixed19:32
minimalGuest63: https://github.com/canonical/cloud-init/pull/106919:33
ubottuPull 1069 in canonical/cloud-init "Add 'install hotplug' module (SC-476)" [Merged]19:33
minimalGuest63: fixed in cloud-init 21.419:34
Guest63OK thanks.  Since this is an image which is under control of the host (Hetzner) and I'm not sure how long it will take to fix, how to I apply the patch "after the event" as it were?19:36
blackboxswminimal: thanks for fielding that. correct, fixed in 21.4 to avoid triggering that process when hotplug config is not set in user-data. Expected to publish this version of cloud-init to 18.04 Bionic, 20.04 Focal, 21.04 and 21.10 Monday or Tuesday19:36
blackboxswGuest63: you can safely remove /etc/udev/rules.d/10-cloud-init-hook-hotplug.rules and it will immediately stop any hotplug related action on your system19:38
Guest63blackboxsw there is no such file19:40
minimalblackboxsw: you're welcome, where do I pick up my cheque? ;-)19:41
Guest63blackboxsw you still there?20:15
blackboxswoops sorry was making lunch.20:32
blackboxswGuest63:   so sorry thinko.    /lib/udev/rules.d/10-cloud-init-hook-hotplug.rules can be removed on cloud-init 21.320:34
blackboxswit'll prevent the hotplug hook from firing on all device adds removes.20:34
blackboxswI'm wondering for context what general loads are being run on the system that are generating these udev events.20:35
Guest63blackboxsw so just delete that without rebooting?20:58
Guest63blackboxsw for example, in the cloud-init script I use when spinning up the server?20:59
blackboxswGuest63: rm -f /lib/udev/rules.d/10-cloud-init-hook-hotplug.rules; sudo udevadm control --reload-rules21:00
blackboxswthis should not be a problem in about three days when cloud-init version 21.4 releases21:00
blackboxswbut until then you could do that in a #cloud-config  runcmd: 21:00
blackboxswI'll test the cloud-config now to be sure21:01
blackboxswGuest63: confirmed the following user-data:21:06
blackboxsw#cloud-config21:06
blackboxswruncmd:21:06
blackboxsw - rm -f /lib/udev/rules.d/10-cloud-init-hook-hotplug.rules21:06
blackboxsw - udevadm control --reload-rules21:06
blackboxswlxc launch ubuntu-daily:bionic bbb -c user.user-data="$(cat my.yaml)"21:06
blackboxswthat removes the udev rules in my container21:06
blackboxswok gotta run21:07
Guest63blackboxsw thank you so much!22:28

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!