-
Notifications
You must be signed in to change notification settings - Fork 4
Update for a docker driver #1
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
Conversation
|
This looks great! I'm glad you were able to build on my work for this. 👍 I haven't had a chance to review this in detail yet, but the first thing that jumps out are the changes to I'll find some time to review this more fully in the coming week. |
9fe5e3a to
967c729
Compare
This commit enables a fully functioning volume driver that is able to run from VMs in VirtualBox and perform introspection necessary to issue commands to underlying VB SOAP API to perform storage orchestration for volume attachemnt.
|
Btw.. just noticed this is a v4 thing only. The API changed in v5, which I have adjusted for. But I am running into an issue locking the instances while running. I developed the functionality against VirtualBox 4.3.28. |
|
I think in general a vboxwebsrv client will probably have to deal with
multiple versions of the API. I haven't thought much about how to do that
yet, but it would be cool if there were a stable API call to query the
version. I haven't yet checked to see if that exists, though querying the
WSDL could be an option.
|
|
I think one of the problems may turn into bloat though. If each SOAP API has its own WSDL with minor changes, then that turns into a ton of extra code as versions change. It might be worth the effort to identify the differences and manually add new methods etc all consolidated under the same vboxwebsrv.go file. |
|
I suppose that depends on whether Virtualbox is using semantic versioning for its API or not. I would hope it would be possible to have only V4, V5, etc. |
|
It looks like |
|
I've opened hooklift/gowsdl#50 to propose your As for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you recall why you commented this out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup agree with your comment above for loglevel. This is necessary due to an error that was being returned. It was throwing a returnval error which seemed aligned to not parsing the information correctly.
|
@clintonskitson FYI, hooklift/gowsdl#50 has been merged. Good catch on the |
|
Verry cool. I have the 5.0.10 WSDL all dialed in and working for the use case. I can re-run it and make the minor tweak re commenting out the XML def as referenced above. Wondering if you would rather have that as the PR for now and then deal with backward/forward versioning in the future? Maybe just leave them as separate branches for now? |
|
I'm happy to have this PR just targeting the V4 binding. Opening a branch for V5 compatibility also seems like a reasonable approach until I have the time to work out a better approach. I've created a Regarding the |
|
Actually, perhaps it would be better to have What do you think? |
|
Yeah, I think keeping master at the latest would be the ideal approach. |
|
OK. I've killed |
|
BTW, were there any adjustments needed to the code under |
|
Not for the direct bindings. But there was a helper function for creating On Thursday, December 17, 2015, Mike Dillon notifications@github.com
|
This commit enables a fully functioning volume driver that is
able to run from VMs in VirtualBox and perform introspection
necessary to issue commands to underlying VB SOAP API
to perform storage orchestration for volume attachemnt.