Creating a Vagrant cluster with chef-metal - any special configuration required around ssh port forwarding?


#1

Hello all!

I have a very simple chef metal script:

require ‘chef_metal’

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

My CHEF_DRIVER is set thusly:

export CHEF_DRIVER=“vagrant:/Users/cpatti/Vagrants”

And my ~/.chef/knife.rb contains the following vagrant/machine options:

machine_options :vagrant_options => { ‘vm.box’ => ‘chef/ubuntu-14.04’,
‘vm.box_url’ => ‘
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box

}

(I also tried just using vm.box => ‘precise64’ FWIW that yielded no change)

Every time I try to run this, it seems to go along nicely for a bit, then I
get:

================================================================================
Error executing action converge on resource ‘machine_batch[default]’

================================================================================

Net::SSH::Exception
-------------------
remote forwarding request failed

Resource Declaration:
---------------------
# In

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb

 82:             batch = build_resource(:machine_batch,

machine_batch_default_name) do
83: action resource.action
84: machines [ previous, resource ]
85: end
86: batch.from_recipe self

Compiled Resource:
------------------
# Declared in

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb:82:in
`machine’


Can anyone give me some clues as to what I’m doing wrong here please? I’m
stuck.

Thanks!
-Chris


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter,
Pixar


#2

And +1, I’ve been meaning to ping someone about this. I’m always
seeing the same problems. Also happens on digital ocean droplets, so
doesn’t seem to just be vagrant related.

On Sun Aug 17 15:58:51 2014, Chris Patti wrote:

Hello all!

I have a very simple chef metal script:

require ‘chef_metal’

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

My CHEF_DRIVER is set thusly:

export CHEF_DRIVER=“vagrant:/Users/cpatti/Vagrants”

And my ~/.chef/knife.rb contains the following vagrant/machine options:

machine_options :vagrant_options => { ‘vm.box’ => ‘chef/ubuntu-14.04’,
‘vm.box_url’ =>
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box
}

(I also tried just using vm.box => ‘precise64’ FWIW that yielded no
change)

Every time I try to run this, it seems to go along nicely for a bit,
then I get:

================================================================================
Error executing action converge on resource ‘machine_batch[default]’

================================================================================

Net::SSH::Exception
-------------------
remote forwarding request failed

Resource Declaration:
---------------------
# In

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb

 82:             batch = build_resource(:machine_batch,

machine_batch_default_name) do
83: action resource.action
84: machines [ previous, resource ]
85: end
86: batch.from_recipe self

Compiled Resource:
------------------
# Declared in

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb:82:in
`machine’


Can anyone give me some clues as to what I’m doing wrong here please?
I’m stuck.

Thanks!
-Chris


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com
mailto:cpatti@gmail.com | AIM: chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter,
Pixar


#3

Hi Chris,

I don’t have a real answer for this, but I think my colleague solved
this problem. Maybe by using private networking?

Does that help?

Yours
Steffen

On 18/08/14 00:58, Chris Patti wrote:

Hello all!

I have a very simple chef metal script:

require ‘chef_metal’

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

My CHEF_DRIVER is set thusly:

export CHEF_DRIVER=“vagrant:/Users/cpatti/Vagrants”

And my ~/.chef/knife.rb contains the following vagrant/machine options:

machine_options :vagrant_options => { ‘vm.box’ => ‘chef/ubuntu-14.04’,
‘vm.box_url’ => ‘
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box

}

(I also tried just using vm.box => ‘precise64’ FWIW that yielded no change)

Every time I try to run this, it seems to go along nicely for a bit, then I
get:

================================================================================
Error executing action converge on resource ‘machine_batch[default]’

================================================================================

Net::SSH::Exception
-------------------
remote forwarding request failed

Resource Declaration:
---------------------
# In

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb

 82:             batch = build_resource(:machine_batch,

machine_batch_default_name) do
83: action resource.action
84: machines [ previous, resource ]
85: end
86: batch.from_recipe self

