[VMware] Support to attach more than 15 data disks in VMware VM#4172
Conversation
nvazquez
left a comment
There was a problem hiding this comment.
Looking good, just minor comments
| } | ||
| } else { | ||
| controllerKey = vmMo.getScsiDiskControllerKeyNoException(diskController); | ||
| if (VmwareHelper.isReservedScsiDeviceNumber(scsiUnitNumber)) |
There was a problem hiding this comment.
Minor one: can you please add braces to this if statement?
There was a problem hiding this comment.
Minor one: can you please add braces to this if statement?
updated this
|
|
||
| int deviceNumber = -1; | ||
| if (controllerKey == vmMo.getIDEControllerKey(ideUnitNumber)) { | ||
| deviceNumber = (ideUnitNumber % VmwareHelper.MAX_ALLOWED_DEVICES_IDE_CONTROLLER); |
There was a problem hiding this comment.
Also minor: unnecessary parenthesis
There was a problem hiding this comment.
Also minor: unnecessary parenthesis
updated
| } | ||
|
|
||
| List<Integer> scsiDiskDevicesOnController = scsiDiskController.getDevice(); | ||
| if (scsiDiskDevicesOnController != null && scsiDiskDevicesOnController.size() >= (VmwareHelper.MAX_SUPPORTED_DEVICES_SCSI_CONTROLLER)) { |
There was a problem hiding this comment.
Maybe also a null check for scsiDiskDevicesOnController?
There was a problem hiding this comment.
Maybe also a null check for scsiDiskDevicesOnController?
updated
|
@sureshanaparti can you kick packaging and tests yourself for PR? |
0aad24a to
2e73ca0
Compare
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔debian. JID-1495 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
nvazquez
left a comment
There was a problem hiding this comment.
Thanks @sureshanaparti LGTM
|
@blueorangutan test centos7 vmware-67u3 |
|
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-1959)
|
|
Trillian test result (tid-1984)
|
|
@sureshanaparti I guess we can merge this, the marvin failures does not seem related |
@borisstoyanov yes, these marvin failures are not related to the changes in this PR. |
|
@sureshanaparti this test is consistently failing, please check: @blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔debian. JID-1553 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-2041)
|
|
The test failure is pretty consistent, needs investigation. |
|
I reviewed and found |

Description
Support to attach more than 15 data disks in VMware VM
Fixes: #4102
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
[cloud]> select vm.instance_name as vm_name, count(*) as volumes_count from vm_instance vm join volumes vol on vm.id = vol.instance_id where vm.id = 4 group by vol.instance_id;
+----------+---------------+
| vm_name | volumes_count |
+----------+---------------+
| i-2-4-VM | 26 |
+----------+---------------+
1 row in set (0.00 sec)