Merge pull request #14378 from rook/mergify/bp/release-1.14/pr-14374

osd: fix activate failure when block device moves (backport #14374)
This commit is contained in:
Blaine Gardner authored and GitHub committed 2024-06-26 14:28:37 -06:00
commit c8c51a25c6
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