Compiled Resource:
------------------
# Declared in

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb:82:in
`machine’


Can anyone give me some clues as to what I’m doing wrong here please? I’m
stuck.

Thanks!
-Chris


#4

Lamont and anyone else who’s encountered this - I filed an issue on the
chef-metal Github repo. Maybe pop over there and add your +1 to the
permanent record? :slight_smile:

https://github.com/opscode/chef-metal/issues/123

Also I found the following in the chef-metal Chefconf talk, and tried
adding it, to no avail:

require 'chef_metal’
require ‘chef_metal_vagrant’

vagrant_cluster ‘/Users/cpatti/Vagrants’

vagrant_box ‘chef/ubuntu-14.04’ do
url '
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box

end

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

I’m going to switch gears and try modeling this cluster in Rackspace, they
have some good docs so hopefully they’ve smoothed away some of the rough
edges :slight_smile:

-Chris

On Mon, Aug 18, 2014 at 12:41 AM, Lamont Granquist lamont@opscode.com
wrote:

And +1, I’ve been meaning to ping someone about this. I’m always seeing
the same problems. Also happens on digital ocean droplets, so doesn’t seem
to just be vagrant related.

On Sun Aug 17 15:58:51 2014, Chris Patti wrote:

Hello all!

I have a very simple chef metal script:

require ‘chef_metal’

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

My CHEF_DRIVER is set thusly:

export CHEF_DRIVER=“vagrant:/Users/cpatti/Vagrants”

And my ~/.chef/knife.rb contains the following vagrant/machine options:

machine_options :vagrant_options => { ‘vm.box’ => ‘chef/ubuntu-14.04’,
‘vm.box_url’ =>
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/
provider/virtualbox.box’
}

(I also tried just using vm.box => ‘precise64’ FWIW that yielded no
change)

Every time I try to run this, it seems to go along nicely for a bit,
then I get:

============================================================

Error executing action `converge` on resource 'machine_batch[default]'

============================================================

Net::SSH::Exception
-------------------
remote forwarding request failed

Resource Declaration:
---------------------
# In

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/
gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb

 82:             batch = build_resource(:machine_batch,

machine_batch_default_name) do
83: action resource.action
84: machines [ previous, resource ]
85: end
86: batch.from_recipe self

Compiled Resource:
------------------
# Declared in

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/
gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb:82:in
`machine’


Can anyone give me some clues as to what I’m doing wrong here please?
I’m stuck.

Thanks!
-Chris


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com
mailto:cpatti@gmail.com | AIM: chrisfeohpatti | P: (260) 54PATTI

“Technology challenges art, art inspires technology.” - John Lasseter,
Pixar


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter,
Pixar


#5

Folks, I spoke with the author on Twitter, and he suggested I use the
master branch of chef-metal. That did indeed allow me to build the cluster

  • now I can’t get ‘metal execute’ to work - but - progress! :slight_smile:

-Chris

On Mon, Aug 18, 2014 at 12:21 PM, Chris Patti cpatti@gmail.com wrote:

Lamont and anyone else who’s encountered this - I filed an issue on the
chef-metal Github repo. Maybe pop over there and add your +1 to the
permanent record? :slight_smile:

https://github.com/opscode/chef-metal/issues/123

Also I found the following in the chef-metal Chefconf talk, and tried
adding it, to no avail:

require 'chef_metal’
require ‘chef_metal_vagrant’

vagrant_cluster ‘/Users/cpatti/Vagrants’

vagrant_box ‘chef/ubuntu-14.04’ do
url '
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box

end

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

I’m going to switch gears and try modeling this cluster in Rackspace, they
have some good docs so hopefully they’ve smoothed away some of the rough
edges :slight_smile:

-Chris

On Mon, Aug 18, 2014 at 12:41 AM, Lamont Granquist lamont@opscode.com
wrote:

And +1, I’ve been meaning to ping someone about this. I’m always seeing
the same problems. Also happens on digital ocean droplets, so doesn’t seem
to just be vagrant related.

On Sun Aug 17 15:58:51 2014, Chris Patti wrote:

Hello all!

I have a very simple chef metal script:

require ‘chef_metal’

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

My CHEF_DRIVER is set thusly:

export CHEF_DRIVER=“vagrant:/Users/cpatti/Vagrants”

And my ~/.chef/knife.rb contains the following vagrant/machine options:

machine_options :vagrant_options => { ‘vm.box’ => ‘chef/ubuntu-14.04’,
‘vm.box_url’ =>
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/
provider/virtualbox.box’
}

(I also tried just using vm.box => ‘precise64’ FWIW that yielded no
change)

Every time I try to run this, it seems to go along nicely for a bit,
then I get:

============================================================

Error executing action `converge` on resource

‘machine_batch[default]’

