unable to reconize Asgard NVME with short serial

Bug #1923485 reported by isgenius
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
New
Undecided
Unassigned
systemd
Unknown
Unknown
systemd (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Won't Fix
Undecided
Unassigned
Groovy
Won't Fix
Undecided
Unassigned
Hirsute
Won't Fix
Undecided
Unassigned
Impish
Won't Fix
Undecided
Unassigned

Bug Description

check this:
https://discourse.maas.io/t/unable-to-deploy-valueerror-failed-to-find-storage-volume-id-nvme0n1/4442/4

Maybe the line os.listdir should be changed with os.walk to discover all child directories?
Or maybe this is just a BUG of MAAS?

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Ah what the heck, I really don't think the fact that the disk has a / in the model name leads to nested directories in /dev/disk/by-id is expected. _something_ should probably be escaping that, but I'm not sure what or how.

Revision history for this message
weizehua (weizehua) wrote :

Amazing, I never thought about that, a '/' is in model name!
So might it be a bug of something else?

Revision history for this message
Balint Reczey (rbalint) wrote :

@mwhudson also reported this issue upstream https://github.com/systemd/systemd/issues/19309 (thanks!)

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

The upstream bug request has a PR that seems to fix the issue already. I guess if it gets accepted upstream we can think about backporting the fix to stable releases in the fullness of time.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

That said, we could fix this issue in curtin by searching for a device with specified serial by just looking through the udev db directly rather than by globbing in /dev/disk/by-id. In fact I thought we already did that! But apparently not.

Revision history for this message
weizehua (weizehua) wrote :

Happy to see it being fixed so quickly.

Dan Streetman (ddstreet)
Changed in systemd (Ubuntu Groovy):
status: New → Won't Fix
Revision history for this message
Brian Murray (brian-murray) wrote :

The Hirsute Hippo has reached End of Life, so this bug will not be fixed for that release.

Changed in systemd (Ubuntu Hirsute):
status: New → Won't Fix
Nick Rosbrook (enr0n)
Changed in systemd (Ubuntu):
status: New → Fix Released
Changed in systemd (Ubuntu Impish):
status: New → Won't Fix
Changed in systemd (Ubuntu Focal):
status: New → Won't Fix
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.