Skip to content

Commit

Permalink
rbd: can exit early if image-meta.json does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Zheng <[email protected]>
  • Loading branch information
microyahoo authored and mergify[bot] committed May 2, 2023
1 parent 7d4295b commit 5a07912
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/rbd/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,8 @@ func (ns *NodeServer) NodeExpandVolume(
imgInfo, err := lookupRBDImageMetadataStash(volumePath)
if err != nil {
log.ErrorLog(ctx, "failed to find image metadata: %v", err)

return nil, status.Error(codes.Internal, err.Error())
}
devicePath, found := findDeviceMappingImage(
ctx,
Expand Down

0 comments on commit 5a07912

Please sign in to comment.