============================================================

Net::SSH::Exception
-------------------
remote forwarding request failed

Resource Declaration:
---------------------
# In

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/
gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb

 82:             batch = build_resource(:machine_batch,

machine_batch_default_name) do
83: action resource.action
84: machines [ previous, resource ]
85: end
86: batch.from_recipe self

Compiled Resource:
------------------
# Declared in

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/
gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb:82:in
`machine’


Can anyone give me some clues as to what I’m doing wrong here please?
I’m stuck.

Thanks!
-Chris


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com
mailto:cpatti@gmail.com | AIM: chrisfeohpatti | P: (260) 54PATTI

“Technology challenges art, art inspires technology.” - John Lasseter,
Pixar


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI

“Technology challenges art, art inspires technology.” - John Lasseter,
Pixar


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter,
Pixar


#6

yeah, metal execute needs work to get it back up to speed. I’ll get that
fixed before I release the version with the fix.

On Mon, Aug 18, 2014 at 12:38 PM, Chris Patti cpatti@gmail.com wrote:

Folks, I spoke with the author on Twitter, and he suggested I use the
master branch of chef-metal. That did indeed allow me to build the cluster

  • now I can’t get ‘metal execute’ to work - but - progress! :slight_smile:

-Chris

On Mon, Aug 18, 2014 at 12:21 PM, Chris Patti cpatti@gmail.com wrote:

Lamont and anyone else who’s encountered this - I filed an issue on the
chef-metal Github repo. Maybe pop over there and add your +1 to the
permanent record? :slight_smile:

https://github.com/opscode/chef-metal/issues/123

Also I found the following in the chef-metal Chefconf talk, and tried
adding it, to no avail:

require 'chef_metal’
require ‘chef_metal_vagrant’

vagrant_cluster ‘/Users/cpatti/Vagrants’

vagrant_box ‘chef/ubuntu-14.04’ do
url '
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box

end

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

I’m going to switch gears and try modeling this cluster in Rackspace,
they have some good docs so hopefully they’ve smoothed away some of the
rough edges :slight_smile:

-Chris

On Mon, Aug 18, 2014 at 12:41 AM, Lamont Granquist lamont@opscode.com
wrote:

And +1, I’ve been meaning to ping someone about this. I’m always seeing
the same problems. Also happens on digital ocean droplets, so doesn’t seem
to just be vagrant related.

On Sun Aug 17 15:58:51 2014, Chris Patti wrote:

Hello all!

I have a very simple chef metal script:

require ‘chef_metal’

machine ‘skycrank-gearbox’ do
tag 'master’
recipe "skycrank-gearbox::default"
converge true
end

machine ‘skycrank01’ do
tag 'gear’
converge true
end

machine ‘skycrank02’ do
tag 'gear’
converge true
end

My CHEF_DRIVER is set thusly:

export CHEF_DRIVER=“vagrant:/Users/cpatti/Vagrants”

And my ~/.chef/knife.rb contains the following vagrant/machine options:

machine_options :vagrant_options => { ‘vm.box’ => ‘chef/ubuntu-14.04’,
‘vm.box_url’ =>
https://vagrantcloud.com/chef/ubuntu-14.04/version/1/
provider/virtualbox.box’
}

(I also tried just using vm.box => ‘precise64’ FWIW that yielded no
change)

Every time I try to run this, it seems to go along nicely for a bit,
then I get:

============================================================

Error executing action `converge` on resource

‘machine_batch[default]’

============================================================

Net::SSH::Exception
-------------------
remote forwarding request failed

Resource Declaration:
---------------------
# In

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/
gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb

 82:             batch = build_resource(:machine_batch,

machine_batch_default_name) do
83: action resource.action
84: machines [ previous, resource ]
85: end
86: batch.from_recipe self

Compiled Resource:
------------------
# Declared in

/Users/cpatti/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/
gems/chef-metal-0.13/lib/chef_metal/recipe_dsl.rb:82:in
`machine’


Can anyone give me some clues as to what I’m doing wrong here please?
I’m stuck.

Thanks!
-Chris


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com
mailto:cpatti@gmail.com | AIM: chrisfeohpatti | P: (260) 54PATTI

“Technology challenges art, art inspires technology.” - John Lasseter,
Pixar


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI

“Technology challenges art, art inspires technology.” - John Lasseter,
Pixar


Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter,
Pixar