导入带有--no-manage-标志 的SMB卷以及与其关联的CIFS共享后、PVC挂载失败
适用场景
Astra三端
问题描述
导入具有 --no-manage
标志和CIFS共享的SMB卷后、PVC挂载失败。
tridentctl import volume <backendName><volumeName> -f <path-to-pvc-file> --no-manage
日志:
MountVolume.MountDevice failed for volume "pvc-xx-xx" : rpc error: code = Internal desc = error mounting SMB volume \\LIF-Name\share-Name\junction-path-Name on mountpoint \var\lib\kubelet\plugins\kubernetes.io\csi\csi.trident.netapp.io\b4fa7ebd3324d58240a7800722bf4dcddd021bfc36570e9a47ce1877d3fe1af5\globalmount: smb mapping failed with error: rpc error: code = Unknown desc = NewSmbGlobalMapping failed. output: "New-SmbGlobalMapping : The network name cannot be found. \r\nAt line:1 char:190\r\n+ ... ser, $PWord;New-SmbGlobalMapping -RemotePath $Env:smbremotepath -Cred ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (MSFT_SmbGlobalMapping:ROOT/Microsoft/...mbGlobalMapping) [New-SmbGlobalMa \r\n pping], CimException\r\n + FullyQualifiedErrorId : Windows System Error 67,New-SmbGlobalMapping\r\n \r\n", err: exit status 1