-
Notifications
You must be signed in to change notification settings - Fork 913
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
Documentation for implementing extra tasks/functionailty to vcsim #3593
Comments
Howdy 🖐 ithinkiborkedit ! Thank you for your interest in this project. We value your feedback and will respond soon. If you want to contribute to this project, please make yourself familiar with the |
It would be great to have such docs. For this specific issue, vcsim does implement SearchDatastore_Task Looks like a client issue, |
Hi Doug, the client is currently being written in Golang. Okay I think I may have seen where I have gone wrong... I'm not sure if it's just my newbiness to VCenter, but what is the fundamental difference between Datastore and Host Datastore. I've been using Datastore throughout my code base. Thanks! |
Hi Doug, Is it possible to get some clarity on this? I instantiate an instance of the HostDatastoreBrowser, I pass the client and a managed object reference of my Datastore type as per the documentation here: Which leads me to getting the error that the Datastore doesn't satisfy the requirements of the interface. Am I missing something? |
govc datastore.ls command for example gets Later uses HostDatastoreBrowser SearchDatastore methods here: Are you using the object package helpers or generated types/methods directly? % govc datastore.ls -ds sharedVmfs-0 -trace -verbose
...
types.SearchDatastore_Task{
This: types.ManagedObjectReference{Type:"HostDatastoreBrowser", Value:"datastoreBrowser-datastore-48", ServerGUID:""},
DatastorePath: "[sharedVmfs-0]",
SearchSpec: &types.HostDatastoreBrowserSearchSpec{
Query: nil,
Details: (*types.FileQueryFlags)(nil),
SearchCaseInsensitive: (*bool)(nil),
MatchPattern: []string{"*"},
SortFoldersFirst: (*bool)(nil),
},
}
... |
Is your feature request related to a problem? Please describe.
I'm currently developing against a recording of one of our vcenters via vcsim. When it comes to searching for files on a datastore it returns this error: ServerFaultCode: Datastore:xxxx-yyyy does not implement: SearchDatastore_Task.
Describe the solution you'd like
It would be nice to have some documentation on how to implement missing functionality, as I'm quite sure this is not the only thing missing.
Describe alternatives you've considered
Going to a live dev environment, while it would remove the hurdle, having access to vcsim has given me a lot of flexibility which I want to keep.
Additional context
Being able to develop against an up-to date recording of our vcenters allows us to move along with developing core features that aren't necessarily dependent on having a live connection. Being able to run your code against vcsim is a useful feature to have to bolster your automated tests.
The text was updated successfully, but these errors were encountered: