Project

General

Profile

Actions

Bug #11574

closed

chef-client-FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)

Added by ally0620 (Ally Kuo) over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
[ruby-core:<unknown>]

Description

Hi, I'm running chef-clien and got the following msg, please help to solve.

-------------sysinfo-------------------------

root@localhost:/home# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

root@localhost:/home# uname -a
Linux chef-switch 3.5.0-23-generic #35~precise1 SMP Thu Apr 23 19:34:58 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

root@localhost:/home# sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

root@localhost:/home# which ruby
/usr/bin/ruby

root@localhost:/home# chef-client -v
Chef: 12.4.3

-----------------error-----------------------

root@localhost:/home# chef-client
Starting Chef Client, version 12.4.3
resolving cookbooks for run list: ["boa"]
Synchronizing Cookbooks:
  - boa
Compiling Cookbooks...
/mnt/application/OpEN.so: [BUG] unknown type 0x22 (0x11 given)
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
(snip)

[2015-10-08T07:23:40+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)
root@localhost:/home# clear

root@localhost:/home# chef-client
Starting Chef Client, version 12.4.3
resolving cookbooks for run list: ["boa"]
Synchronizing Cookbooks:
  - boa
Compiling Cookbooks...
/mnt/application/OpEN.so: [BUG] unknown type 0x22 (0x11 given)
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
(snip)

[2015-10-08T07:34:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)

Files

OpENUtil.rb (2.78 KB) OpENUtil.rb it's from the switch file ally0620 (Ally Kuo), 10/14/2015 01:29 AM
OpEN.so (1.63 MB) OpEN.so it's from the switch file ally0620 (Ally Kuo), 10/14/2015 01:29 AM
test.rb (494 Bytes) test.rb test file ally0620 (Ally Kuo), 10/14/2015 01:34 AM
Actions #1

Updated by wanabe (_ wanabe) over 8 years ago

  • ruby -v changed from 1.8.7 to ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]

Ally Kuo wrote:

root@localhost:/home# chef-client
Starting Chef Client, version 12.4.3
resolving cookbooks for run list: ["boa"]
Synchronizing Cookbooks:

  • boa
    Compiling Cookbooks...
    /mnt/application/OpEN.so: [BUG] unknown type 0x22 (0x11 given)
    ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]

-- C level backtrace information -------------------------------------------
/opt/chef/embedded/lib/libruby.so.2.1(+0x1bbeba) [0x7fd9809daeba] vm_dump.c:690
/opt/chef/embedded/lib/libruby.so.2.1(+0x74b9c) [0x7fd980893b9c] error.c:312
/opt/chef/embedded/lib/libruby.so.2.1(rb_bug+0xb8) [0x7fd980893ea8] error.c:339
/opt/chef/embedded/lib/libruby.so.2.1(rb_check_type+0x56) [0x7fd980893f06] error.c:495
/mnt/application/OpEN.so(+0x1cc1c) [0x7fd978f75c1c]
/mnt/application/OpEN.so(+0xf8347) [0x7fd979051347]
/mnt/application/OpEN.so(Init_OpEN+0x2a) [0x7fd97905170f]
/opt/chef/embedded/lib/libruby.so.2.1(dln_load+0xe9) [0x7fd98084dee9] dln.c:1359

It seems that logs pointed out [BUG] was raised in "/mnt/application/OpEN.so".
It may be helpful to compile "/mnt/application/OpEN.so" without compiler optimization ("-O0") and check "C level backtrace" again.

By the way, chef-client uses chef-embedded ruby (/opt/chef/embedded/bin/ruby), not system ruby (/usr/bin/ruby).
I changed "ruby -v" of the ticket. Thanks.

Updated by ally0620 (Ally Kuo) over 8 years ago

Hi

thanks for the reply,
i used ruby 1.8 to run ruby test.rb and return value successfully in the switch
test.rb as below in

