Skip to content

Commit

Permalink
issue-2270: remove device name checks
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmyagkov committed Feb 4, 2025
1 parent 6695dc7 commit efb03a8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cloud/blockstore/tools/csi_driver/internal/driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,10 +704,6 @@ func (s *nodeService) nodeStageDiskAsFilesystem(
return fmt.Errorf("failed to start NBS endpoint: %w", err)
}

if resp.NbdDeviceFile == "" {
return fmt.Errorf("NbdDeviceFile shouldn't be empty")
}

logVolume(req.VolumeId, "endpoint started with device: %q", resp.NbdDeviceFile)

// startNbsEndpointForNBD is async function. Kubelet will retry
Expand Down Expand Up @@ -770,10 +766,6 @@ func (s *nodeService) nodeStageDiskAsBlockDevice(
return fmt.Errorf("failed to start NBS endpoint: %w", err)
}

if resp.NbdDeviceFile == "" {
return fmt.Errorf("NbdDeviceFile shouldn't be empty")
}

logVolume(req.VolumeId, "endpoint started with device: %q", resp.NbdDeviceFile)

devicePath := filepath.Join(req.StagingTargetPath, diskId)
Expand Down

0 comments on commit efb03a8

Please sign in to comment.