vmware / vsphere-automation-sdk-python

Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
MIT License
748 stars 311 forks source link

Why is it a minimum of 3 hosts for VMC SDDCs? #192

Closed gamename closed 5 years ago

gamename commented 5 years ago

Environment

Steps or code snippet to reproduce

I modified sddc_crud.py to accept a variable number of hosts. When I tried to create an SDDC with just 1 host, I get the following error:

Traceback (most recent call last):
  File "./samples/vmc/sddc/sddc_crud.py", line 229, in <module>
    main()
  File "./samples/vmc/sddc/sddc_crud.py", line 221, in main
    sddc_operations.create_sddc()
  File "./samples/vmc/sddc/sddc_crud.py", line 152, in create_sddc
    raise Exception(error_response.error_messages)
Exception: ['Sddc provisioning requires a minimum of 3 hosts.']

This seems arbitrary. Its perfectly possible to start a 1 host SDDC manually. Why not via the API as well? Remember that the difference between 1 and 3 hosts is a lot of money to the user. It would be really nice if we could avoid considerable costs by being able to implement single-host configurations.

jmh666 commented 5 years ago

seems relevant, but still arbitrary

tianhao64 commented 5 years ago

@gamename You should be able to create a one node SDDC for evaluation if you pass sddc_type parameter with value '1NODE'.

gamename commented 5 years ago

@tianhao64 Thanks! That worked.