Skip to content
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::Fault: machine[testevm] (vsphere::provision line 56) had an error: RbVmomi::Fault: InvalidArgument: A specified parameter was not correct. #80

Open
cmesquita opened this issue Jul 21, 2016 · 1 comment

Comments

@cmesquita
Copy link

Hi All,

Does anyone know What can kind of problem could be the following ? It´been happing intermittently , It always happen at the second time I tried to provision a new VM template based.

RbVmomi::Fault

InvalidArgument: A specified parameter was not correct.
LicenseFilePrintData

The recipe being used:

ENV['http_proxy'] = 'http://172.22.8.18:3128'

with_chef_server "https://palencia/organizations/ACME",
:client_name => Chef::Config[:node_name],
:signing_key_filename => Chef::Config[:client_key],
:machine => 'testevm'

chef_gem 'chef-provisioning-vsphere' do
action :install
compile_time true
end

require 'chef/provisioning/vsphere_driver'

with_vsphere_driver host: '172.22.10.112',
insecure: true,
user: 'ilegra_fribeiro@ACME',
password: '@acme123'

machine_options = {
:bootstrap_options => {
:start_timeout => 60,
:create_timeout => 60,
:name => 'testevm',
:num_cpus => '2',
:memory_mb => '4096',
:datacenter => 'ALPHAVILLE',
:resource_pool => 'CORP-DEVOPS',
:datastore => 'VNX-DT-07',
:template_name => 'Template_sql2003_devops',
:customization_spec => {
:ipsettings => {
:ip => '172.22.14.12',
:subnetMask => '255.255.255.0',
:gateway => ['172.22.14.1'],
:dnsServerList => ['8.8.8.8','8.8.4.4']
},
:domain => 'local',
:domainAdmin => 'Administrator',
:domainAdminPassword => '@acme123',
:org_name => 'ACME',
:product_id => 'MT3V3-HVKB8-GKYJJ-YVVJJ-922M6',
:win_time_zone => 4
},
:ssh => {
:user => 'Administrator',
:password => '@acme123',
:paranoid => false
},
:convergence_options => {
:ssl_verify_mode => :verify_none
}
}
}

machine 'testevm' do
machine_options machine_options
action :ready
retries 0
retry_delay 6
end
thanks in advance

Cesar

@mwrock
Copy link
Contributor

mwrock commented Jul 29, 2016

Interesting. LicenseFilePrintData is a optional property of RbVmomi::VIM::CustomizationSysprep but this driver does not reference that property at all. Can you provide a stacktrace of the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants