Bug #26402

vmware compute-attributes scsi_controller_type not honored

Added by Marek Hulán about 4 years ago. Updated almost 4 years ago.

Compute resources - VMware
Target version:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:


Description of problem:
Creating a vmware host with the compute-attributes scsi_controller_type is not creating the VM with the provided SCSI controller type

Version-Release number of selected component (if applicable):

vSphere 6.5
hammer (

How reproducible:

All the time

Steps to reproduce :

Create a host and specify the scsi_controller_type compute-attributes

hammer host create --name "test.local" \
--organization "ORG" \
--location "location" \
--compute-resource host.vmware.local \
--compute-attributes="cpus=2,corespersocket=1,memory_mb=2048,cluster=PRODUCTION,path=TO_CLASS,start=1,guest_id=rhel7_64Guest,scsi_controller_type=ParaVirtualSCSIController,hardware_version=vmx-10" \
--provision-method build \
--build true \
--enabled true \
--managed true \
--interface "managed=true,primary=true,provision=true,compute_type=VirtualVmxnet3,compute_network=VLAN100" \
--hostgroup SOME_HOST_GROUP \
--ip \

Actual results:

The VM is created with the "VirtualLsiLogicController" scsi controller

Expected results:

The VM is created with the "ParaVirtualSCSIController" scsi controller

Additional info:

I have changed the following lines

def scsi_controller_default_type

in /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb

to at least default to ParaVirtualSCSIController.

Note that this may be either in API or hammer, but based on what I've seen, it's probably API, so opening the issue in Foreman project.

Related issues

Related to Foreman - Bug #26756: Drop invalid scsi_controller_type attributeClosed

Associated revisions

Revision ae8b3921 (diff)
Added by Ondřej Ezr about 4 years ago

Fixes #26402 - VMware scsi_controller type from hammer (#6595)


#1 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request added

#2 Updated by Ondřej Ezr about 4 years ago

  • Triaged changed from No to Yes
  • Difficulty set to easy
  • Assignee set to Ondřej Ezr

The hammer option scsi_controller_type is actually never used and I haven't found a in a history when it was, but I guess it doesn't work since we support multiple scsi_controllers.

#3 Updated by Marek Hulán about 4 years ago

  • Fixed in Releases 1.22.0 added

#4 Updated by Anonymous about 4 years ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Ondřej Ezr almost 4 years ago

  • Related to Bug #26756: Drop invalid scsi_controller_type attribute added

Also available in: Atom PDF