Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Udev deadlock on ubuntu during contextualization (re)configure #239

Closed
ospalax opened this issue Jul 22, 2021 · 0 comments
Closed

Udev deadlock on ubuntu during contextualization (re)configure #239

ospalax opened this issue Jul 22, 2021 · 0 comments

Comments

@ospalax
Copy link

ospalax commented Jul 22, 2021

When one-context reconfigure is started (e.g. after attaching new NIC to the VM) then udevadm settle is triggered and it will deadlock with the udevadm service until it is killed off by timeout:

sr0: Spawned process '/usr/sbin/service one-context-reconfigure start' [1466] timed out after 2min 59s, killing
sr0: Worker [1436] processing SEQNUM=2590 killed
Worker [1436] terminated by signal 9 (KILL)
sr0: Worker [1436] failed

This is the udevadm service which triggered one-context upon emerging of the new NIC:

/lib/systemd/systemd-udevd
 \_ /lib/systemd/systemd-udevd
 \_ /lib/systemd/systemd-udevd
     \_ systemctl start one-context-reconfigure.service

And here we are waiting for over two minutes (udevadm settle):

bash /usr/sbin/one-context-run
 \_ bash /usr/sbin/one-contextd all reconfigure
     \_ bash /usr/sbin/one-contextd all reconfigure
         \_ bash /etc/one-context.d/loc-05-grow-rootfs reconfigure
             \_ bash /etc/one-context.d/loc-05-grow-rootfs reconfigure
                 \_ /bin/sh /bin/growpart /dev/sda 1
                     \_ udevadm settle
@vholer vholer added this to the v6.2.0 milestone Jul 23, 2021
vholer pushed a commit to ospalax/addon-context-linux that referenced this issue Aug 5, 2021
vholer pushed a commit to ospalax/addon-context-linux that referenced this issue Aug 11, 2021
@vholer vholer closed this as completed in bfba520 Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants