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
This commit is contained in:
Kubernetes Submit Queue 2016-12-19 18:08:58 -08:00 committed by GitHub
commit 9484212b00

View File

@ -254,7 +254,7 @@ func getVMName(client *govmomi.Client, cfg *VSphereConfig) (string, error) {
func newVSphere(cfg VSphereConfig) (*VSphere, error) {
if cfg.Disk.SCSIControllerType == "" {
cfg.Disk.SCSIControllerType = LSILogicSASControllerType
cfg.Disk.SCSIControllerType = PVSCSIControllerType
} 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)
return nil, errors.New("Controller type not supported. Please configure 'lsilogic-sas' OR 'pvscsi'")