require "OpEN"
require "OpENUtil"
  
  open = OpENUtil.new()
  conn_ret = open.connect("boa-vlan")
  exists = false
  if conn_ret == OpEN::OPEN_E_NONE
    client = open.client
    ret = OpEN::openapiVlanCreatedCheck(client,1)
    if ret == OpEN::OPEN_E_NONE      
      puts "Hello, exists = true!!"
    else
      puts "Hello, exists = false!!"
    end
  else
    Chef::Log.info "Failed to connect to 'boa-vlan' in 'vlan_exists'."
    puts "Hello, Failed to connect!!"
  end
  open.terminate()

and i updated the ruby to 2.0.0
it failed with error

/home/admin/ally/OpEN.so: [BUG] unknown type 0x22 (0x11 given)
ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0004 p:-4365926 s:0015 e:000014 TOP    [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC  :require_relative
c:0002 p:0007 s:0009 E:0017f0 EVAL   test.rb:1 [FINISH]
c:0001 p:0000 s:0002 E:001428 TOP    [FINISH]

test.rb:1:in `<main>'
test.rb:1:in `require_relative'

-- C level backtrace information -------------------------------------------
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x1a0695) [0x7f1b2c951695] vm_dump.c:652
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x655cc) [0x7f1b2c8165cc] error.c:288
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(rb_bug+0xb7) [0x7f1b2c817ad7] error.c:307
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(rb_check_type+0x56) [0x7f1b2c8194f6] error.c:463
/home/admin/ally/OpEN.so(+0x1cc1c) [0x7f1b2b140c1c]
/home/admin/ally/OpEN.so(+0xf8347) [0x7f1b2b21c347]
/home/admin/ally/OpEN.so(Init_OpEN+0x2a) [0x7f1b2b21c70f]
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(dln_load+0xf1) [0x7f1b2c7dd191] dln.c:1354
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x19b7e8) [0x7f1b2c94c7e8] vm.c:1599
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(rb_require_safe+0x565) [0x7f1b2c822d05] load.c:990
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x18a786) [0x7f1b2c93b786] vm_insnhelper.c:1513
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x197aa6) [0x7f1b2c948aa6] vm_insnhelper.c:1603
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x18f2b2) [0x7f1b2c9402b2] insns.def:1017
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x194906) [0x7f1b2c945906] vm.c:1270
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(rb_iseq_eval_main+0x8a) [0x7f1b2c94c44a] vm.c:1518
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(+0x6c152) [0x7f1b2c81d152] eval.c:250
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(ruby_exec_node+0x1d) [0x7f1b2c81e32d] eval.c:315
/usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0(ruby_run_node+0x1e) [0x7f1b2c8204be] eval.c:307
ruby() [0x4007fb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f1b2c41376d]
ruby() [0x400829]

-- Other runtime information -----------------------------------------------

* Loaded script: test.rb

* Loaded features:

    0 enumerator.so
    1 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/encdb.so
    2 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/trans/transdb.so
    3 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/rbconfig.rb
    4 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/thread.rb
    5 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/compatibility.rb
    6 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/defaults.rb
    7 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/deprecate.rb
    8 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/errors.rb
    9 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/version.rb
   10 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/requirement.rb
   11 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/platform.rb
   12 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb
   13 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/stub_specification.rb
   14 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/util/stringio.rb
   15 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb
   16 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/exceptions.rb
   17 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
   18 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/monitor.rb
   19 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb
   20 /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems.rb

* Process memory map:

