-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Description
Describe the bug
I want to add a new SSD disk naa.xxx to existing disk group of type all flash.
So I used vsan API methods.InitializeDiskMappings(ctx, roundTripper, req). But the task got failed, and shown me the error: 'A general system error occurred: Disk naa.xxx is an SSD and can not be used as a vSAN HDD.'
To Reproduce
Steps to reproduce the behavior:
- declare a request body
req = &types.InitializeDiskMappings {
This: ...,
Spec: types.VimVsanHostDiskMappingCreationSpec {
Host: host.Reference(),
CacheDisks: []vim25types.HostScsiDisk{ ... },
CapacityDisks: ...,
CreationType: string(types.VimClusterVsanDiskGroupCreationTypeallflash)
},
} - invoke the method to append disk
res, err = methods.InitializeDiskGroups(ctx, roundTripper, req)
... - wait for task completion
Get response with error like above said: A general system error occurred: Disk naa.xxx is an SSD and can not be used as a vSAN HDD.
Expected behavior
The addition will be successful.
Affected version
v0.26.1
Screenshots/Debug Output
N/A
Additional context
VMware vCenter Server Appliance7.0.3-19600472
VMware ESXi7.0.3-19580434
Metadata
Metadata
Assignees
Labels
No labels