> Dan had put a udevadm settle in this spot like so
> 
> def get_size(filename)
>    util.subp(['udevadm', 'settle'])
>    os.open(....)

if you know you've just changed (e.g.) /dev/sda, possibly its kernel-
generated udev events just haven't reached udev yet, so the immediate
call to 'udev settle' has nothing to wait for; maybe you should tell
udev to explicitly request a new full set of events and settle on that?

udevadm trigger --settle /dev/sda

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834875

Title:
  cloud-init growpart race with udev

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1834875/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to