00400000-00401000 r-xp 00000000 08:03 274974                             /usr/local/rvm/rubies/ruby-2.0.0-p643/bin/ruby
00600000-00601000 r--p 00000000 08:03 274974                             /usr/local/rvm/rubies/ruby-2.0.0-p643/bin/ruby
00601000-00602000 rw-p 00001000 08:03 274974                             /usr/local/rvm/rubies/ruby-2.0.0-p643/bin/ruby
01d02000-02171000 rw-p 00000000 00:00 0                                  [heap]
7f1b2aab4000-7f1b2aac9000 r-xp 00000000 08:03 1046777                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1b2aac9000-7f1b2acc8000 ---p 00015000 08:03 1046777                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1b2acc8000-7f1b2acc9000 r--p 00014000 08:03 1046777                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1b2acc9000-7f1b2acca000 rw-p 00015000 08:03 1046777                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1b2acca000-7f1b2acdb000 r-xp 00000000 08:03 1700638                    /mnt/application/libproc_libs64.so
7f1b2acdb000-7f1b2aeda000 ---p 00011000 08:03 1700638                    /mnt/application/libproc_libs64.so
7f1b2aeda000-7f1b2aedb000 r--p 00010000 08:03 1700638                    /mnt/application/libproc_libs64.so
7f1b2aedb000-7f1b2aedc000 rw-p 00011000 08:03 1700638                    /mnt/application/libproc_libs64.so
7f1b2aedc000-7f1b2aee5000 rw-p 00000000 00:00 0
7f1b2aee5000-7f1b2af15000 r-xp 00000000 08:03 1700640                    /mnt/application/libopenclt64.so
7f1b2af15000-7f1b2b115000 ---p 00030000 08:03 1700640                    /mnt/application/libopenclt64.so
7f1b2b115000-7f1b2b116000 r--p 00030000 08:03 1700640                    /mnt/application/libopenclt64.so
7f1b2b116000-7f1b2b122000 rw-p 00031000 08:03 1700640                    /mnt/application/libopenclt64.so
7f1b2b122000-7f1b2b124000 rw-p 00000000 00:00 0
7f1b2b124000-7f1b2b283000 r-xp 00000000 08:03 1177369                    /home/admin/ally/OpEN.so
7f1b2b283000-7f1b2b482000 ---p 0015f000 08:03 1177369                    /home/admin/ally/OpEN.so
7f1b2b482000-7f1b2b483000 r--p 0015e000 08:03 1177369                    /home/admin/ally/OpEN.so
7f1b2b483000-7f1b2b48b000 rw-p 0015f000 08:03 1177369                    /home/admin/ally/OpEN.so
7f1b2b48b000-7f1b2b48c000 rw-p 00000000 00:00 0
7f1b2b48c000-7f1b2b48e000 r-xp 00000000 08:03 275790                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/trans/transdb.so
7f1b2b48e000-7f1b2b68e000 ---p 00002000 08:03 275790                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/trans/transdb.so
7f1b2b68e000-7f1b2b68f000 r--p 00002000 08:03 275790                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/trans/transdb.so
7f1b2b68f000-7f1b2b690000 rw-p 00003000 08:03 275790                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/trans/transdb.so
7f1b2b690000-7f1b2b692000 r-xp 00000000 08:03 275766                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/encdb.so
7f1b2b692000-7f1b2b891000 ---p 00002000 08:03 275766                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/encdb.so
7f1b2b891000-7f1b2b892000 r--p 00001000 08:03 275766                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/encdb.so
7f1b2b892000-7f1b2b893000 rw-p 00002000 08:03 275766                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/x86_64-linux/enc/encdb.so
7f1b2b893000-7f1b2b98e000 r-xp 00000000 08:03 1046792                    /lib/x86_64-linux-gnu/libm-2.15.so
7f1b2b98e000-7f1b2bb8d000 ---p 000fb000 08:03 1046792                    /lib/x86_64-linux-gnu/libm-2.15.so
7f1b2bb8d000-7f1b2bb8e000 r--p 000fa000 08:03 1046792                    /lib/x86_64-linux-gnu/libm-2.15.so
7f1b2bb8e000-7f1b2bb8f000 rw-p 000fb000 08:03 1046792                    /lib/x86_64-linux-gnu/libm-2.15.so
7f1b2bb8f000-7f1b2bb98000 r-xp 00000000 08:03 1046769                    /lib/x86_64-linux-gnu/libcrypt-2.15.so
7f1b2bb98000-7f1b2bd98000 ---p 00009000 08:03 1046769                    /lib/x86_64-linux-gnu/libcrypt-2.15.so
7f1b2bd98000-7f1b2bd99000 r--p 00009000 08:03 1046769                    /lib/x86_64-linux-gnu/libcrypt-2.15.so
7f1b2bd99000-7f1b2bd9a000 rw-p 0000a000 08:03 1046769                    /lib/x86_64-linux-gnu/libcrypt-2.15.so
7f1b2bd9a000-7f1b2bdc9000 rw-p 00000000 00:00 0
7f1b2bdc9000-7f1b2bdcb000 r-xp 00000000 08:03 1046754                    /lib/x86_64-linux-gnu/libdl-2.15.so
7f1b2bdcb000-7f1b2bfcb000 ---p 00002000 08:03 1046754                    /lib/x86_64-linux-gnu/libdl-2.15.so
7f1b2bfcb000-7f1b2bfcc000 r--p 00002000 08:03 1046754                    /lib/x86_64-linux-gnu/libdl-2.15.so
7f1b2bfcc000-7f1b2bfcd000 rw-p 00003000 08:03 1046754                    /lib/x86_64-linux-gnu/libdl-2.15.so
7f1b2bfcd000-7f1b2bfd4000 r-xp 00000000 08:03 1046706                    /lib/x86_64-linux-gnu/librt-2.15.so
7f1b2bfd4000-7f1b2c1d3000 ---p 00007000 08:03 1046706                    /lib/x86_64-linux-gnu/librt-2.15.so
7f1b2c1d3000-7f1b2c1d4000 r--p 00006000 08:03 1046706                    /lib/x86_64-linux-gnu/librt-2.15.so
7f1b2c1d4000-7f1b2c1d5000 rw-p 00007000 08:03 1046706                    /lib/x86_64-linux-gnu/librt-2.15.so
7f1b2c1d5000-7f1b2c1ed000 r-xp 00000000 08:03 1046815                    /lib/x86_64-linux-gnu/libpthread-2.15.so
7f1b2c1ed000-7f1b2c3ec000 ---p 00018000 08:03 1046815                    /lib/x86_64-linux-gnu/libpthread-2.15.so
7f1b2c3ec000-7f1b2c3ed000 r--p 00017000 08:03 1046815                    /lib/x86_64-linux-gnu/libpthread-2.15.so
7f1b2c3ed000-7f1b2c3ee000 rw-p 00018000 08:03 1046815                    /lib/x86_64-linux-gnu/libpthread-2.15.so
7f1b2c3ee000-7f1b2c3f2000 rw-p 00000000 00:00 0
7f1b2c3f2000-7f1b2c5a6000 r-xp 00000000 08:03 1046790                    /lib/x86_64-linux-gnu/libc-2.15.so
7f1b2c5a6000-7f1b2c7a6000 ---p 001b4000 08:03 1046790                    /lib/x86_64-linux-gnu/libc-2.15.so
7f1b2c7a6000-7f1b2c7aa000 r--p 001b4000 08:03 1046790                    /lib/x86_64-linux-gnu/libc-2.15.so
7f1b2c7aa000-7f1b2c7ac000 rw-p 001b8000 08:03 1046790                    /lib/x86_64-linux-gnu/libc-2.15.so
7f1b2c7ac000-7f1b2c7b1000 rw-p 00000000 00:00 0
7f1b2c7b1000-7f1b2ca08000 r-xp 00000000 08:03 274977                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0.0
7f1b2ca08000-7f1b2cc08000 ---p 00257000 08:03 274977                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0.0
7f1b2cc08000-7f1b2cc0d000 r--p 00257000 08:03 274977                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0.0
7f1b2cc0d000-7f1b2cc10000 rw-p 0025c000 08:03 274977                     /usr/local/rvm/rubies/ruby-2.0.0-p643/lib/libruby.so.2.0.0
7f1b2cc10000-7f1b2cc31000 rw-p 00000000 00:00 0
7f1b2cc31000-7f1b2cc53000 r-xp 00000000 08:03 1046742                    /lib/x86_64-linux-gnu/ld-2.15.so
7f1b2cd44000-7f1b2ce49000 rw-p 00000000 00:00 0
7f1b2ce4c000-7f1b2ce4d000 rw-p 00000000 00:00 0
7f1b2ce4d000-7f1b2ce4e000 ---p 00000000 00:00 0
7f1b2ce4e000-7f1b2ce53000 rw-p 00000000 00:00 0                          [stack:32677]
7f1b2ce53000-7f1b2ce54000 r--p 00022000 08:03 1046742                    /lib/x86_64-linux-gnu/ld-2.15.so
7f1b2ce54000-7f1b2ce56000 rw-p 00023000 08:03 1046742                    /lib/x86_64-linux-gnu/ld-2.15.so
7ffffa402000-7ffffa423000 rw-p 00000000 00:00 0                          [stack]
7ffffa42b000-7ffffa42c000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Aborted (core dumped)

if it's my OpEN.so issue, then why it can be run on ruby 1.8 instead of ruby 2.0?
how can i solve it?

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Description updated (diff)
  • Status changed from Open to Rejected

unknown type 0x22 (0x11 given) means the extension library you loaded is for 1.8.
It is not binary compatible.

Rebuild that extension library.

Updated by ally0620 (Ally Kuo) over 8 years ago

thanks for the reply,
i've downgraded the ruby to 1.8 and try to run the OpEN.so and got the error msg like below:
honestly, before i posted the article yesterday, i got the same msg,using the ryby 1.8 with the .so file from switch equipment, i cannot find any solution for the error,
so i tried to upgrade my ruby to 2.0.
and now i downgraded the ruby to 1.8 and stuck in 'cannot load such file -- OpEN'
i have no idea why i excute it from ruby test.rb was good but from chef-client?
does anyone have any idea about this?
-------sys info--------
root@localhost:/usr/bin# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
root@localhost:/usr/bin# uname -a
Linux switch1 3.5.0-23-generic #35~precise1 SMP Thu Apr 23 19:34:58 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
root@localhost:/usr/bin# which ruby
/usr/bin/ruby
root@localhost:/usr/bin# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
root@localhost:/usr/bin# chef-client -v
Chef: 11.4.0

