1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

bug #4138: do not use rbd ls -l deleting ceph volumes

This commit is contained in:
Javi Fontan 2016-03-01 13:03:10 +01:00
parent 60ea093786
commit f0c137f8f2

View File

@ -129,7 +129,7 @@ rbd_top_parent() {
pool=$(echo $1 | cut -f1 -d'/')
volume=$(echo $1 | cut -f2 -d'/')
snap0=$($RBD ls -l $pool | awk '{print $1}' | grep -E "$volume(-.+)?@0")
snap0=$($RBD ls $pool | grep -E "$volume(-.+)?@0")
if [ -n "$snap0" ]; then
volume=$pool/${snap0%%@*}