osd_id=$(ceph-volume lvm list 2>/dev/null | grep -B 20 "/dev/$device" | grep "osd id" | awk '{print "osd."$3}' | head -1)
Issue:
-B 20 (20 lines before) is arbitrary and may not capture the OSD ID
Fails if device path format changes
Doesn't handle multiple OSDs on same device
# Line ~249-252
osd_id=$(ceph-volume lvm list 2>/dev/null | grep -B 20 "/dev/$device" | grep "osd id" | awk '{print "osd."$3}' | head -1)
Issue:
-B 20 (20 lines before) is arbitrary and may not capture the OSD ID
Fails if device path format changes
Doesn't handle multiple OSDs on same device
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Line ~249-252
osd_id=$(ceph-volume lvm list 2>/dev/null | grep -B 20 "/dev/$device" | grep "osd id" | awk '{print "osd."$3}' | head -1)
Issue:
-B 20 (20 lines before) is arbitrary and may not capture the OSD ID
Fails if device path format changes
Doesn't handle multiple OSDs on same device