Confirmed. I was able to reproduce this in a Jammy VM, with systemd
249.11-0ubuntu3.23. I first created a lxd disk:

    lxc storage volume create default extra size=2GiB --type=block
    lxc config device add test-vm extra disk pool=default source=extra

Then, in the vm, I downloaded the provided reproduction script and ran
it with the new disk:

 >~ bash repro.sh /dev/sdb 20
    systemd 249 (249.11-0ubuntu3.23)
    5.15.0-1112-kvm
    trial=1 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=2 loop=loop3 link_while_up=../../sdb unit_followed=sdb after_remove: 
by-uuid_unit=active
    data20.mount=active
    trial=3 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=4 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=5 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=6 loop=loop3 link_while_up=../../sdb unit_followed=sdb after_remove: 
by-uuid_unit=active
    data20.mount=active
    trial=7 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=8 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=9 loop=loop3 link_while_up=../../sdb unit_followed=sdb after_remove: 
by-uuid_unit=active
    data20.mount=active
    trial=10 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=11 loop=loop3 link_while_up=../../sdb unit_followed=sdb after_remove: 
by-uuid_unit=active
    data20.mount=active
    trial=12 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=13 loop=loop3 link_while_up=../../sdb unit_followed=sdb after_remove: 
by-uuid_unit=active
    data20.mount=active
    trial=14 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=15 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=16 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=17 loop=loop3 link_while_up=../../sdb unit_followed=sdb after_remove: 
by-uuid_unit=active
    data20.mount=active
    trial=18 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    trial=19 loop=loop3 link_while_up=../../sdb unit_followed=sdb after_remove: 
by-uuid_unit=active
    data20.mount=active
    trial=20 loop=loop3 link_while_up=../../loop3 unit_followed=loop3 
after_remove: by-uuid_unit=inactive
    data20.mount=inactive
    RESULT: /data20 unmounted in 13/20 trials

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

Title:
  [jammy] fstab mount stopped when a second device with the same
  filesystem UUID is removed (regression from LP: #2100252 in
  249.11-0ubuntu3.17)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2174993/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to