Skip to content

[BUG] Failed to add a SSD disk into an existing disk group of type of 'allflash' #2846

@afeduohz

Description

@afeduohz

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:

  1. declare a request body
    req = &types.InitializeDiskMappings {
    This: ...,
    Spec: types.VimVsanHostDiskMappingCreationSpec {
    Host: host.Reference(),
    CacheDisks: []vim25types.HostScsiDisk{ ... },
    CapacityDisks: ...,
    CreationType: string(types.VimClusterVsanDiskGroupCreationTypeallflash)
    },
    }
  2. invoke the method to append disk
    res, err = methods.InitializeDiskGroups(ctx, roundTripper, req)
    ...
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions