0
주방을 사용하여 요리사 테스트 중 문제가 발생했습니다. 저는 Vagrant를 가상화 시스템으로 드라이버 및 가상 박스로 사용합니다. 그들은 리눅스 플랫폼에서 실행됩니다.테스트 주방 : 재부팅 후 요리사가 다시 시작되지 않음
테스트 레시피를 만들어 내 컴퓨터를 재부팅했습니다. 이것은 코드입니다 :
#
# Author:: Alessandro Zucchelli
# Recipe:: test_recipe_required_reboot
#
reboot 'test if kitchen runs when a recipe leaves it to the post-install phase' do
action :request_reboot
reason 'Need to reboot when the run completes successfully.'
delay_mins 1
end
그리고이 모드에서 내 .kitchen.yml을 구성
driver:
name: vagrant
gui: true
boot_timeout: 1200
# log_level: debug
provisioner:
name: chef_zero
require_chef_omnibus: 12.11 # need the RFC 062 exit codes
retry_on_exit_code:
- 35 # 35 is the exit code signaling that the node is rebooting
max_retries: 3
multiple_converge: 3
client_rb:
exit_status: :enabled # Opt-in to the standardized exit codes
client_fork: false # Forked instances don't return the real exit code
#log_level: debug
platforms:
- name: mybox/win-7-professional-amd64-nocm
transport:
name: winrm
elevated: true
connection_timeout: 3600
max_wait_until_ready: 600
connection_retry_sleep: 300
내가 레시피를 실행하여 VM 번 이상 다시 시작 루프 형 갈 것으로 기대합니다. 대신, 처음으로 다시 부팅 한 후 내가 얻을 :
Starting Chef Client, version 12.11.18
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #converge action: [execution expired] on ktest-mybox-win-7-professional-amd64-nocm
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration