Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcsim: add vsan Datastore support #3705

Merged
merged 1 commit into from
Mar 10, 2025
Merged

vcsim: add vsan Datastore support #3705

merged 1 commit into from
Mar 10, 2025

Conversation

dougm
Copy link
Member

@dougm dougm commented Mar 10, 2025

  • Use a single top-level TempDir for a vcsim Model instance. Make this path available via OptionManager. This top-level can be used internally as backing for vSAN Datastores.

  • Split FileManager.resolve logic into Datastore.resolve and use that method everywhere for resolving a Datastore relative path to local file system absolute path. This is where top-level vSAN friendlyName is now translated to vSAN object UUID.

  • ReconfigureComputeResource_Task will now create a vsanDatastore when spec.VsanConfig.Enabled == true. This Datastore will be added to existing hosts in the cluster, and any hosts later added to the cluster.

  • HostDatastoreBrowser search methods now populate the FriendlyName field for vSAN Datastores.

  • The tests added to datastore.bats cover these cases using existing govc commands.

@dougm dougm force-pushed the vcsim-vsan branch 3 times, most recently from 62faf31 to 7e07b03 Compare March 10, 2025 18:28
bryanv
bryanv previously approved these changes Mar 10, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
- Use a single top-level TempDir for a vcsim Model instance. Make this path available via OptionManager.
  This top-level can be used internally as backing for vSAN Datastores.

- Split FileManager.resolve logic into Datastore.resolve and use that method everywhere for resolving
  a Datastore relative path to local file system absolute path. This is where top-level vSAN friendlyName
  is now translated to vSAN object UUID.

- ReconfigureComputeResource_Task will now create a vsanDatastore when spec.VsanConfig.Enabled == true.
  This Datastore will be added to existing hosts in the cluster, and any hosts later added to the cluster.

- HostDatastoreBrowser search methods now populate the FriendlyName field for vSAN Datastores.

- The tests added to datastore.bats cover these cases using existing govc commands.

Signed-off-by: Doug MacEachern <dougm@broadcom.com>
@dougm dougm merged commit c293238 into vmware:main Mar 10, 2025
11 checks passed
@dougm dougm deleted the vcsim-vsan branch March 10, 2025 21:23
@vmware vmware locked as resolved and limited conversation to collaborators Mar 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants