Commit 9484212b authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #38426 from abrarshivani/fix_lsi_logic_sas_bug

Automatic merge from submit-queue Changed default scsi controller type in vSphere Cloud Provider This PR changes default scsi controller to ```pvscsi``` in vSphere Cloud Provider. Fixes #37527
parents 2939c57b e9e5f87d
...@@ -254,7 +254,7 @@ func getVMName(client *govmomi.Client, cfg *VSphereConfig) (string, error) { ...@@ -254,7 +254,7 @@ func getVMName(client *govmomi.Client, cfg *VSphereConfig) (string, error) {
func newVSphere(cfg VSphereConfig) (*VSphere, error) { func newVSphere(cfg VSphereConfig) (*VSphere, error) {
if cfg.Disk.SCSIControllerType == "" { if cfg.Disk.SCSIControllerType == "" {
cfg.Disk.SCSIControllerType = LSILogicSASControllerType cfg.Disk.SCSIControllerType = PVSCSIControllerType
} else if !checkControllerSupported(cfg.Disk.SCSIControllerType) { } else if !checkControllerSupported(cfg.Disk.SCSIControllerType) {
glog.Errorf("%v is not a supported SCSI Controller type. Please configure 'lsilogic-sas' OR 'pvscsi'", cfg.Disk.SCSIControllerType) glog.Errorf("%v is not a supported SCSI Controller type. Please configure 'lsilogic-sas' OR 'pvscsi'", cfg.Disk.SCSIControllerType)
return nil, errors.New("Controller type not supported. Please configure 'lsilogic-sas' OR 'pvscsi'") return nil, errors.New("Controller type not supported. Please configure 'lsilogic-sas' OR 'pvscsi'")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment