-
Notifications
You must be signed in to change notification settings - Fork 70
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
Rbvmomi inventory collector #72
Conversation
47d03c7
to
5fe5f57
Compare
70a85ae
to
eea5c77
Compare
e642bfc
to
ea32453
Compare
This keeps the property names as they are send from VMware, so e.g. I'd like to keep it as close to what VMware sends if possible since what the broker does will be a little tricky without everything cached. This just means the parsers will have to be able to handle updates to arrays e.g.: |
@@ -0,0 +1,174 @@ | |||
require 'rbvmomi/vim' |
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.
Can we delay load this?
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.
Yes we can, done
vim = RbVmomi::VIM.new(vim_opts) | ||
|
||
vim.rev = vim.serviceContent.about.apiVersion | ||
vim.serviceContent.sessionManager.Login(:userName => username, :password => password) |
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.
capital L
. ewww 😦
ea32453
to
ad4cdf3
Compare
Checked commits agrare/manageiq-providers-vmware@c0787ff~...4b07676 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/models/manageiq/providers/vmware/infra_manager/inventory/collector/inventory_cache.rb
app/models/manageiq/providers/vmware/infra_manager/inventory/collector/property_collector.rb
|
…ent_instances Generic Service State Machine - new retirement instances.
Add an inventory collection strategy that uses
WaitForUpdates
instead of events andRetrieveProperties
through the broker. This uses the RbVmomi gem from VMware.