Project

General

Profile

Actions

Bug #26402

closed

vmware compute-attributes scsi_controller_type not honored

Added by Marek Hulán about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #26756: Drop invalid scsi_controller_type attributeClosedOndřej EzrActions
Actions #1

Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6595 added
Actions #2

Updated by Ondřej Ezr about 5 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.

Actions #3

Updated by Marek Hulán about 5 years ago

  • Fixed in Releases 1.22.0 added
Actions #4

Updated by Anonymous about 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Ondřej Ezr almost 5 years ago

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

Also available in: Atom PDF