mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
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:
parent
edcb2b529b
commit
ff91b7edbd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user