Fix some problems

1.fix path error in deploy/kubernetes/csi-nvmf-node.yaml
2.delete glog from the code
3.check vol uuid param before attach nvmf volume
This commit is contained in:
zhangdi
2022-10-21 17:26:39 +08:00
parent 9864cbfc93
commit 305dddba10
5 changed files with 7 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ func getNVMfDiskInfo(req *csi.NodePublishVolumeRequest) (*nvmfDiskInfo, error) {
deviceUUID := volOpts["deviceUUID"]
nqn := volOpts["nqn"]
if targetTrAddr == "" || nqn == "" || targetTrPort == "" || targetTrType == "" {
if targetTrAddr == "" || nqn == "" || targetTrPort == "" || targetTrType == "" || deviceUUID == "" {
return nil, fmt.Errorf("Some Nvme target info is missing, volID: %s ", volName)
}