test by ruby test.rb
root@localhost:/usr/bin# cd /home/admin/ally
root@localhost:/home/admin/ally# ruby test.rb
Hello, exists = true!!

test by calling chef-client
`
root@localhost:/usr/bin# chef-client
Starting Chef Client, version 11.4.0
resolving cookbooks for run list: ["apt"]
Synchronizing Cookbooks:

  • apt
    Compiling Cookbooks...

================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/apt/recipes/default.rb

LoadError

cannot load such file -- OpEN

Cookbook Trace:

/var/chef/cache/cookbooks/apt/recipes/default.rb:11:in `from_file'

Relevant File Content:

/var/chef/cache/cookbooks/apt/recipes/default.rb:

4: #
5: # Copyright 2015, YOUR_COMPANY_NAME
6: #
7: # All rights reserved - Do Not Redistribute
8: #
9:
10:
11>> require "OpEN"
12: require "OpENUtil"
13:
14: open = OpENUtil.new()
15: conn_ret = open.connect("boa-vlan")
16: exists = false
17: if conn_ret == OpEN::OPEN_E_NONE
18: client = open.client
19: ret = OpEN::openapiVlanCreatedCheck(client,1)
20: if ret == OpEN::OPEN_E_NONE

[2015-10-14T01:27:00+00:00] ERROR: Running exception handlers
[2015-10-14T01:27:00+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2015-10-14T01:27:00+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2015-10-14T01:27:00+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-10-14T01:27:00+00:00] FATAL: LoadError: cannot load such file -- OpEN
`

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0