-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Error "unknown VMODL type VirtualPCIPassthroughVmiopBackingOption" in list_server_types api call #36
Comments
@MiloCheung Yeah, |
@jrgarcia thanks for your attention! I also want to ask, what is the maximum version can be supported by vsphere fog? should be vSphere version 5.5 or 5? |
@jrgarcia Can we move away from I can see this gem is giving us a lot of issue. Maybe is time to replace such and old and outdated dependency. WDYF? |
@plribeiro3000 Unfortunately there is not much in the way of Ruby vSphere APIs. The API is generated from the VMODL provided by VMware. There has been much talk about adding the vSphere 6 support to RbVmomi. I'll ask around internally. :) |
@jakerobinson What do you mean there isn't much of an API? How does If it is just an http call we should be good to go since |
I mean that there are no other APIs (SDKs) for vSphere on Ruby. The vSphere API is SOAP. You can't just make http calls :) |
The path forward for now is to get vSphere 6 support in RbVmomi. I've communicated to some folks that can help us get there. |
@jakerobinson Oh, did not know they have a SOAP api. If But for now i think we are good if support is added. |
@MiloCheung This appears to be a problem with RbVmomi that we can't work around. Hopefully, RbVmomi will be updated soon and this won't be an issue. If this continues to be a problem, we'll look into other options. Closing for now. However, feel free to report the issue at https://github.com/vmware/rbvmomi/issues. |
@plribeiro3000 @jrgarcia @jakerobinson I will wait for the new version of RbVmomi.Thanks you all |
@MiloCheung It appears they have updated RbVmomi; unfortunately, there has not been a new release since October 1, 2014. You might be able to build a new Gem from source if you really need this. Otherwise, it might be a while before the latest version with the needed changes gets released. |
When I call the function "Fog::Compute::Vsphere::Real::list_server_types", there are runtimeerror here:
RuntimeError: unknown VMODL type VirtualPCIPassthroughVmiopBackingOption
from /home/milo/.rvm/gems/ruby-2.1.2@app360/gems/rbvmomi-1.8.2/lib/rbvmomi/type_loader.rb:104:in `make_type'
When I set a debugger in there, I found that the BasicTypes module has not "VirtualPCIPassthroughVmiopBackingOption" info.
-> BasicTypes::BUILTIN.member? name
this function will return false.
make_type code:
100: def make_type name
101: name = name.to_s
=> 102: require 'pry'; binding.pry if name == "VirtualPCIPassthroughVmiopBackingOption"
103: return BasicTypes.const_get(name) if BasicTypes::BUILTIN.member? name
104: desc = @db[name] or fail "unknown VMODL type #{name}"
105: case desc['kind']
106: when 'data' then make_data_type name, desc
107: when 'managed' then make_managed_type name, desc
108: when 'enum' then make_enum_type name, desc
109: else fail desc.inspect
110: end
111: end
Question: I notice that the gem "rbvmomi" did not updated since 4,5 years before, and my testing environment is vsphere 6.0. is it a problem for "rbvmomi" gem if I use a more updated vsphere version? Or environment setting problem? thanks.
The text was updated successfully, but these errors were encountered: