mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
rbd: can exit early if image-meta.json does not exist
Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
This commit is contained in:
parent
7d4295b298
commit
5a079122f4
@ -1127,6 +1127,8 @@ func (ns *NodeServer) NodeExpandVolume(
|
|||||||
imgInfo, err := lookupRBDImageMetadataStash(volumePath)
|
imgInfo, err := lookupRBDImageMetadataStash(volumePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ErrorLog(ctx, "failed to find image metadata: %v", err)
|
log.ErrorLog(ctx, "failed to find image metadata: %v", err)
|
||||||
|
|
||||||
|
return nil, status.Error(codes.Internal, err.Error())
|
||||||
}
|
}
|
||||||
devicePath, found := findDeviceMappingImage(
|
devicePath, found := findDeviceMappingImage(
|
||||||
ctx,
|
ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user