From d992803e9eddd94afad22b36b12c146e9b752170 Mon Sep 17 00:00:00 2001 From: Yug Date: Thu, 18 Mar 2021 17:02:10 +0530 Subject: [PATCH] rbd: Update pool name in image chain While traversing image chain, the parent image can be present in a different pool that the one child is in. So, updating pool name in the next itteration to that of the Parent. Co-authored-by: Madhu Rajanna Signed-off-by: Yug --- internal/rbd/rbd_util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 9ce99c2eb..d5879df37 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -566,6 +566,7 @@ func (rv *rbdVolume) getCloneDepth(ctx context.Context) (uint, error) { depth++ } vol.RbdImageName = vol.ParentName + vol.Pool = vol.ParentPool } } @@ -741,6 +742,7 @@ func (rv *rbdVolume) checkImageChainHasFeature(ctx context.Context, feature uint return true, nil } vol.RbdImageName = vol.ParentName + vol.Pool = vol.ParentPool } }