Support for additional Bus Types#150
Conversation
1619dfd to
3241277
Compare
3241277 to
2c03434
Compare
ymo24
left a comment
There was a problem hiding this comment.
Reviewed 19 of 218 files at r1, all commit messages.
Reviewable status: 19 of 218 files reviewed, 2 unresolved discussions (waiting on @ricardo-larosa)
a discussion (no related file):
Would you please restore the edits on vendor/github.com/vmware/cloud-provider-for-cloud-director/pkg/testingsdk/client.go and
vendor/github.com/vmware/cloud-provider-for-cloud-director/pkg/testingsdk/k8sclient.go?
I already removed storageClass related functions inside common code (CPI). Please use go mod vendor to get the latest code under cloud-provider-for-cloud-director.
pkg/csi/controller.go line 39 at r1 (raw file):
DiskUUIDAttribute = "diskUUID" FileSystemAttribute = "filesystem" DefaultFS = "ext4"
Would you please use DefaultFSType instead?
ymo24
left a comment
There was a problem hiding this comment.
BusLogic Parallel SCSI controller
Reviewed 1 of 218 files at r1.
Reviewable status: 20 of 218 files reviewed, 3 unresolved discussions (waiting on @ricardo-larosa)
a discussion (no related file):
Previously, ymo24 wrote…
Would you please restore the edits on vendor/github.com/vmware/cloud-provider-for-cloud-director/pkg/testingsdk/client.go and
vendor/github.com/vmware/cloud-provider-for-cloud-director/pkg/testingsdk/k8sclient.go?
I already removed storageClass related functions inside common code (CPI). Please usego mod vendorto get the latest code undercloud-provider-for-cloud-director.
Also, please add BusLogic SCSIas one of the busType
pkg/vcdcsiclient/disks.go line 46 at r1 (raw file):
"scsi_paravirtual": {"6", "VirtualSCSI"}, "scsi_lsi_logic_parallel": {"6", "lsilogic"}, "scsi_lsi_logic_sas": {"6", "lsilogicsas"},
please add BusLogic SCSIas one of the busType
e1e60c9 to
2008b42
Compare
|
Depends on #178 |
2008b42 to
7a8cfb8
Compare
- Adds support for busType: nvme, sata, scsi_paravirtual, scsi_lsi_logic_parallel, scsi_lsi_logic_sas, scsi_buslogic
7a8cfb8 to
e97443f
Compare
Description
Add support for busType:
nvme,sata,scsi_paravirtual,scsi_lsi_logic_parallel,scsi_lsi_logic_sas,scsi_buslogicChecklist
TestDiskCreateAttachTestCSIAutomationTestDiskCreateAttach
Now is a table-test to allow testing of the different busTypes.

E2E tests
I created a new argument
busTypeinCreateStorageClassandCreatePVfromcloud-provider-for-cloud-directortestingsdk.The PR is vmware-archive/cloud-provider-for-cloud-director#233 and needs to be merged In order to run these tests.
However, I included these changes in this PR under
vendorto allow you run the test. Obviously, such changes will be overwritten if you rungo mod vendorbefore merging that PR.The e2etest provides an optional
--busTypeflag (defaults toscsi_paravirtual). Therefore, you can test all busTypes.It also provide new optional flags:
--storageProfile(defaults to "*")--userOrg(defaults to "system")Since these busTypes have different readiness times please allow extra time by increasing the timeouts, I suggest
-timeout=20mIn my environment, the 3 storageProfile tests fail, because the storage policies in the org that I am using are not configured the way the tests expects them to be.

getDiskPath
Now implemented in pure Go. It does not longer run a command in console. The scan is now faster.
It uses the well-known library ghw from Jay Pipes.
In order to have this new functionality working the
DeamonSetcsi-vcd-nodepluginfromcsi-node-crs.yamlin CAPVCD will need to mount/runand use a propagationHostToContainer.Related PR: vmware-archive/cluster-api-provider-cloud-director#414
BusTypes not supported
IDEcontrollers do not support VMs I left it out of scope.Backwards compatibility
Existing PVs and StorageClasses are not modified by this change.
This change is