2016-11-05 2 views
-2

워크 스테이션을 통해 요리사 처방을 실행할 때 나는 항상이 오류가 발생하며 무엇이 누락되었는지 이해할 수 없습니까?요리사 Mixlib :: ShellOut :: ShellCommandFailed를 실행하는 중에이 오류가 발생합니다.

> knife bootstrap 10.192.74.59 --ssh-user scs --ssh-password 'cisco123' --sudo --use-sudo-password --node-name webserver10.192.74.59 --run-list 'recipe[f5-node-initiator]' 
> Node webserver10.192.74.59 exists, overwrite it? (Y/N) Y 
> Client webserver10.192.74.59 exists, overwrite it? (Y/N) Y 
> Creating new client for webserver10.192.74.59 
> Creating new node for webserver10.192.74.59 
> Connecting to 10.192.74.59 
> 10.192.74.59 [sudo] password for scs: -----> Existing Chef installation detected 
10.192.74.59 Starting the first Chef Client run... 
10.192.74.59 Starting Chef Client, version 12.15.19 
10.192.74.59 resolving cookbooks for run list: ["f5-node-initiator"] 
10.192.74.59 Synchronizing Cookbooks: 
10.192.74.59 - f5-node-initiator (0.0.1) 
10.192.74.59 Installing Cookbook Gems: 
10.192.74.59 Compiling Cookbooks... 
10.192.74.59 Converging 4 resources 
10.192.74.59 Recipe: f5-node-initiator::default 
10.192.74.59 * cookbook_file[/var/chef/cache/f5-icontrol-10.2.0.2.gem] action create (up to date) 
10.192.74.59 * cookbook_file[/usr/local/bin/f5-node-initiator] action create (up to date) 
10.192.74.59 * gem_package[f5-icontrol] action install (up to date) 
10.192.74.59 * execute[f5-node-initiator] action run 
10.192.74.59  
10.192.74.59  ================================================================================ 
10.192.74.59  Error executing action `run` on resource 'execute[f5-node-initiator]' 
10.192.74.59  ================================================================================ 
10.192.74.59  
10.192.74.59  Mixlib::ShellOut::ShellCommandFailed 
10.192.74.59  ------------------------------------ 
10.192.74.59  Expected process to exit with [0], but received '1' 
10.192.74.59  ---- Begin output of f5-node-initiator -b 10.192.73.79 -u -p -n -d 10.192.74.59:80 ---- 
10.192.74.59  STDOUT: 
10.192.74.59  STDERR: /var/lib/gems/2.3.0/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective 
10.192.74.59  /var/lib/gems/2.3.0/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError) 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
10.192.74.59  from /var/lib/gems/2.3.0/gems/soap4r-1.5.8/lib/wsdl/parser.rb:12:in `<top (required)>' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
10.192.74.59  from /var/lib/gems/2.3.0/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:9:in `<top (required)>' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require' 
10.192.74.59  from /var/lib/gems/2.3.0/gems/f5-icontrol-10.2.0.2/lib/f5-icontrol.rb:2:in `<top (required)>' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require' 
10.192.74.59  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require' 
10.192.74.59  from /usr/local/bin/f5-node-initiator:31:in `<main>' 
10.192.74.59  ---- End output of f5-node-initiator -b 10.192.73.79 -u -p -n -d 10.192.74.59:80 ---- 
10.192.74.59  Ran f5-node-initiator -b 10.192.73.79 -u -p -n -d 10.192.74.59:80 returned 1 
10.192.74.59  
10.192.74.59  Resource Declaration: 
10.192.74.59  --------------------- 
10.192.74.59  # In /var/chef/cache/cookbooks/f5-node-initiator/recipes/default.rb 
10.192.74.59  
10.192.74.59  25: execute "f5-node-initiator" do 
10.192.74.59  26: command "f5-node-initiator -b #{node[:bigip][:address]} -u #{node[:bigip][:user]} -p #{node[:bigip][:pass]} -n #{node[:bigip][:pool_name]} -d #{node[:bigip][:node_address]}:#{node[:bigip][:node_port]}" 
10.192.74.59  27: # action :nothing 
10.192.74.59  28: end 
10.192.74.59  
10.192.74.59  Compiled Resource: 
10.192.74.59  ------------------ 
10.192.74.59  # Declared in /var/chef/cache/cookbooks/f5-node-initiator/recipes/default.rb:25:in `from_file' 
10.192.74.59  
10.192.74.59  execute("f5-node-initiator") do 
10.192.74.59  action [:run] 
10.192.74.59  retries 0 
10.192.74.59  retry_delay 2 
10.192.74.59  default_guard_interpreter :execute 
10.192.74.59  command "f5-node-initiator -b 10.192.73.79 -u -p -n -d 10.192.74.59:80" 
10.192.74.59  backup 5 
10.192.74.59  returns 0 
10.192.74.59  declared_type :execute 
10.192.74.59  cookbook_name "f5-node-initiator" 
10.192.74.59  recipe_name "default" 
10.192.74.59  end 
10.192.74.59  
10.192.74.59  Platform: 
+0

이 요리 책의 저자는 새로운 [여기] (https://github.com/swalberg/chef-f5)를 시작한 것으로,이 글은 매우 오래된 것으로 들리지만, 주된 실수는 요리사에 있던 보석 오래 전 거기에 더 이상 없다면 다시 추가하려고 할 수도 있지만 업데이트 된 요리 책을 사용하는 것이 더 좋을 것이라고 생각합니다. – Tensibai

답변

0

이것은 soap4r gem의 버그입니다. soap4r이 9 년 동안 버려진 것을 감안할 때, 그것은 고쳐지지 않을 것 같습니다. GitHub에 패치 된이 문제로 인해 갈래를 발견 할 수 있으며 대신 그 중 하나를 레시피 코드에 설치할 수 있습니다.

관련 문제