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

Fix bug searching for ceph parent image

This commit is contained in:
Javi Fontan 2016-05-12 19:00:47 +02:00
parent 35e0d69d22
commit 8ef74417f0

View File

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