udev doesn't pick up volumes properly

Bug #1838992 reported by Dave Halter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

[Only happens on Ubuntu, not other OS's, like Debian]

When we are attaching a volume to a running Ubuntu server (using kvm/libvirt), most of the time the udev rules are not properly triggered. In the end the volume will most of the time not be available in `/dev/disk/by-id/virtio-<ID_SERIAL>`. Sometimes it works though (10%/20%?).

The reason for this is that udev somehow doesn't pick it up when the volume is attached. It looks like a timing issue. Just looking at `/sys/devices/pci0000:00/0000:00:05.0/virtio2/block/vdb/serial` makes it clear that it's there. However `udevadm info /dev/vdb` returns without the `ID_SERIAL` key. Only a `udevadm trigger` leads to a correct entry of `ID_SERIAL` and also fixes `/dev/disk/by-id`.

We are a small cloud provider (cloudscale.ch). We have tested this on Ubuntu (16.04/18.04), Debian 9, CentOS, CoreOS. We haven't tested this extensively, but it sure looks like it's only happening on Ubuntu. . We never had any issues reported on other OS's about this.

I tried looking at the differences of Debian and Ubuntu udev packages, but couldn't figure out what might be responsible for this behavior.

If someone needs an account for our control panel to reproduce this, please contact me, I'm happy to give you the resources to debug this.

affects: udev (Ubuntu) → systemd (Ubuntu)
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Is this issue still relevant?

Changed in systemd (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for systemd (Ubuntu) because there has been no activity for 60 days.]

Changed in systemd (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.