rbd: get image details after creating clone

after creating the clone get the current
image details like size, creationTime,
imageFeatures etc from the ceph cluster.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2021-12-20 20:48:35 +05:30 committed by mergify[bot]
parent edcb2b529b
commit ff91b7edbd

View File

@ -1503,6 +1503,12 @@ func (rv *rbdVolume) cloneRbdImageFromSnapshot(
} }
} }
// get image latest information
err = rv.getImageInfo()
if err != nil {
return fmt.Errorf("failed to get image info of %s: %w", rv, err)
}
// Success! Do not delete the cloned image now :) // Success! Do not delete the cloned image now :)
deleteClone = false deleteClone = false