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

Ability to create file-share volumes using vcsim #3430

Open
vdkotkar opened this issue May 2, 2024 · 1 comment
Open

Ability to create file-share volumes using vcsim #3430

vdkotkar opened this issue May 2, 2024 · 1 comment

Comments

@vdkotkar
Copy link
Contributor

vdkotkar commented May 2, 2024

Is your feature request related to a problem? Please describe.
We are using vcsim in vSphere CSI plugin for writing unit tests. We are able to create block volumes using vcsim. I wanted to check if we can create file-share (RWX) volumes using vcsim.
For creating file share volumes, we require compatible datastores to create such volume. And it checks for following things while getting compatible datastores:

  1. It checks for ClusterComputeResources where user has “Host.Config.Storage” privilege on the cluster.
  2. Cluster should be “vsan” cluster and “FileServiceConfig” should be enabled on the cluster.
  3. It then gets all datastores belonging to clusters satisfying above conditions. And if datastore type is “vsan”, then it is considered eligible for creating a file-share volume.

Is it possible to simulate this case using VC simulator? If currently it is not possible, then can we enhance simulator to support creating file-share volumes?

Describe the solution you'd like
I want to write unit tests in vSphere CSI plugin which should be able to create file-share volumes using VC simulator in govmomi.

Describe alternatives you've considered

Additional context

dougm added a commit to dougm/govmomi that referenced this issue May 5, 2024
govc: add vsan.info -file-service-enabled flag

Issue vmware#3430
@dougm
Copy link
Member

dougm commented May 5, 2024

#3432 has part of what you'd need. vcsim doesn't have built-in support for vsan Datastore type, but can also look at adding that.. I actually have an old incomplete git stash, but haven't had a change to see where I left off.

dougm added a commit to dougm/govmomi that referenced this issue May 5, 2024
govc: add vsan.info -file-service-enabled flag

Issue vmware#3430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants