Bug #26402
closedvmware compute-attributes scsi_controller_type not honored
Description
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 (0.13.1.1)
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 10.0.0.10 \
--volume="size_gb=20G,datastore=PROD,name=myharddisk,thin=true"
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
#"VirtualLsiLogicController"
"ParaVirtualSCSIController"
end
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.
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6595 added
Updated by Ondřej Ezr almost 6 years ago
- Assignee set to Ondřej Ezr
- Difficulty set to easy
- Triaged changed from No to Yes
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.
Updated by Anonymous over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset ae8b39212e6b3f4512c3ef49e095722f4cd7a43b.
Updated by Ondřej Ezr over 5 years ago
- Related to Bug #26756: Drop invalid scsi_controller_type attribute added