Skip to content

Commit eb3e6eb

Browse files
committed
add volume ID to CreateSnapshot error message
1 parent a72836c commit eb3e6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gce-pd-csi-driver/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ func (gceCS *GCEControllerServer) CreateSnapshot(ctx context.Context, req *csi.C
11601160

11611161
volumeIsMultiZone := isMultiZoneVolKey(volKey)
11621162
if gceCS.multiZoneVolumeHandleConfig.Enable && volumeIsMultiZone {
1163-
return nil, status.Errorf(codes.InvalidArgument, "Snapshots are not supported with the multi-zone PV volumeHandle feature")
1163+
return nil, status.Errorf(codes.InvalidArgument, "CreateSnapshot for volume %v failed. Snapshots are not supported with the multi-zone PV volumeHandle feature", volumeID)
11641164
}
11651165

11661166
if acquired := gceCS.volumeLocks.TryAcquire(volumeID); !acquired {

0 commit comments

Comments
 (0)