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

Error on ubuntu images only #220

Closed
namtzigla opened this issue Oct 15, 2013 · 2 comments
Closed

Error on ubuntu images only #220

namtzigla opened this issue Oct 15, 2013 · 2 comments

Comments

@namtzigla
Copy link

Hi,

I'm using test-kitchen version 1.0.0.beta3. If I run kitchen test always I'm getting this error when I run it 1st time:

D      ------Exception-------
D      Class: Kitchen::ActionFailed
D      Message: Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-ubuntu-10.04'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[Berkshelf] Skipping Berkshelf with --no-provision
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Setting hostname...
STDERR: No error message
---- End output of vagrant up --no-provision ----
Ran vagrant up --no-provision returned 1]
D      ---Nested Exception---
D      Class: Kitchen::ShellOut::ShellCommandFailed
D      Message: Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-ubuntu-10.04'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[Berkshelf] Skipping Berkshelf with --no-provision
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Setting hostname...
STDERR: No error message
---- End output of vagrant up --no-provision ----
Ran vagrant up --no-provision returned 1
D      ------Backtrace-------
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/shell_out.rb:73:in `rescue in run_command'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/shell_out.rb:61:in `run_command'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/driver/base.rb:147:in `run_command'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/kitchen-vagrant-0.11.1/lib/kitchen/driver/vagrant.rb:123:in `run'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/kitchen-vagrant-0.11.1/lib/kitchen/driver/vagrant.rb:54:in `create'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:263:in `public_send'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:263:in `block in perform_action'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:295:in `call'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:295:in `block in synchronize_or_call'
D      <internal:prelude>:10:in `synchronize'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:293:in `synchronize_or_call'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:273:in `block in action'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:280:in `measure'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:272:in `action'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:263:in `perform_action'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:242:in `create_action'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:236:in `block in transition_to'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:235:in `each'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:235:in `transition_to'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:124:in `verify'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:153:in `block in test'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:280:in `measure'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/instance.rb:149:in `test'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/cli.rb:282:in `public_send'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/cli.rb:282:in `block in run_serial'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/cli.rb:282:in `map'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/cli.rb:282:in `run_serial'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/cli.rb:114:in `block in test'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:280:in `measure'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/cli.rb:105:in `test'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/cli.rb:256:in `invoke_task'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/bin/kitchen:13:in `block in <top (required)>'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/lib/kitchen/errors.rb:81:in `with_friendly_errors'
D      /Users/tom/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.beta.3/bin/kitchen:13:in `<top (required)>'
D      /Users/tom/.rbenv/versions/1.9.3-p448/bin/kitchen:23:in `load'
D      /Users/tom/.rbenv/versions/1.9.3-p448/bin/kitchen:23:in `<main>'
D      ----------------------

If I rerun the command everything works fine and if I run it the third time the error is the same. I get this error only when I'm using opscode ubuntu 12.04 and 10.04 images and not for centos 6.4 and 5.9

I hope this will help.

Thanks

@sethvargo
Copy link
Contributor

@namtzigla this is most likely a problem with the specific Vagrant box you are using. Please try a different box.

@fnichol
Copy link
Contributor

fnichol commented Nov 9, 2013

@namtzigla Yes, I've seen this! This was happening to me in the Vagrant 1.3.4 (due to hashicorp/vagrant#2328) and was fixed in the Vagrant 1.3.5.

For me, when I upgraded Vagrant this issue went away.

@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants