Merge pull request #14374 from BlaineEXE/fix-osd-block-device-name-change

osd: fix activate failure when block device moves
This commit is contained in:
Blaine Gardner authored and GitHub committed 2024-06-25 08:07:20 -06:00
commit a6fc34149d
1 file changed
+4 -1
+4 -1
View File
@@ -183,7 +183,10 @@ sys.exit('no disk found with OSD ID $OSD_ID')
"
}
ceph-volume raw list "$DEVICE" > "$OSD_LIST"
if ! ceph-volume raw list "$DEVICE" > "$OSD_LIST"; then
# if the command fails, the disk may be renamed
echo '' > "$OSD_LIST"
fi
cat "$OSD_LIST"
if ! find_device < "$OSD_LIST"; then