-
Notifications
You must be signed in to change notification settings - Fork 101
some types failing with cannot autoload file. #123
Comments
Is the custom rbvmomi gem installed? https://github.com/vmware/vmware-vcenter/blob/master/manifests/package.pp#L36-L38 |
I believe so yes: # gem list | grep rbvmomi rbvmomi (1.6.0.z1) All gems install correctly when including the vcenter::package class (after upgrading to ruby 1.9.3). Because of the ruby => 1.9.2 requirement I've created a new VM for this rather than upgrading ruby on my puppetmaster. Should this be run from the puppetmaster node? I did try this but got the same autoload error. |
This module was tested on Ruby 1.9.3 + Puppet 3.2.3 via puppet apply (not agent/master), the vmware_lib/vcenter module were both on the development branch. After reading the error a bit closer, it appears the master is trying to load rbvmomi gem during compile. Initially I didn't think that this should be the case due to: After thinking about it some more, I think it's due to resource dependency against: Some of the resources type such as dv_switches were very complicated, and in order to model them we relied on introspecting VIM object returned by rbvmomi gem. This adds a dependency for rbvmomi gem on the puppet master, so please check the master and see if rbvmomi gem is installed. I'm hoping it doesn't require an active connection, just the gem. I probably will not have time to verify agent/master until we migrate our master to PE 3.0. We should definitely add a note about this change. |
I recently tried to create a dvswitch using the examples in tests/* but received an error regarding a few of the ones mentioned above.
root@lappy-dev:~# gem list | grep rbvmomi root@lappy-dev:~# puppet --version include vcenter::package
transport { 'vcenter':
username => 'root',
password => 'vmware',
server => '1.1.1.1',
options => { 'insecure' => true },
}
vcenter::dvswitch{ "/DC01/dvs1:create":
ensure => present,
transport => Transport['vcenter'],
} I did grab a co this evening so I may have gotten an in-flight fix. Any ideas? |
skip inventory update for switches
Hello,
Some types fail saying they cannot autoload a file. I want to assume it's trying to find rbvmomi under /var/lib/puppet/lib and cannot, but can't say for certain.
Example of failure:
On puppet agent:
On puppet master (using debug):
So far seen vc_dvswitch and vc_cluster_ha fail with this error while other vc_cluster types work as expected.
The thing these two types have in common that other working types don't are the following lines at the start of the file:
Other working types have the following at the start of the file:
Unfortunately don't know enough ruby to troubleshoot further, but replacing the former with the latter does not work :) and such have raised issue as I would imagine this affects more than just me.
Some additional info:
If there is any additional information I can provide please let me know.
Stephen
The text was updated successfully, but these errors were encountered: