[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2021-03-19 Thread Brian Murray
Could somebody please test this _without_ work arounds on Bionic and later? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title: vaultlocker does not ensure that udev is triggered to create

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2020-10-14 Thread Matthieu Clemenceau
** Tags added: fr-630 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title: vaultlocker does not ensure that udev is triggered to create /dev/disk /by-uuid/ symlink and fails To manage

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2019-07-10 Thread Dmitrii Shcherbakov
xnox, Hmm, based on my previous notes in #18 it is not clear whether that's the case. We would have to test with vaultlocker patched to have the workaround removed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2019-05-02 Thread Dimitri John Ledkov
Ping, does vaultlocker work, _without_ work arounds, race free on bionic and up? ** Changed in: cryptsetup (Ubuntu) Status: New => Incomplete ** Changed in: lvm2 (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-10-22 Thread Dimitri John Ledkov
Also reading above comments, did we verify that Bionic is correctly synchronized, and needs no workaround? It would be nice to reliably confirm that these things operate race-free in bionic and up, and then mark this bug to affect only xenial and below. -- You received this bug notification

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-10-11 Thread James Page
@xnox as dmitriis state's we've worked around this issue in vaultlocker; however I do think that fixing this more generally would be a nice broader ecosystem step - fixing and underlying race rather than papering over it in tooling high up the stack is always more preferable. -- You received

Re: [Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-10-11 Thread Dmitrii Shcherbakov
We still have some clouds getting deployed with xenial that rely on this, however, the workaround works for our purposes. The only downside is that the workaround will be triggered on Bionic as well unless a version dependent call will be added to vaultlocker. On Wed, Oct 10, 2018, 16:31 Dimitri

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-10-10 Thread Dimitri John Ledkov
do we need and want to enable udev synchronisation in dmsetup package in xenial? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title: vaultlocker does not ensure that udev is triggered to

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-10-09 Thread Dimitri John Ledkov
95-dm-notify.rules in dmsetup is only shipped in bionic and up. So I suspect that xenial, does not have udev synchronisation in dmsetup package. xenial: https://packages.ubuntu.com/search?suite=xenial=any=contents=95 -dm-notify.rules bionic:

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-15 Thread Dmitrii Shcherbakov
asi, Thanks for the guidance. Attached some outputs. > Look for "dmsetup udevcomplete" call in udev rules. ubuntu@maas-vhost6:/lib/udev/rules.d$ grep -RiP udevcomplete 55-dm.rules:ENV{DM_COOKIE}=="?*", RUN+="/sbin/dmsetup udevcomplete $env{DM_COOKIE}" > Sometimes it is hidden by the fact

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-14 Thread asi
Look for "dmsetup udevcomplete" call in udev rules. This is the sync point when libdevmapper continues. This must be the last call in udev chain rules related to device-mapper devices. (Run cryptsetup with --debug and you will see that sync point.) Sometimes it is hidden by the fact that

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-14 Thread Dmitrii Shcherbakov
asi, I would rule out the lack of rules because on both xenial and bionic we have LVM udev rules with the following line that is supposed to create a LUKS UUID-based symlink:` ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-14 Thread asi
If you have properly installed device-mapper udev rules, cryptsetup is internally synchronized to all symlinks and nodes creation (it should never return only when udev is finished, that's why libdevmapper internally uses semaphores and cookies per device). Calling udev settle is just workaround

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-14 Thread Dmitrii Shcherbakov
As a hint on reproducing it, it may be a problem on xenial only (which we used for that deployment) for clean devices. On a bionic VM it seems like the symlink is created but it's not clear if luksFormat returns before that symlink gets created or after - this is the important part because the

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-14 Thread James Page
tl;dr you don't need vaultlocker to reproduce this issue :-) ** Changed in: cryptsetup (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title:

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-14 Thread James Page
Dimitri vaultlocker is a helper tool for managing dmcrypt/LUKS keys in Vault. vaultlocker provides commands to format a block devices using an encryption key, and to unlock a block device previously encrypted by vaultlocker (along with some systemd unit configurations to perform this action on

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-14 Thread Francis Ginther
** Tags added: id-5b9a8473a5864f4a45e1c7b6 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title: vaultlocker does not ensure that udev is triggered to create /dev/disk /by-uuid/ symlink

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-13 Thread Dimitri John Ledkov
I'm not sure what vaultlocker is. trigger might be appropriate together with a '--settle' flag, if/where available. instead of manually opening things, i'd expect crypttab to be adjusted with `systemctl daemon-reload` re-run to regenerated systemd-cryptsetup@ units and "open" the encrytped

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-13 Thread Ryan Beisner
In discussion with James, we still want cryptsetup triage on this. ** Changed in: cryptsetup (Ubuntu) Status: Invalid => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title:

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-13 Thread Chris MacNaughton
Incorrectly marked it invalid, as there is a bug in cryptsetup NOT creating the block symlink -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title: vaultlocker does not ensure that udev is

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-09-12 Thread Chris MacNaughton
Marking the cryptsetup task as invalid because this is handled entirely in vaultlocker ** Changed in: cryptsetup (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-07-10 Thread James Page
** Changed in: vaultlocker Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780332 Title: vaultlocker does not ensure that udev is triggered to create

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-07-10 Thread James Page
** Changed in: vaultlocker Status: Fix Released => In Progress ** Changed in: vaultlocker Assignee: David Ames (thedac) => James Page (james-page) ** Changed in: vaultlocker Importance: Undecided => Critical -- You received this bug notification because you are a member of

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-07-10 Thread James Page
OK I hacked in a test of: cmd = [ 'udevadm', 'trigger', '--subsystem-match=block', '--action=add' ] before the settle, and the by-uuid device does appear. I'm still not sure why that does not happen automatically but that is a definite fix we can apply in vaultlocker.

[Bug 1780332] Re: vaultlocker does not ensure that udev is triggered to create /dev/disk/by-uuid/ symlink and fails

2018-07-10 Thread James Page
** Also affects: cryptsetup (Ubuntu) Importance: Undecided Status: New ** Changed in: vaultlocker Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.