You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
It checks for ClusterComputeResources where user has “Host.Config.Storage” privilege on the cluster.
Cluster should be “vsan” cluster and “FileServiceConfig” should be enabled on the cluster.
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
The text was updated successfully, but these errors were encountered:
#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
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:
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
The text was updated successfully, but these errors were encountered: