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

Question: cannot realize if it is a bug or my misunderstanding #68

Open
ysyvachenko opened this issue Nov 7, 2017 · 1 comment
Open

Comments

@ysyvachenko
Copy link

Versions:

  • Version of Chef-Provisioning: 2.5.0
  • Version of Chef-Provisioning-vSphere: 2.0.10
  • Version of Windows: Windows 7 x64

Platform Details

  • Version of vSphere/vCenter: 6.0.0.5318203
  • Version of ESXi: 6.0.0.5224934

Scenario:

I am trying to create and converge ubuntu VM from template using Chef Zero. My goal is to use git repository to manage a few of Ubuntu VMs.

Steps to Reproduce:

  1. Execute 'chef generate repo test'
  2. Execute 'chef generate cookbook cookbooks/provision'
  3. Modify file cookbooks/provision/recipes/default.rb to have
chef_gem 'chef-provisioning-vsphere' do
  action :install
  compile_time true
end

require 'chef/provisioning/vsphere_driver'

with_vsphere_driver host: 'host-vcenter',
  insecure: true,
  user:     'some-user',
  password: 'some-password'

with_machine_options :bootstrap_options => {
  use_linked_clone: true,
  num_cpus: 2,
  memory_mb: 4096,
  datacenter: 'Datacenter',
  resource_pool: 'some-cluster',
  template_name: 'ubuntu-desktop-16.04',
  template_folder: 'Templates',
  vm_folder: 'some-folder',
  datastore: 'some-datastore',
  customization_spec: {
    :domain => 'local'
  },
  :ssh => {
    :user => 'root',
    :password => 'root-password',
    :paranoid => false,
  }
}

machine 'mymachinename' do
  action :setup
end
  1. Execute 'chef-client -z -o 'provision''

Expected Result:

  1. VM is cloned from template (done).
  2. VM is powered up (done).
  3. VM customized with vSphere (done).
  4. PKI keys created (done)
  5. chef-client installed (failure) - or something else related to convege

Actual Result:

Command 'chef-client -z -o 'provision'' fails with an error:

'FATAL: RuntimeError: machine[mymachinename] (provision::default line 40) had an error: RuntimeError: Cannot forward a socketless Chef Zero server, see https://docs.chef.io/deprecations_local_listen.html for more information'

@ysyvachenko
Copy link
Author

And there is a full log output:

full-log.txt

@ysyvachenko ysyvachenko changed the title Question: cannot reilize if it is a bug or my misunderstanding Question: cannot realize if it is a bug or my misunderstanding Nov 7, 2017
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

1 participant