Kitchen converge failed with Class: Kitchen::ActionFailed


#1

I ran “kitchen converge” and it failed. It was working till I ran “gem install bundler”.

E, [2017-11-18T12:28:32.913610 #62040] ERROR -- Kitchen: Class: Kitchen::InstanceFailure
E, [2017-11-18T12:28:32.913623 #62040] ERROR -- Kitchen: Message: Create failed on instance <XXX-XXX-rhel6>. Please see .kitchen/logs/XXX-XXX-rhel6.log for more details
E, [2017-11-18T12:28:32.913636 #62040] ERROR -- Kitchen: ----------------------
E, [2017-11-18T12:28:32.913649 #62040] ERROR -- Kitchen: ------Backtrace-------
E, [2017-11-18T12:28:32.913659 #62040] ERROR -- Kitchen: /Users/xxxx/.chefdk/gem/ruby/2.3.0/gems/kitchen-openstack-3.5.1/lib/kitchen/driver/openstack.rb:102:in `rescue in create'
E, [2017-11-18T12:28:32.913680 #62040] ERROR -- Kitchen: /Users/xxxx/.chefdk/gem/ruby/2.3.0/gems/kitchen-openstack-3.5.1/lib/kitchen/driver/openstack.rb:76:in `create'
E, [2017-11-18T12:28:32.913707 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:460:in `public_send'
E, [2017-11-18T12:28:32.913741 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:460:in `block in perform_action'
E, [2017-11-18T12:28:32.913755 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:527:in `synchronize_or_call'
E, [2017-11-18T12:28:32.913766 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:489:in `block in action'
E, [2017-11-18T12:28:32.913776 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/2.3.0/benchmark.rb:293:in `measure'
E, [2017-11-18T12:28:32.913785 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:488:in `action'
E, [2017-11-18T12:28:32.913794 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:460:in `perform_action'
E, [2017-11-18T12:28:32.913804 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:370:in `create_action'
E, [2017-11-18T12:28:32.913813 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:359:in `block in transition_to'
E, [2017-11-18T12:28:32.913822 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `each'
E, [2017-11-18T12:28:32.913832 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `transition_to'
E, [2017-11-18T12:28:32.913840 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:135:in `converge'
E, [2017-11-18T12:28:32.913850 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `public_send'
E, [2017-11-18T12:28:32.913859 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2017-11-18T12:28:32.913867 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2017-11-18T12:28:32.913876 #62040] ERROR -- Kitchen: ----End Backtrace-----
E, [2017-11-18T12:28:32.913885 #62040] ERROR -- Kitchen: ---Nested Exception---
E, [2017-11-18T12:28:32.913893 #62040] ERROR -- Kitchen: Class: Kitchen::ActionFailed
E, [2017-11-18T12:28:32.913901 #62040] ERROR -- Kitchen: Message: openstack has no compute service
E, [2017-11-18T12:28:32.913910 #62040] ERROR -- Kitchen: ----------------------
E, [2017-11-18T12:28:32.913918 #62040] ERROR -- Kitchen: ------Backtrace-------
E, [2017-11-18T12:28:32.913927 #62040] ERROR -- Kitchen: /Users/xxxx/.chefdk/gem/ruby/2.3.0/gems/kitchen-openstack-3.5.1/lib/kitchen/driver/openstack.rb:102:in `rescue in create'
E, [2017-11-18T12:28:32.913936 #62040] ERROR -- Kitchen: /Users/xxxx/.chefdk/gem/ruby/2.3.0/gems/kitchen-openstack-3.5.1/lib/kitchen/driver/openstack.rb:76:in `create'
E, [2017-11-18T12:28:32.913945 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:460:in `public_send'
E, [2017-11-18T12:28:32.913954 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:460:in `block in perform_action'
E, [2017-11-18T12:28:32.913963 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:527:in `synchronize_or_call'
E, [2017-11-18T12:28:32.913981 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:489:in `block in action'
E, [2017-11-18T12:28:32.913991 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/2.3.0/benchmark.rb:293:in `measure'
E, [2017-11-18T12:28:32.914000 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:488:in `action'
E, [2017-11-18T12:28:32.914009 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:460:in `perform_action'
E, [2017-11-18T12:28:32.914018 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:370:in `create_action'
E, [2017-11-18T12:28:32.914027 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:359:in `block in transition_to'
E, [2017-11-18T12:28:32.914036 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `each'
E, [2017-11-18T12:28:32.914045 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `transition_to'
E, [2017-11-18T12:28:32.914054 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:135:in `converge'
E, [2017-11-18T12:28:32.914063 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `public_send'
E, [2017-11-18T12:28:32.914071 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
E, [2017-11-18T12:28:32.914081 #62040] ERROR -- Kitchen: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2017-11-18T12:28:32.914089 #62040] ERROR -- Kitchen: ----End Backtrace-----```

#2

Any suggestion please.


#3

Hi narind,

I’ve never used this driver before, but the error message says “openstack has no compute service”. Assuming you can confirm your openstack has nova/compute enabled via the dashboard or the api, and that your user has access to it, make sure also that your .kitchen.yml (or .kitchen.local.yml or global .kitchen.yml) have the minimum configuration the driver authors specify in their Readme: https://github.com/test-kitchen/kitchen-openstack#minimum-configuration


#4

Hi ccrebolder, Thanks for replying. I figure it out. I ran in GEM hell. Once I changed my gem file to use kitchen-openstack-3.5.0, kitchen converge worked.

Thanks!